diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-05 10:20:52 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-05 10:20:52 +0900 |
commit | cecabba3b0e7aafab327d73d62974b47f119dcb8 (patch) | |
tree | 509bc4ced420c8bf2f943fe124d3ea05c4cbe011 | |
parent | 739e6b63f5640d35a346504ae53b2ff33084f63e (diff) | |
download | klcddimmer-cecabba3b0e7aafab327d73d62974b47f119dcb8.tar.gz klcddimmer-cecabba3b0e7aafab327d73d62974b47f119dcb8.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r-- | src/brightnesschooser.cpp | 4 | ||||
-rw-r--r-- | src/brightnesschooserimpl.cpp | 24 | ||||
-rw-r--r-- | src/klcddimmer.cpp | 8 |
3 files changed, 18 insertions, 18 deletions
diff --git a/src/brightnesschooser.cpp b/src/brightnesschooser.cpp index 6698d19..a986467 100644 --- a/src/brightnesschooser.cpp +++ b/src/brightnesschooser.cpp @@ -62,8 +62,8 @@ BrightnessChooser::BrightnessChooser( TQWidget* parent, const char* name, WFlags clearWState( WState_Polished ); // signals and slots connections - connect( okButton, SIGNAL( clicked() ), this, SLOT( updateBrightness() ) ); - connect( brightnessSlider, SIGNAL( valueChanged(int) ), this, SLOT( updateValue(int) ) ); + connect( okButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( updateBrightness() ) ); + connect( brightnessSlider, TQ_SIGNAL( valueChanged(int) ), this, TQ_SLOT( updateValue(int) ) ); } /* diff --git a/src/brightnesschooserimpl.cpp b/src/brightnesschooserimpl.cpp index 60051b6..a5608a5 100644 --- a/src/brightnesschooserimpl.cpp +++ b/src/brightnesschooserimpl.cpp @@ -84,12 +84,12 @@ void BrightnessChooserImpl::updateBrightness() proc->addArgument( Preferences::program() ); proc->addArgument( args ); - connect( proc, SIGNAL(readyReadStdout()), - this, SLOT(readFromStdout()) ); - connect( proc, SIGNAL(readyReadStderr()), - this, SLOT(readFromStderr()) ); - connect( proc, SIGNAL(processExited()), - this, SLOT(procExited()) ); + connect( proc, TQ_SIGNAL(readyReadStdout()), + this, TQ_SLOT(readFromStdout()) ); + connect( proc, TQ_SIGNAL(readyReadStderr()), + this, TQ_SLOT(readFromStderr()) ); + connect( proc, TQ_SIGNAL(processExited()), + this, TQ_SLOT(procExited()) ); if ( !proc->start() ) { // error handling @@ -122,12 +122,12 @@ void BrightnessChooserImpl::getBrightness() proc->addArgument( Preferences::program() ); proc->addArgument( args ); - connect( proc, SIGNAL(readyReadStdout()), - this, SLOT(readValueFromStdout()) ); - connect( proc, SIGNAL(readyReadStderr()), - this, SLOT(readFromStderr()) ); - connect( proc, SIGNAL(processExited()), - this, SLOT(procExited()) ); + connect( proc, TQ_SIGNAL(readyReadStdout()), + this, TQ_SLOT(readValueFromStdout()) ); + connect( proc, TQ_SIGNAL(readyReadStderr()), + this, TQ_SLOT(readFromStderr()) ); + connect( proc, TQ_SIGNAL(processExited()), + this, TQ_SLOT(procExited()) ); if ( !proc->start() ) { // error handling diff --git a/src/klcddimmer.cpp b/src/klcddimmer.cpp index 4a10eec..c2129dc 100644 --- a/src/klcddimmer.cpp +++ b/src/klcddimmer.cpp @@ -63,7 +63,7 @@ klcddimmer::klcddimmer(const TQString& configFile, Type type, int actions, TQWid mBrightnessChooserFrame->setMainWidget(chooser); mBrightnessChooserFrame->resize(chooser->size()); - connect(chooser, SIGNAL(valueUpdated()), this, SLOT(valueUpdate())); + connect(chooser, TQ_SIGNAL(valueUpdated()), this, TQ_SLOT(valueUpdate())); initContextMenu(); @@ -166,11 +166,11 @@ void klcddimmer::initContextMenu() { mContextMenu = new TDEPopupMenu(this); //mContextMenu->insertItem(SmallIcon("reload"), i18n("&Update Now"), - // this, SLOT(slotUpdateNow()), 0, -1, 2); + // this, TQ_SLOT(slotUpdateNow()), 0, -1, 2); mContextMenu->insertSeparator(); - mContextMenu->insertItem(SmallIcon("klcddimmer"), i18n("&About KLcdDimmer"), this, SLOT(about())); + mContextMenu->insertItem(SmallIcon("klcddimmer"), i18n("&About KLcdDimmer"), this, TQ_SLOT(about())); mContextMenu->insertItem(SmallIcon("configure"), - i18n("&Configure KLcdDimmer..."), this, SLOT(preferences())); + i18n("&Configure KLcdDimmer..."), this, TQ_SLOT(preferences())); setCustomMenu(mContextMenu); } |