summaryrefslogtreecommitdiffstats
path: root/umbrello/umbrello/dialogs/umltemplatedialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
commit4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch)
treeb0a7cd1c184f0003c0292eb416ed27f674f9cc43 /umbrello/umbrello/dialogs/umltemplatedialog.cpp
parent1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff)
downloadtdesdk-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/umltemplatedialog.cpp')
-rw-r--r--umbrello/umbrello/dialogs/umltemplatedialog.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/umbrello/umbrello/dialogs/umltemplatedialog.cpp b/umbrello/umbrello/dialogs/umltemplatedialog.cpp
index a183d95d..6075fbe4 100644
--- a/umbrello/umbrello/dialogs/umltemplatedialog.cpp
+++ b/umbrello/umbrello/dialogs/umltemplatedialog.cpp
@@ -13,11 +13,11 @@
#include "umltemplatedialog.h"
// qt includes
-#include <qlayout.h>
-#include <qgroupbox.h>
-#include <qcombobox.h>
-#include <qlabel.h>
-#include <qlineedit.h>
+#include <tqlayout.h>
+#include <tqgroupbox.h>
+#include <tqcombobox.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
// kde includes
#include <kcombobox.h>
@@ -32,7 +32,7 @@
#include "../uml.h"
#include "../dialog_utils.h"
-UMLTemplateDialog::UMLTemplateDialog(QWidget* pParent, UMLTemplate* pTemplate)
+UMLTemplateDialog::UMLTemplateDialog(TQWidget* pParent, UMLTemplate* pTemplate)
: KDialogBase( Plain, i18n("Template Properties"), Help | Ok | Cancel , Ok, pParent, "_UMLTemplateDLG_", true, true) {
m_pTemplate = pTemplate;
setupDialog();
@@ -43,14 +43,14 @@ UMLTemplateDialog::~UMLTemplateDialog() {}
void UMLTemplateDialog::setupDialog() {
int margin = fontMetrics().height();
- QVBoxLayout* mainLayout = new QVBoxLayout( plainPage() );
+ TQVBoxLayout* mainLayout = new TQVBoxLayout( plainPage() );
- m_pValuesGB = new QGroupBox(i18n("General Properties"), plainPage() );
- QGridLayout* valuesLayout = new QGridLayout(m_pValuesGB, 3, 2);
+ m_pValuesGB = new TQGroupBox(i18n("General Properties"), plainPage() );
+ TQGridLayout* valuesLayout = new TQGridLayout(m_pValuesGB, 3, 2);
valuesLayout->setMargin(margin);
valuesLayout->setSpacing(10);
- m_pTypeL = new QLabel(i18n("&Type:"), m_pValuesGB);
+ m_pTypeL = new TQLabel(i18n("&Type:"), m_pValuesGB);
valuesLayout->addWidget(m_pTypeL, 0, 0);
m_pTypeCB = new KComboBox(m_pValuesGB);
@@ -86,7 +86,7 @@ void UMLTemplateDialog::setupDialog() {
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 == m_pTemplate->getTypeName() ) {
foundType = true;
m_pTypeCB->setCurrentItem(typeBoxCount);
@@ -103,14 +103,14 @@ void UMLTemplateDialog::setupDialog() {
m_pNameLE->setFocus();
}
-void UMLTemplateDialog::insertType( const QString& type, int index )
+void UMLTemplateDialog::insertType( const TQString& type, int index )
{
m_pTypeCB->insertItem( type, index );
m_pTypeCB->completionObject()->addItem( type );
}
bool UMLTemplateDialog::apply() {
- QString typeName = m_pTypeCB->currentText();
+ TQString typeName = m_pTypeCB->currentText();
UMLDoc *pDoc = UMLApp::app()->getDocument();
UMLClassifierList namesList( pDoc->getConcepts() );
UMLClassifier* obj = 0;
@@ -123,7 +123,7 @@ bool UMLTemplateDialog::apply() {
// FIXME: This implementation is not good yet.
m_pTemplate->setTypeName( typeName );
}
- QString name = m_pNameLE->text();
+ TQString name = m_pNameLE->text();
if( name.length() == 0 ) {
KMessageBox::error(this, i18n("You have entered an invalid template name."),
i18n("Template Name Invalid"), false);