diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:51:49 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:51:49 +0000 |
commit | 4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch) | |
tree | b0a7cd1c184f0003c0292eb416ed27f674f9cc43 /umbrello/umbrello/dialogs/parmpropdlg.cpp | |
parent | 1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff) | |
download | tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.tar.gz tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'umbrello/umbrello/dialogs/parmpropdlg.cpp')
-rw-r--r-- | umbrello/umbrello/dialogs/parmpropdlg.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/umbrello/umbrello/dialogs/parmpropdlg.cpp b/umbrello/umbrello/dialogs/parmpropdlg.cpp index e8ddc245..38a75292 100644 --- a/umbrello/umbrello/dialogs/parmpropdlg.cpp +++ b/umbrello/umbrello/dialogs/parmpropdlg.cpp @@ -13,8 +13,8 @@ #include "parmpropdlg.h" // qt includes -#include <qlayout.h> -#include <qtooltip.h> +#include <tqlayout.h> +#include <tqtooltip.h> // kde includes #include <klocale.h> @@ -31,12 +31,12 @@ #include "parmpropdlg.moc" -ParmPropDlg::ParmPropDlg(QWidget * parent, UMLDoc * doc, UMLAttribute * a) +ParmPropDlg::ParmPropDlg(TQWidget * parent, UMLDoc * doc, UMLAttribute * a) : KDialogBase(Plain, i18n("Parameter Properties"), Help | Ok | Cancel , Ok, parent, "_PARMPROPDLG_", true, true) { m_pUmldoc = doc; m_pAtt = a; - QString type, text, name, initialValue; + TQString type, text, name, initialValue; if(!a) { type = text = name = initialValue = ""; } else { @@ -48,18 +48,18 @@ ParmPropDlg::ParmPropDlg(QWidget * parent, UMLDoc * doc, UMLAttribute * a) int margin = fontMetrics().height(); setMinimumSize(300, 400); //disableResize(); - QVBoxLayout * topLayout = new QVBoxLayout(plainPage()); + TQVBoxLayout * topLayout = new TQVBoxLayout(plainPage()); topLayout -> setSpacing(10); topLayout -> setMargin(margin); - m_pParmGB = new QGroupBox(i18n("Properties"), plainPage()); + m_pParmGB = new TQGroupBox(i18n("Properties"), plainPage()); topLayout -> addWidget(m_pParmGB); - QGridLayout * propLayout = new QGridLayout(m_pParmGB, 4, 2); + TQGridLayout * propLayout = new TQGridLayout(m_pParmGB, 4, 2); propLayout -> setSpacing(10); propLayout -> setMargin(margin); - m_pTypeL = new QLabel(i18n("&Type:"), m_pParmGB); + m_pTypeL = new TQLabel(i18n("&Type:"), m_pParmGB); propLayout -> addWidget(m_pTypeL, 0, 0); m_pTypeCB = new KComboBox(m_pParmGB); @@ -74,36 +74,36 @@ ParmPropDlg::ParmPropDlg(QWidget * parent, UMLDoc * doc, UMLAttribute * a) m_pInitialL, i18n("&Initial value:"), m_pInitialLE, initialValue ); - m_pStereoTypeL = new QLabel( i18n("Stereotype name:"), m_pParmGB ); + m_pStereoTypeL = new TQLabel( i18n("Stereotype name:"), m_pParmGB ); propLayout -> addWidget(m_pStereoTypeL, 3, 0); m_pStereoTypeCB = new KComboBox(true, m_pParmGB ); propLayout -> addWidget(m_pStereoTypeCB, 3, 1); - m_pKind = new QButtonGroup(i18n("Passing Direction"), plainPage()); + m_pKind = new TQButtonGroup(i18n("Passing Direction"), plainPage()); m_pKind->setExclusive(true); - QToolTip::add(m_pKind, i18n("\"in\" is a readonly parameter, \"out\" is a writeonly parameter and \"inout\" is a parameter for reading and writing.")); + TQToolTip::add(m_pKind, i18n("\"in\" is a readonly parameter, \"out\" is a writeonly parameter and \"inout\" is a parameter for reading and writing.")); - QHBoxLayout * kindLayout = new QHBoxLayout( m_pKind ); + TQHBoxLayout * kindLayout = new TQHBoxLayout( m_pKind ); kindLayout->setMargin(margin); - m_pIn = new QRadioButton( "in", m_pKind ); + m_pIn = new TQRadioButton( "in", m_pKind ); kindLayout->addWidget( m_pIn ); - m_pInOut = new QRadioButton( "inout", m_pKind ); + m_pInOut = new TQRadioButton( "inout", m_pKind ); kindLayout->addWidget( m_pInOut ); - m_pOut = new QRadioButton( "out", m_pKind ); + m_pOut = new TQRadioButton( "out", m_pKind ); kindLayout->addWidget( m_pOut ); topLayout -> addWidget(m_pKind); - m_pDocGB = new QGroupBox(i18n("Documentation"), plainPage()); - QHBoxLayout * docLayout = new QHBoxLayout(m_pDocGB); + m_pDocGB = new TQGroupBox(i18n("Documentation"), plainPage()); + TQHBoxLayout * docLayout = new TQHBoxLayout(m_pDocGB); docLayout -> setMargin(margin); - m_pDoc = new QMultiLineEdit(m_pDocGB); + m_pDoc = new TQMultiLineEdit(m_pDocGB); /////////// - m_pDoc->setWordWrap(QMultiLineEdit::WidgetWidth); + m_pDoc->setWordWrap(TQMultiLineEdit::WidgetWidth); ////////// m_pDoc -> setText(text); docLayout -> addWidget(m_pDoc); @@ -147,7 +147,7 @@ ParmPropDlg::ParmPropDlg(QWidget * parent, UMLDoc * doc, UMLAttribute * a) int typeBoxCount = 0; bool foundType = false; while (typeBoxCount < m_pTypeCB->count() && foundType == false) { - QString typeBoxString = m_pTypeCB->text(typeBoxCount); + TQString typeBoxString = m_pTypeCB->text(typeBoxCount); if ( typeBoxString == type ) { //getTypeName() foundType = true; m_pTypeCB->setCurrentItem(typeBoxCount); @@ -164,7 +164,7 @@ ParmPropDlg::ParmPropDlg(QWidget * parent, UMLDoc * doc, UMLAttribute * a) // manage stereotypes m_pStereoTypeCB->setDuplicatesEnabled(false); //only allow one of each type in box m_pStereoTypeCB->setCompletionMode( KGlobalSettings::CompletionPopup ); - insertStereotype (QString("")); // an empty stereotype is the default + insertStereotype (TQString("")); // an empty stereotype is the default int defaultStereotype=0; bool foundDefaultStereotype = false; for (UMLStereotypeListIt it(m_pUmldoc->getStereotypes()); it.current(); ++it) { @@ -193,13 +193,13 @@ ParmPropDlg::ParmPropDlg(QWidget * parent, UMLDoc * doc, UMLAttribute * a) m_pNameLE->setFocus(); } -void ParmPropDlg::insertType( const QString& type, int index ) +void ParmPropDlg::insertType( const TQString& type, int index ) { m_pTypeCB->insertItem( type, index ); m_pTypeCB->completionObject()->addItem( type ); } -void ParmPropDlg::insertStereotype( const QString& type, int index ) +void ParmPropDlg::insertStereotype( const TQString& type, int index ) { m_pStereoTypeCB->insertItem( type, index ); m_pStereoTypeCB->completionObject()->addItem( type ); @@ -218,7 +218,7 @@ void ParmPropDlg::slotOk() { if (m_pAtt != NULL) { m_pAtt->setParmKind( getParmKind() ); m_pAtt->setStereotype( m_pStereoTypeCB->currentText() ); - QString typeName = m_pTypeCB->currentText(); + TQString typeName = m_pTypeCB->currentText(); UMLClassifier * pConcept = dynamic_cast<UMLClassifier*>( m_pAtt->parent()->parent() ); if (pConcept == NULL) { kError() << "ParmPropDlg::slotOk: grandparent of " << m_pAtt->getName() |