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 --- kcontrol/screensaver/advanceddialog.cpp | 62 ++++++++++++++++----------------- 1 file changed, 31 insertions(+), 31 deletions(-) (limited to 'kcontrol/screensaver/advanceddialog.cpp') diff --git a/kcontrol/screensaver/advanceddialog.cpp b/kcontrol/screensaver/advanceddialog.cpp index 273888960..4a48eedfe 100644 --- a/kcontrol/screensaver/advanceddialog.cpp +++ b/kcontrol/screensaver/advanceddialog.cpp @@ -1,10 +1,10 @@ #include #include -#include +#include #include -#include -#include +#include +#include #include @@ -14,7 +14,7 @@ #include "advanceddialog.moc" -KScreenSaverAdvancedDialog::KScreenSaverAdvancedDialog(QWidget *parent, const char* name) +KScreenSaverAdvancedDialog::KScreenSaverAdvancedDialog(TQWidget *parent, const char* name) : KDialogBase( parent, name, true, i18n( "Advanced Options" ), Ok | Cancel, Ok, true ) { @@ -24,17 +24,17 @@ KScreenSaverAdvancedDialog::KScreenSaverAdvancedDialog(QWidget *parent, const ch readSettings(); - connect(dialog->qcbPriority, SIGNAL(activated(int)), - this, SLOT(slotPriorityChanged(int))); + connect(dialog->qcbPriority, TQT_SIGNAL(activated(int)), + this, TQT_SLOT(slotPriorityChanged(int))); - connect(dialog->qcbTopLeft, SIGNAL(activated(int)), - this, SLOT(slotChangeTopLeftCorner(int))); - connect(dialog->qcbTopRight, SIGNAL(activated(int)), - this, SLOT(slotChangeTopLeftCorner(int))); - connect(dialog->qcbBottomLeft, SIGNAL(activated(int)), - this, SLOT(slotChangeTopLeftCorner(int))); - connect(dialog->qcbBottomRight, SIGNAL(activated(int)), - this, SLOT(slotChangeTopLeftCorner(int))); + connect(dialog->qcbTopLeft, TQT_SIGNAL(activated(int)), + this, TQT_SLOT(slotChangeTopLeftCorner(int))); + connect(dialog->qcbTopRight, TQT_SIGNAL(activated(int)), + this, TQT_SLOT(slotChangeTopLeftCorner(int))); + connect(dialog->qcbBottomLeft, TQT_SIGNAL(activated(int)), + this, TQT_SLOT(slotChangeTopLeftCorner(int))); + connect(dialog->qcbBottomRight, TQT_SIGNAL(activated(int)), + this, TQT_SLOT(slotChangeTopLeftCorner(int))); #ifndef HAVE_SETPRIORITY dialog->qgbPriority->setEnabled(false); @@ -140,22 +140,22 @@ void KScreenSaverAdvancedDialog::slotChangeTopLeftCorner(int) /* =================================================================================================== */ -AdvancedDialog::AdvancedDialog(QWidget *parent, const char *name) : AdvancedDialogImpl(parent, name) +AdvancedDialog::AdvancedDialog(TQWidget *parent, const char *name) : AdvancedDialogImpl(parent, name) { - monitorLabel->setPixmap(QPixmap(locate("data", "kcontrol/pics/monitor.png"))); - QWhatsThis::add(qcbPriority, "" + i18n("Specify the priority that the screensaver will run at. A higher priority may mean that the screensaver runs faster, though may reduce the speed that other programs run at while the screensaver is active.") + ""); - QString qsTopLeft("" + i18n("The action to take when the mouse cursor is located in the top left corner of the screen for 15 seconds.") + ""); - QString qsTopRight("" + i18n("The action to take when the mouse cursor is located in the top right corner of the screen for 15 seconds.") + ""); - QString qsBottomLeft("" + i18n("The action to take when the mouse cursor is located in the bottom left corner of the screen for 15 seconds.") + ""); - QString qsBottomRight("" + i18n("The action to take when the mouse cursor is located in the bottom right corner of the screen for 15 seconds.") + ""); - QWhatsThis::add(qlTopLeft, qsTopLeft); - QWhatsThis::add(qcbTopLeft, qsTopLeft); - QWhatsThis::add(qlTopRight, qsTopRight); - QWhatsThis::add(qcbTopRight, qsTopRight); - QWhatsThis::add(qlBottomLeft, qsBottomLeft); - QWhatsThis::add(qcbBottomLeft, qsBottomLeft); - QWhatsThis::add(qlBottomRight, qsBottomRight); - QWhatsThis::add(qcbBottomRight, qsBottomRight); + monitorLabel->setPixmap(TQPixmap(locate("data", "kcontrol/pics/monitor.png"))); + TQWhatsThis::add(qcbPriority, "" + i18n("Specify the priority that the screensaver will run at. A higher priority may mean that the screensaver runs faster, though may reduce the speed that other programs run at while the screensaver is active.") + ""); + TQString qsTopLeft("" + i18n("The action to take when the mouse cursor is located in the top left corner of the screen for 15 seconds.") + ""); + TQString qsTopRight("" + i18n("The action to take when the mouse cursor is located in the top right corner of the screen for 15 seconds.") + ""); + TQString qsBottomLeft("" + i18n("The action to take when the mouse cursor is located in the bottom left corner of the screen for 15 seconds.") + ""); + TQString qsBottomRight("" + i18n("The action to take when the mouse cursor is located in the bottom right corner of the screen for 15 seconds.") + ""); + TQWhatsThis::add(qlTopLeft, qsTopLeft); + TQWhatsThis::add(qcbTopLeft, qsTopLeft); + TQWhatsThis::add(qlTopRight, qsTopRight); + TQWhatsThis::add(qcbTopRight, qsTopRight); + TQWhatsThis::add(qlBottomLeft, qsBottomLeft); + TQWhatsThis::add(qcbBottomLeft, qsBottomLeft); + TQWhatsThis::add(qlBottomRight, qsBottomRight); + TQWhatsThis::add(qcbBottomRight, qsBottomRight); } AdvancedDialog::~AdvancedDialog() @@ -163,12 +163,12 @@ AdvancedDialog::~AdvancedDialog() } -void AdvancedDialog::setMode(QComboBox *box, int i) +void AdvancedDialog::setMode(TQComboBox *box, int i) { box->setCurrentItem(i); } -int AdvancedDialog::mode(QComboBox *box) +int AdvancedDialog::mode(TQComboBox *box) { return box->currentItem(); } -- cgit v1.2.1