From c663b6440964f6ac48027143ac9e63298991f9d0 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:33:34 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- khotkeys/kcontrol/gesturerecordpage.cpp | 46 ++++++++++++++++----------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'khotkeys/kcontrol/gesturerecordpage.cpp') diff --git a/khotkeys/kcontrol/gesturerecordpage.cpp b/khotkeys/kcontrol/gesturerecordpage.cpp index e24beaaf3..af2fb8cdc 100644 --- a/khotkeys/kcontrol/gesturerecordpage.cpp +++ b/khotkeys/kcontrol/gesturerecordpage.cpp @@ -9,9 +9,9 @@ ****************************************************************************/ -#include -#include -#include +#include +#include +#include #include #include @@ -23,14 +23,14 @@ namespace KHotKeys { -GestureRecordPage::GestureRecordPage(const QString &gesture, - QWidget *parent, const char *name) - : QVBox(parent, name), +GestureRecordPage::GestureRecordPage(const TQString &gesture, + TQWidget *parent, const char *name) + : TQVBox(parent, name), _recorder(NULL), _resetButton(NULL), - _tryOne(NULL), _tryTwo(NULL), _tryThree(NULL), _gest(QString::null), + _tryOne(NULL), _tryTwo(NULL), _tryThree(NULL), _gest(TQString::null), _tryCount(1) { - QString message; + TQString message; message = i18n("Draw the gesture you would like to record below. Press " "and hold the left mouse button while drawing, and release " @@ -42,28 +42,28 @@ GestureRecordPage::GestureRecordPage(const QString &gesture, "restart. If you want to force a restart, use the reset " "button below.\n\nDraw here:"); - QLabel *label = new QLabel(message, this, "label"); - label->setAlignment(QLabel::AlignLeft | QLabel::WordBreak | - QLabel::AlignVCenter); + TQLabel *label = new TQLabel(message, this, "label"); + label->setAlignment(TQLabel::AlignLeft | TQLabel::WordBreak | + TQLabel::AlignVCenter); _recorder = new GestureRecorder(this, "recorder"); _recorder->setMinimumHeight(150); setStretchFactor(_recorder, 1); - connect(_recorder, SIGNAL(recorded(const QString &)), - this, SLOT(slotRecorded(const QString &))); + connect(_recorder, TQT_SIGNAL(recorded(const TQString &)), + this, TQT_SLOT(slotRecorded(const TQString &))); - QHBox *hBox = new QHBox(this, "hbox"); + TQHBox *hBox = new TQHBox(this, "hbox"); _tryOne = new GestureDrawer(hBox, "tryOne"); _tryTwo = new GestureDrawer(hBox, "tryTwo"); _tryThree = new GestureDrawer(hBox, "tryThree"); - QWidget *spacer = new QWidget(hBox, "spacer"); + TQWidget *spacer = new TQWidget(hBox, "spacer"); hBox->setStretchFactor(spacer, 1); - _resetButton = new QPushButton(i18n("&Reset"), hBox, "resetButton"); - connect(_resetButton, SIGNAL(clicked()), - this, SLOT(slotResetClicked())); + _resetButton = new TQPushButton(i18n("&Reset"), hBox, "resetButton"); + connect(_resetButton, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotResetClicked())); @@ -82,7 +82,7 @@ GestureRecordPage::~GestureRecordPage() { } -void GestureRecordPage::slotRecorded(const QString &data) +void GestureRecordPage::slotRecorded(const TQString &data) { switch (_tryCount) { @@ -131,11 +131,11 @@ void GestureRecordPage::slotRecorded(const QString &data) void GestureRecordPage::slotResetClicked() { - _gest = QString::null; + _gest = TQString::null; - _tryOne->setData(QString::null); - _tryTwo->setData(QString::null); - _tryThree->setData(QString::null); + _tryOne->setData(TQString::null); + _tryTwo->setData(TQString::null); + _tryThree->setData(TQString::null); _tryCount = 1; -- cgit v1.2.1