From 4ae0c208b66e0f7954e194384464fe2d0a2c56dd Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:51:49 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kbugbuster/gui/messageeditor.cpp | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'kbugbuster/gui/messageeditor.cpp') diff --git a/kbugbuster/gui/messageeditor.cpp b/kbugbuster/gui/messageeditor.cpp index 517ef80b..f10e0fb4 100644 --- a/kbugbuster/gui/messageeditor.cpp +++ b/kbugbuster/gui/messageeditor.cpp @@ -1,8 +1,8 @@ -#include +#include #include #include -#include -#include +#include +#include #include #include @@ -11,33 +11,33 @@ #include "kbbprefs.h" #include "messageeditor.h" -#include +#include #include "messageeditor.moc" -MessageEditor::MessageEditor( QWidget *parent ) +MessageEditor::MessageEditor( TQWidget *parent ) : KDialogBase(Plain,i18n("Edit Message Buttons"),Ok|Cancel,Ok,parent,0, true,true) { - QFrame *topFrame = plainPage(); - QBoxLayout *topLayout = new QVBoxLayout(topFrame,0,spacingHint()); + TQFrame *topFrame = plainPage(); + TQBoxLayout *topLayout = new TQVBoxLayout(topFrame,0,spacingHint()); - QBoxLayout *selectionLayout = new QHBoxLayout; + TQBoxLayout *selectionLayout = new QHBoxLayout; topLayout->addLayout(selectionLayout); - QLabel *selectionLabel = new QLabel(i18n("Button:"),topFrame); + TQLabel *selectionLabel = new TQLabel(i18n("Button:"),topFrame); selectionLayout->addWidget(selectionLabel); - mSelectionCombo = new QComboBox(topFrame); + mSelectionCombo = new TQComboBox(topFrame); selectionLayout->addWidget(mSelectionCombo); - connect(mSelectionCombo,SIGNAL(activated(int)),SLOT(changeMessage())); + connect(mSelectionCombo,TQT_SIGNAL(activated(int)),TQT_SLOT(changeMessage())); - QPushButton *addButton = new QPushButton(i18n("Add Button..."),topFrame); + TQPushButton *addButton = new TQPushButton(i18n("Add Button..."),topFrame); selectionLayout->addWidget(addButton); - connect(addButton,SIGNAL(clicked()),SLOT(addButton())); + connect(addButton,TQT_SIGNAL(clicked()),TQT_SLOT(addButton())); - QPushButton *removeButton = new QPushButton(i18n("Remove Button"),topFrame); + TQPushButton *removeButton = new TQPushButton(i18n("Remove Button"),topFrame); selectionLayout->addWidget(removeButton); - connect(removeButton,SIGNAL(clicked()),SLOT(removeButton())); + connect(removeButton,TQT_SIGNAL(clicked()),TQT_SLOT(removeButton())); mMessageEdit = new KTextEdit(topFrame); topLayout->addWidget(mMessageEdit,1); @@ -51,7 +51,7 @@ void MessageEditor::updateConfig() mSelectionCombo->clear(); - QMap::ConstIterator it; + TQMap::ConstIterator it; for(it = mMessageButtons.begin();it != mMessageButtons.end();++it) { mSelectionCombo->insertItem(it.key()); } @@ -61,9 +61,9 @@ void MessageEditor::updateConfig() void MessageEditor::addButton() { - QString txt; + TQString txt; txt = KInputDialog::getText(i18n("Add Message Button"), - i18n("Enter button name:"), QString::null, + i18n("Enter button name:"), TQString::null, NULL, this ); if ( !txt.isNull() ) { -- cgit v1.2.1