diff options
Diffstat (limited to 'umbrello/umbrello/dialogs/assocgenpage.cpp')
-rw-r--r-- | umbrello/umbrello/dialogs/assocgenpage.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/umbrello/umbrello/dialogs/assocgenpage.cpp b/umbrello/umbrello/dialogs/assocgenpage.cpp index 9be13ee0..b093cae0 100644 --- a/umbrello/umbrello/dialogs/assocgenpage.cpp +++ b/umbrello/umbrello/dialogs/assocgenpage.cpp @@ -13,7 +13,7 @@ #include "assocgenpage.h" // qt includes -#include <qlayout.h> +#include <tqlayout.h> #include <kcombobox.h> // kde includes @@ -25,8 +25,8 @@ #include "../association.h" #include "../dialog_utils.h" -AssocGenPage::AssocGenPage (UMLDoc *d, QWidget *parent, AssociationWidget *assoc) - : QWidget(parent) +AssocGenPage::AssocGenPage (UMLDoc *d, TQWidget *parent, AssociationWidget *assoc) + : TQWidget(parent) { m_pAssociationWidget = assoc; @@ -46,38 +46,38 @@ void AssocGenPage::constructWidget() { // general configuration of the GUI int margin = fontMetrics().height(); setMinimumSize(310,330); - QVBoxLayout * topLayout = new QVBoxLayout(this); + TQVBoxLayout * topLayout = new TQVBoxLayout(this); topLayout -> setSpacing(6); // group boxes for name, documentation properties - QGroupBox *nameGB = new QGroupBox(this); - QGroupBox *docGB = new QGroupBox(this); + TQGroupBox *nameGB = new TQGroupBox(this); + TQGroupBox *docGB = new TQGroupBox(this); nameGB -> setTitle(i18n("Properties")); docGB -> setTitle(i18n("Documentation")); topLayout -> addWidget(nameGB); topLayout -> addWidget(docGB); - QGridLayout * nameLayout = new QGridLayout(nameGB, 2, 2); + TQGridLayout * nameLayout = new TQGridLayout(nameGB, 2, 2); nameLayout -> setSpacing(6); nameLayout -> setMargin(margin); //Association name - QLabel *pAssocNameL = NULL; - QLineEdit* nameField = Dialog_Utils::makeLabeledEditField( nameGB, nameLayout, 0, + TQLabel *pAssocNameL = NULL; + TQLineEdit* nameField = Dialog_Utils::makeLabeledEditField( nameGB, nameLayout, 0, pAssocNameL, i18n("Name:"), m_pAssocNameLE, m_pAssociationWidget->getName() ); nameField->setFocus(); // document - QHBoxLayout * docLayout = new QHBoxLayout(docGB); + TQHBoxLayout * docLayout = new TQHBoxLayout(docGB); docLayout -> setMargin(margin); - m_pDoc = new QMultiLineEdit(docGB); + m_pDoc = new TQMultiLineEdit(docGB); docLayout -> addWidget(m_pDoc); m_pDoc-> setText(m_pAssociationWidget-> getDoc()); Uml::Association_Type currentType = m_pAssociationWidget->getAssocType(); - QString currentTypeAsString = UMLAssociation::typeAsString(currentType); - QLabel *pTypeL = new QLabel(i18n("Type:"), nameGB); + TQString currentTypeAsString = UMLAssociation::typeAsString(currentType); + TQLabel *pTypeL = new TQLabel(i18n("Type:"), nameGB); nameLayout->addWidget(pTypeL, 1, 0); /* Here is a list of all the supported choices for changing @@ -90,7 +90,7 @@ void AssocGenPage::constructWidget() { m_AssocTypeStrings.clear(); for (uint i=0; i<m_AssocTypes.size(); ++i) { if (m_AssocTypes[i] == currentType) found=true; - QString typeStr = UMLAssociation::typeAsString(m_AssocTypes[i]); + TQString typeStr = UMLAssociation::typeAsString(m_AssocTypes[i]); m_AssocTypeStrings << typeStr; } @@ -108,7 +108,7 @@ void AssocGenPage::constructWidget() { m_pTypeCB->setCurrentText(currentTypeAsString); m_pTypeCB->setDuplicatesEnabled(false);//only allow one of each type in box m_pTypeCB->setCompletionMode( KGlobalSettings::CompletionPopup ); - m_pDoc->setWordWrap(QMultiLineEdit::WidgetWidth); + m_pDoc->setWordWrap(TQMultiLineEdit::WidgetWidth); nameLayout->addWidget(m_pTypeCB, 1, 1); |