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/launch/kcmlaunch.cpp | 60 +++++++++++++++++++++---------------------- kcontrol/launch/kcmlaunch.h | 10 ++++---- 2 files changed, 35 insertions(+), 35 deletions(-) (limited to 'kcontrol/launch') diff --git a/kcontrol/launch/kcmlaunch.cpp b/kcontrol/launch/kcmlaunch.cpp index 24623a7ea..ba6193107 100644 --- a/kcontrol/launch/kcmlaunch.cpp +++ b/kcontrol/launch/kcmlaunch.cpp @@ -15,12 +15,12 @@ * along with this program; if not, write to the Free Software */ -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include @@ -32,22 +32,22 @@ #include "kcmlaunch.h" -typedef KGenericFactory LaunchFactory; +typedef KGenericFactory LaunchFactory; K_EXPORT_COMPONENT_FACTORY( kcm_launch, LaunchFactory("kcmlaunch") ) -LaunchConfig::LaunchConfig(QWidget * parent, const char * name, const QStringList &) +LaunchConfig::LaunchConfig(TQWidget * parent, const char * name, const TQStringList &) : KCModule(LaunchFactory::instance(), parent, name) { - QVBoxLayout* Form1Layout = new QVBoxLayout( this, 0, + TQVBoxLayout* Form1Layout = new TQVBoxLayout( this, 0, KDialog::spacingHint() ); setQuickHelp( i18n ( "

Launch Feedback

" " You can configure the application-launch feedback here.")); - QGroupBox* GroupBox1 = new QGroupBox( this, "GroupBox1" ); + TQGroupBox* GroupBox1 = new TQGroupBox( this, "GroupBox1" ); GroupBox1->setTitle( i18n( "Bus&y Cursor" ) ); - QWhatsThis::add(GroupBox1, i18n( + TQWhatsThis::add(GroupBox1, i18n( "

Busy Cursor

\n" "KDE offers a busy cursor for application startup notification.\n" "To enable the busy cursor, select one kind of visual feedback\n" @@ -60,22 +60,22 @@ LaunchConfig::LaunchConfig(QWidget * parent, const char * name, const QStringLis GroupBox1->layout()->setSpacing( 0 ); GroupBox1->layout()->setMargin( 0 ); Form1Layout->addWidget( GroupBox1 ); - QGridLayout* GroupBox1Layout = new QGridLayout( GroupBox1->layout(), 3, 2 ); + TQGridLayout* GroupBox1Layout = new TQGridLayout( GroupBox1->layout(), 3, 2 ); GroupBox1Layout->setSpacing( 6 ); GroupBox1Layout->setMargin( 11 ); GroupBox1Layout->setColStretch( 1, 1 ); - cb_busyCursor = new QComboBox( GroupBox1, "cb_busyCursor" ); + cb_busyCursor = new TQComboBox( GroupBox1, "cb_busyCursor" ); cb_busyCursor->insertItem( i18n( "No Busy Cursor" ), 0 ); cb_busyCursor->insertItem( i18n( "Passive Busy Cursor" ), 1 ); cb_busyCursor->insertItem( i18n( "Blinking Cursor" ), 2 ); cb_busyCursor->insertItem( i18n( "Bouncing Cursor" ), 3 ); GroupBox1Layout->addWidget( cb_busyCursor, 0, 0 ); - connect( cb_busyCursor, SIGNAL( activated(int) ), - SLOT ( slotBusyCursor(int))); - connect( cb_busyCursor, SIGNAL( activated(int) ), SLOT( checkChanged() ) ); + connect( cb_busyCursor, TQT_SIGNAL( activated(int) ), + TQT_SLOT ( slotBusyCursor(int))); + connect( cb_busyCursor, TQT_SIGNAL( activated(int) ), TQT_SLOT( checkChanged() ) ); - lbl_cursorTimeout = new QLabel( GroupBox1, "TextLabel1" ); + lbl_cursorTimeout = new TQLabel( GroupBox1, "TextLabel1" ); lbl_cursorTimeout->setText( i18n( "&Startup indication timeout:" ) ); GroupBox1Layout->addWidget( lbl_cursorTimeout, 2, 0 ); sb_cursorTimeout = new KIntNumInput( GroupBox1, "sb_cursorTimeout" ); @@ -83,12 +83,12 @@ LaunchConfig::LaunchConfig(QWidget * parent, const char * name, const QStringLis sb_cursorTimeout->setSuffix( i18n(" sec") ); GroupBox1Layout->addWidget( sb_cursorTimeout, 2, 1 ); lbl_cursorTimeout->setBuddy( sb_cursorTimeout ); - connect( sb_cursorTimeout, SIGNAL( valueChanged(int) ), - SLOT( checkChanged() ) ); + connect( sb_cursorTimeout, TQT_SIGNAL( valueChanged(int) ), + TQT_SLOT( checkChanged() ) ); - QGroupBox* GroupBox2 = new QGroupBox( this, "GroupBox2" ); + TQGroupBox* GroupBox2 = new TQGroupBox( this, "GroupBox2" ); GroupBox2->setTitle( i18n( "Taskbar &Notification" ) ); - QWhatsThis::add(GroupBox2, i18n("

