summaryrefslogtreecommitdiffstats
path: root/kbugbuster/gui/messageeditor.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 /kbugbuster/gui/messageeditor.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 'kbugbuster/gui/messageeditor.cpp')
-rw-r--r--kbugbuster/gui/messageeditor.cpp36
1 files changed, 18 insertions, 18 deletions
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 <qcombobox.h>
+#include <tqcombobox.h>
#include <ktextedit.h>
#include <kinputdialog.h>
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
#include <klocale.h>
#include <kmessagebox.h>
@@ -11,33 +11,33 @@
#include "kbbprefs.h"
#include "messageeditor.h"
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
#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<QString,QString>::ConstIterator it;
+ TQMap<TQString,TQString>::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() ) {