diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-14 14:09:37 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-18 22:46:01 +0900 |
commit | 278d2f50538b5465caa86fc7608d9cdfddf36cb9 (patch) | |
tree | 4a7510f5edd4198094ddd9ae4d81ca2a90da7990 /klaptopdaemon/battery.cpp | |
parent | a8bb8db5a25e70bf9de62c56c15c442883a752dc (diff) | |
download | tdeutils-278d2f50538b5465caa86fc7608d9cdfddf36cb9.tar.gz tdeutils-278d2f50538b5465caa86fc7608d9cdfddf36cb9.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit af0b8f5d1e5e00b1f3b48658d89876c2df28e71c)
Diffstat (limited to 'klaptopdaemon/battery.cpp')
-rw-r--r-- | klaptopdaemon/battery.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/klaptopdaemon/battery.cpp b/klaptopdaemon/battery.cpp index 9bf6be9..dcd03da 100644 --- a/klaptopdaemon/battery.cpp +++ b/klaptopdaemon/battery.cpp @@ -72,23 +72,23 @@ BatteryConfig::BatteryConfig (TQWidget * parent, const char *name) runMonitor = new TQCheckBox( i18n("&Show battery monitor"), this ); top_layout->addWidget( runMonitor ); TQToolTip::add( runMonitor, i18n( "This box enables the battery state icon in the panel" ) ); - connect( runMonitor, TQT_SIGNAL(clicked()), this, TQT_SLOT(configChanged()) ); - connect( runMonitor, TQT_SIGNAL(clicked()), this, TQT_SLOT(runMonitorChanged()) ); + connect( runMonitor, TQ_SIGNAL(clicked()), this, TQ_SLOT(configChanged()) ); + connect( runMonitor, TQ_SIGNAL(clicked()), this, TQ_SLOT(runMonitorChanged()) ); // show also the battery level percentage showLevel = new TQCheckBox( i18n("Show battery level percentage"), this ); top_layout->addWidget( showLevel ); TQToolTip::add( showLevel, i18n( "This box enables a text message near the battery state icon containing battery level percentage" ) ); - connect( showLevel, TQT_SIGNAL(clicked()), this, TQT_SLOT(configChanged()) ); + connect( showLevel, TQ_SIGNAL(clicked()), this, TQ_SLOT(configChanged()) ); notifyMe = new TQCheckBox( i18n("&Notify me whenever my battery becomes fully charged"), this ); top_layout->addWidget( notifyMe ); TQToolTip::add( notifyMe, i18n( "This box enables a dialog box that pops up when your battery becomes fully charged" ) ); - connect( notifyMe, TQT_SIGNAL(clicked()), this, TQT_SLOT(configChanged()) ); + connect( notifyMe, TQ_SIGNAL(clicked()), this, TQ_SLOT(configChanged()) ); blankSaver = new TQCheckBox( i18n("&Use a blank screen saver when running on battery"), this ); top_layout->addWidget( blankSaver ); - connect( blankSaver, TQT_SIGNAL(clicked()), this, TQT_SLOT(configChanged()) ); + connect( blankSaver, TQ_SIGNAL(clicked()), this, TQ_SLOT(configChanged()) ); if (!apm) { top_layout->addWidget( laptop_portable::no_power_management_explanation(this) ); @@ -105,8 +105,8 @@ BatteryConfig::BatteryConfig (TQWidget * parent, const char *name) TQToolTip::add( editPoll, i18n( "Choose how responsive the laptop software will be when it checks the battery status" ) ); editPoll->setSuffix( i18n("keep short, unit in spinbox", "sec") ); poll_label->setBuddy( editPoll ); - connect( editPoll, TQT_SIGNAL(valueChanged(int)), - this, TQT_SLOT(configChanged()) ); + connect( editPoll, TQ_SIGNAL(valueChanged(int)), + this, TQ_SLOT(configChanged()) ); TQWidget* spacer = new TQWidget( hb ); hb->setStretchFactor( spacer, 1 ); @@ -128,9 +128,9 @@ BatteryConfig::BatteryConfig (TQWidget * parent, const char *name) buttonNoBattery->setIconType( TDEIcon::NoGroup, TDEIcon::Any, 1); buttonNoCharge->setIconType( TDEIcon::NoGroup, TDEIcon::Any, 1); buttonCharge->setIconType( TDEIcon::NoGroup, TDEIcon::Any, 1); - connect(buttonNoBattery, TQT_SIGNAL(iconChanged(TQString)), this, TQT_SLOT(iconChanged())); - connect(buttonNoCharge, TQT_SIGNAL(iconChanged(TQString)), this, TQT_SLOT(iconChanged())); - connect(buttonCharge, TQT_SIGNAL(iconChanged(TQString)), this, TQT_SLOT(configChanged())); + connect(buttonNoBattery, TQ_SIGNAL(iconChanged(TQString)), this, TQ_SLOT(iconChanged())); + connect(buttonNoCharge, TQ_SIGNAL(iconChanged(TQString)), this, TQ_SLOT(iconChanged())); + connect(buttonCharge, TQ_SIGNAL(iconChanged(TQString)), this, TQ_SLOT(configChanged())); int num_batteries; @@ -178,7 +178,7 @@ BatteryConfig::BatteryConfig (TQWidget * parent, const char *name) top_layout->addStretch(1); startMonitor = new TQPushButton( i18n("&Start Battery Monitor"), this); - connect(startMonitor, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotStartMonitor())); + connect(startMonitor, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotStartMonitor())); top_layout->addWidget( startMonitor, 0, TQt::AlignRight ); load(); |