Taskbar Notification

\n" + TQWhatsThis::add(GroupBox2, i18n("

Taskbar Notification

\n" "You can enable a second method of startup notification which is\n" "used by the taskbar where a button with a rotating hourglass appears,\n" "symbolizing that your started application is loading.\n" @@ -100,19 +100,19 @@ LaunchConfig::LaunchConfig(QWidget * parent, const char * name, const QStringLis GroupBox2->layout()->setSpacing( 0 ); GroupBox2->layout()->setMargin( 0 ); Form1Layout->addWidget( GroupBox2 ); - QGridLayout* GroupBox2Layout = new QGridLayout( GroupBox2->layout(), 2, 2 ); + TQGridLayout* GroupBox2Layout = new TQGridLayout( GroupBox2->layout(), 2, 2 ); GroupBox2Layout->setSpacing( 6 ); GroupBox2Layout->setMargin( 11 ); GroupBox2Layout->setColStretch( 1, 1 ); - cb_taskbarButton = new QCheckBox( GroupBox2, "cb_taskbarButton" ); + cb_taskbarButton = new TQCheckBox( GroupBox2, "cb_taskbarButton" ); cb_taskbarButton->setText( i18n( "Enable &taskbar notification" ) ); GroupBox2Layout->addMultiCellWidget( cb_taskbarButton, 0, 0, 0, 1 ); - connect( cb_taskbarButton, SIGNAL( toggled(bool) ), - SLOT( slotTaskbarButton(bool))); - connect( cb_taskbarButton, SIGNAL( toggled(bool) ), SLOT( checkChanged())); + connect( cb_taskbarButton, TQT_SIGNAL( toggled(bool) ), + TQT_SLOT( slotTaskbarButton(bool))); + connect( cb_taskbarButton, TQT_SIGNAL( toggled(bool) ), TQT_SLOT( checkChanged())); - lbl_taskbarTimeout = new QLabel( GroupBox2, "TextLabel2" ); + lbl_taskbarTimeout = new TQLabel( GroupBox2, "TextLabel2" ); lbl_taskbarTimeout->setText( i18n( "Start&up indication timeout:" ) ); GroupBox2Layout->addWidget( lbl_taskbarTimeout, 1, 0 ); sb_taskbarTimeout = new KIntNumInput( GroupBox2, "sb_taskbarTimeout" ); @@ -120,8 +120,8 @@ LaunchConfig::LaunchConfig(QWidget * parent, const char * name, const QStringLis sb_taskbarTimeout->setSuffix( i18n(" sec") ); GroupBox2Layout->addWidget( sb_taskbarTimeout, 1, 1 ); lbl_taskbarTimeout->setBuddy( sb_taskbarTimeout ); - connect( sb_taskbarTimeout, SIGNAL( valueChanged(int) ), - SLOT( checkChanged() ) ); + connect( sb_taskbarTimeout, TQT_SIGNAL( valueChanged(int) ), + TQT_SLOT( checkChanged() ) ); Form1Layout->addStretch(); @@ -214,7 +214,7 @@ LaunchConfig::save() if (!kapp->dcopClient()->isAttached()) kapp->dcopClient()->attach(); - QByteArray data; + TQByteArray data; kapp->dcopClient()->send( "kicker", "Panel", "restart()", data ); kapp->dcopClient()->send( "kdesktop", "", "configure()", data ); } diff --git a/kcontrol/launch/kcmlaunch.h b/kcontrol/launch/kcmlaunch.h index c69bef943..6c89c0974 100644 --- a/kcontrol/launch/kcmlaunch.h +++ b/kcontrol/launch/kcmlaunch.h @@ -32,7 +32,7 @@ class LaunchConfig : public KCModule public: - LaunchConfig(QWidget * parent = 0, const char * name = 0, const QStringList &list = QStringList() ); + LaunchConfig(TQWidget * parent = 0, const char * name = 0, const TQStringList &list = TQStringList() ); virtual ~LaunchConfig(); @@ -60,10 +60,10 @@ class LaunchConfig : public KCModule private: - QLabel * lbl_cursorTimeout; - QLabel * lbl_taskbarTimeout; - QComboBox * cb_busyCursor; - QCheckBox * cb_taskbarButton; + TQLabel * lbl_cursorTimeout; + TQLabel * lbl_taskbarTimeout; + TQComboBox * cb_busyCursor; + TQCheckBox * cb_taskbarButton; KIntNumInput * sb_cursorTimeout; KIntNumInput * sb_taskbarTimeout; -- cgit v1.2.1