From 5f5ee2367157176ed223b86343eb0a9e4022e020 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:52:55 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- klaptopdaemon/sony.cpp | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'klaptopdaemon/sony.cpp') diff --git a/klaptopdaemon/sony.cpp b/klaptopdaemon/sony.cpp index 8183f21..b97b05e 100644 --- a/klaptopdaemon/sony.cpp +++ b/klaptopdaemon/sony.cpp @@ -43,26 +43,26 @@ #include // other Qt headers: -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include extern void wake_laptop_daemon(); -SonyConfig::SonyConfig(QWidget * parent, const char *name) +SonyConfig::SonyConfig(TQWidget * parent, const char *name) : KCModule(parent, name) { KGlobal::locale()->insertCatalogue("klaptopdaemon"); // For translation of klaptopdaemon messages config = new KConfig("kcmlaptoprc"); - QVBoxLayout *top_layout = new QVBoxLayout( this, KDialog::marginHint(), + TQVBoxLayout *top_layout = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() ); // TODO: remove linefeed from string, can't do it right now coz we have a string freeze @@ -70,15 +70,15 @@ SonyConfig::SonyConfig(QWidget * parent, const char *name) "'sonypi' device for your laptop - you should not enable the options below if you\nalso " "use the 'sonypid' program in your system").replace("\n", " "), this)); - enableScrollBar = new QCheckBox( i18n("Enable &scroll bar"), this ); - QToolTip::add( enableScrollBar, i18n( "When checked this box enables the scrollbar so that it works under KDE" ) ); + enableScrollBar = new TQCheckBox( i18n("Enable &scroll bar"), this ); + TQToolTip::add( enableScrollBar, i18n( "When checked this box enables the scrollbar so that it works under KDE" ) ); top_layout->addWidget( enableScrollBar ); - connect( enableScrollBar, SIGNAL(clicked()), this, SLOT(configChanged()) ); + connect( enableScrollBar, TQT_SIGNAL(clicked()), this, TQT_SLOT(configChanged()) ); - enableMiddleEmulation = new QCheckBox( i18n("&Emulate middle mouse button with scroll bar press"), this ); - QToolTip::add( enableMiddleEmulation, i18n( "When checked this box enables pressing the scroll bar to act in the same way as pressing the middle button on a 3 button mouse" ) ); + enableMiddleEmulation = new TQCheckBox( i18n("&Emulate middle mouse button with scroll bar press"), this ); + TQToolTip::add( enableMiddleEmulation, i18n( "When checked this box enables pressing the scroll bar to act in the same way as pressing the middle button on a 3 button mouse" ) ); top_layout->addWidget( enableMiddleEmulation ); - connect( enableMiddleEmulation, SIGNAL(clicked()), this, SLOT(configChanged()) ); + connect( enableMiddleEmulation, TQT_SIGNAL(clicked()), this, TQT_SLOT(configChanged()) ); if (::access("/dev/sonypi", R_OK) != 0) { enableMiddleEmulation->setEnabled(0); @@ -87,10 +87,10 @@ SonyConfig::SonyConfig(QWidget * parent, const char *name) // TODO: remove linefeed from string, can't do it right now coz we have a string freeze top_layout->addWidget(new KRichTextLabel(i18n("The /dev/sonypi is not accessable, if you wish to use the above features its\n" "protections need to be changed. Clicking on the button below will change them\n").replace("\n", " "), this)); - QHBoxLayout *ll = new QHBoxLayout(); - QPushButton *setupButton = new QPushButton(i18n("Setup /dev/sonypi"), this); - connect( setupButton, SIGNAL(clicked()), this, SLOT(setupHelper()) ); - QToolTip::add( setupButton, i18n( "This button can be used to enable the sony specific features" ) ); + TQHBoxLayout *ll = new TQHBoxLayout(); + TQPushButton *setupButton = new TQPushButton(i18n("Setup /dev/sonypi"), this); + connect( setupButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(setupHelper()) ); + TQToolTip::add( setupButton, i18n( "This button can be used to enable the sony specific features" ) ); ll->addStretch(2); ll->addWidget(setupButton); ll->addStretch(8); @@ -99,7 +99,7 @@ SonyConfig::SonyConfig(QWidget * parent, const char *name) top_layout->addStretch(1); - top_layout->addWidget( new QLabel( i18n("Version: %1").arg(LAPTOP_VERSION), this), 0, Qt::AlignRight ); + top_layout->addWidget( new TQLabel( i18n("Version: %1").arg(LAPTOP_VERSION), this), 0, Qt::AlignRight ); load(); @@ -107,7 +107,7 @@ SonyConfig::SonyConfig(QWidget * parent, const char *name) void SonyConfig::setupHelper() { - QString kdesu = KStandardDirs::findExe("kdesu"); + TQString kdesu = KStandardDirs::findExe("kdesu"); if (!kdesu.isEmpty()) { int rc = KMessageBox::warningContinueCancel(0, i18n("You will need to supply a root password " @@ -182,7 +182,7 @@ void SonyConfig::configChanged() } -QString SonyConfig::quickHelp() const +TQString SonyConfig::quickHelp() const { return i18n("

Sony Laptop Hardware Setup

This module allows you to configure " "some Sony laptop hardware for your system"); -- cgit v1.2.1