diff options
author | Michele Calgaro <[email protected]> | 2024-01-14 14:09:37 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-01-18 22:46:01 +0900 |
commit | 278d2f50538b5465caa86fc7608d9cdfddf36cb9 (patch) | |
tree | 4a7510f5edd4198094ddd9ae4d81ca2a90da7990 /klaptopdaemon/power.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 <[email protected]>
(cherry picked from commit af0b8f5d1e5e00b1f3b48658d89876c2df28e71c)
Diffstat (limited to 'klaptopdaemon/power.cpp')
-rw-r--r-- | klaptopdaemon/power.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/klaptopdaemon/power.cpp b/klaptopdaemon/power.cpp index 89c25dc..cf132c9 100644 --- a/klaptopdaemon/power.cpp +++ b/klaptopdaemon/power.cpp @@ -148,8 +148,8 @@ PowerConfig::PowerConfig (TQWidget * parent, const char *name) nopowerValBrightness = new TQSlider(0, 255, 16, 255, TQt::Horizontal, wp); TQToolTip::add( nopowerValBrightness, i18n( "How bright to change the back panel" ) ); nopowerValBrightness->setEnabled(0); - connect(nopowerValBrightness, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(changed())); - connect(nopowerBrightness, TQT_SIGNAL(toggled(bool)), nopowerValBrightness, TQT_SLOT(setEnabled(bool))); + connect(nopowerValBrightness, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(changed())); + connect(nopowerBrightness, TQ_SIGNAL(toggled(bool)), nopowerValBrightness, TQ_SLOT(setEnabled(bool))); xl->addWidget(nopowerValBrightness); xl->addWidget(new TQLabel("+", wp)); xl->addStretch(1); @@ -164,8 +164,8 @@ PowerConfig::PowerConfig (TQWidget * parent, const char *name) TQToolTip::add( nopowerValPerformance, i18n( "Which profile to change it to" ) ); nopowerValPerformance->insertStringList(performance_list); nopowerValPerformance->setEnabled(0); - connect(nopowerValPerformance, TQT_SIGNAL(activated(int)), this, TQT_SLOT(changed())); - connect(nopowerPerformance, TQT_SIGNAL(toggled(bool)), nopowerValPerformance, TQT_SLOT(setEnabled(bool))); + connect(nopowerValPerformance, TQ_SIGNAL(activated(int)), this, TQ_SLOT(changed())); + connect(nopowerPerformance, TQ_SIGNAL(toggled(bool)), nopowerValPerformance, TQ_SLOT(setEnabled(bool))); xl->addWidget(nopowerValPerformance); xl->addStretch(1); } @@ -179,25 +179,25 @@ PowerConfig::PowerConfig (TQWidget * parent, const char *name) TQToolTip::add( nopowerValThrottle, i18n( "How much to throttle the laptop's CPU" ) ); nopowerValThrottle->insertStringList(throttle_list); nopowerValThrottle->setEnabled(0); - connect(nopowerValThrottle, TQT_SIGNAL(activated(int)), this, TQT_SLOT(changed())); - connect(nopowerThrottle, TQT_SIGNAL(toggled(bool)), nopowerValThrottle, TQT_SLOT(setEnabled(bool))); + connect(nopowerValThrottle, TQ_SIGNAL(activated(int)), this, TQ_SLOT(changed())); + connect(nopowerThrottle, TQ_SIGNAL(toggled(bool)), nopowerValThrottle, TQ_SLOT(setEnabled(bool))); xl->addWidget(nopowerValThrottle); xl->addStretch(1); } - connect(nopowerBox, TQT_SIGNAL(clicked(int)), this, TQT_SLOT(changed())); + connect(nopowerBox, TQ_SIGNAL(clicked(int)), this, TQ_SLOT(changed())); bool can_lav = laptop_portable::has_lav(); TQHBox *hbox; if (can_lav) { hbox = new TQHBox( nopowerBox ); noenablelav = new TQCheckBox(i18n("Don't act if LAV is >"), hbox); - connect(noenablelav, TQT_SIGNAL(clicked()), this, TQT_SLOT(changed())); + connect(noenablelav, TQ_SIGNAL(clicked()), this, TQ_SLOT(changed())); noeditlav = new KDoubleSpinBox(0.0, 10.0, 0.0, 0.1, 1, hbox); TQToolTip::add( noeditlav, i18n( "If enabled and the system load average is greater than this value none of the above options will be applied" ) ); - connect(noeditlav, TQT_SIGNAL(valueChanged(double)), this, TQT_SLOT(changed())); - connect(noenablelav, TQT_SIGNAL(toggled(bool)), noeditlav, TQT_SLOT(setEnabled(bool))); + connect(noeditlav, TQ_SIGNAL(valueChanged(double)), this, TQ_SLOT(changed())); + connect(noenablelav, TQ_SIGNAL(toggled(bool)), noeditlav, TQ_SLOT(setEnabled(bool))); } hbox = new TQHBox( nopowerBox ); @@ -207,7 +207,7 @@ PowerConfig::PowerConfig (TQWidget * parent, const char *name) noeditwait->setSuffix( i18n("keep short, unit in spinbox", "min") ); noedlabel->setBuddy( noeditwait ); hbox->setStretchFactor( noeditwait, 1 ); - connect( noeditwait, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(changed())); + connect( noeditwait, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(changed())); /////////////////////////////////////////////////////////////// @@ -241,8 +241,8 @@ PowerConfig::PowerConfig (TQWidget * parent, const char *name) powerValBrightness = new TQSlider(0, 255, 16, 255, TQt::Horizontal, wp); TQToolTip::add( powerValBrightness, i18n( "How bright to change the back panel" ) ); powerValBrightness->setEnabled(0); - connect(powerValBrightness, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(changed())); - connect(powerBrightness, TQT_SIGNAL(toggled(bool)), powerValBrightness, TQT_SLOT(setEnabled(bool))); + connect(powerValBrightness, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(changed())); + connect(powerBrightness, TQ_SIGNAL(toggled(bool)), powerValBrightness, TQ_SLOT(setEnabled(bool))); xl->addWidget(powerValBrightness); xl->addWidget(new TQLabel("+", wp)); xl->addStretch(1); @@ -257,8 +257,8 @@ PowerConfig::PowerConfig (TQWidget * parent, const char *name) TQToolTip::add( powerValPerformance, i18n( "Which profile to change it to" ) ); powerValPerformance->insertStringList(performance_list); powerValPerformance->setEnabled(0); - connect(powerValPerformance, TQT_SIGNAL(activated(int)), this, TQT_SLOT(changed())); - connect(powerPerformance, TQT_SIGNAL(toggled(bool)), powerValPerformance, TQT_SLOT(setEnabled(bool))); + connect(powerValPerformance, TQ_SIGNAL(activated(int)), this, TQ_SLOT(changed())); + connect(powerPerformance, TQ_SIGNAL(toggled(bool)), powerValPerformance, TQ_SLOT(setEnabled(bool))); xl->addWidget(powerValPerformance); xl->addStretch(1); } @@ -272,22 +272,22 @@ PowerConfig::PowerConfig (TQWidget * parent, const char *name) TQToolTip::add( powerValThrottle, i18n( "How much to throttle the laptop's CPU" ) ); powerValThrottle->insertStringList(throttle_list); powerValThrottle->setEnabled(0); - connect(powerValThrottle, TQT_SIGNAL(activated(int)), this, TQT_SLOT(changed())); - connect(powerThrottle, TQT_SIGNAL(toggled(bool)), powerValThrottle, TQT_SLOT(setEnabled(bool))); + connect(powerValThrottle, TQ_SIGNAL(activated(int)), this, TQ_SLOT(changed())); + connect(powerThrottle, TQ_SIGNAL(toggled(bool)), powerValThrottle, TQ_SLOT(setEnabled(bool))); xl->addWidget(powerValThrottle); xl->addStretch(1); } - connect(powerBox, TQT_SIGNAL(clicked(int)), this, TQT_SLOT(changed())); + connect(powerBox, TQ_SIGNAL(clicked(int)), this, TQ_SLOT(changed())); if (can_lav) { hbox = new TQHBox( powerBox ); enablelav = new TQCheckBox(i18n("Don't act if LAV is >"), hbox); - connect( enablelav, TQT_SIGNAL(clicked()), this, TQT_SLOT(changed())); + connect( enablelav, TQ_SIGNAL(clicked()), this, TQ_SLOT(changed())); editlav = new KDoubleSpinBox(0.0, 10.0, 0.0, 0.1, 1, hbox); TQToolTip::add( editlav, i18n( "If enabled and the system load average is greater than this value none of the above options will be applied" ) ); - connect( editlav, TQT_SIGNAL(valueChanged(double)), this, TQT_SLOT(changed())); - connect( enablelav, TQT_SIGNAL(toggled(bool)), editlav, TQT_SLOT(setEnabled(bool)) ); + connect( editlav, TQ_SIGNAL(valueChanged(double)), this, TQ_SLOT(changed())); + connect( enablelav, TQ_SIGNAL(toggled(bool)), editlav, TQ_SLOT(setEnabled(bool)) ); } hbox = new TQHBox( powerBox ); @@ -297,7 +297,7 @@ PowerConfig::PowerConfig (TQWidget * parent, const char *name) editwait->setSuffix( i18n("keep short, unit in spinbox", "min") ); edlabel->setBuddy( editwait ); hbox->setStretchFactor( editwait, 1 ); - connect( editwait, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(changed())); + connect( editwait, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(changed())); hlay->addStretch(1); |