Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit cecabba3b0)
r14.1.x
Michele Calgaro 11 months ago
parent d69adfd461
commit 4d46d6c227
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -62,8 +62,8 @@ BrightnessChooser::BrightnessChooser( TQWidget* parent, const char* name, WFlags
clearWState( WState_Polished ); clearWState( WState_Polished );
// signals and slots connections // signals and slots connections
connect( okButton, SIGNAL( clicked() ), this, SLOT( updateBrightness() ) ); connect( okButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( updateBrightness() ) );
connect( brightnessSlider, SIGNAL( valueChanged(int) ), this, SLOT( updateValue(int) ) ); connect( brightnessSlider, TQ_SIGNAL( valueChanged(int) ), this, TQ_SLOT( updateValue(int) ) );
} }
/* /*

@ -84,12 +84,12 @@ void BrightnessChooserImpl::updateBrightness()
proc->addArgument( Preferences::program() ); proc->addArgument( Preferences::program() );
proc->addArgument( args ); proc->addArgument( args );
connect( proc, SIGNAL(readyReadStdout()), connect( proc, TQ_SIGNAL(readyReadStdout()),
this, SLOT(readFromStdout()) ); this, TQ_SLOT(readFromStdout()) );
connect( proc, SIGNAL(readyReadStderr()), connect( proc, TQ_SIGNAL(readyReadStderr()),
this, SLOT(readFromStderr()) ); this, TQ_SLOT(readFromStderr()) );
connect( proc, SIGNAL(processExited()), connect( proc, TQ_SIGNAL(processExited()),
this, SLOT(procExited()) ); this, TQ_SLOT(procExited()) );
if ( !proc->start() ) { if ( !proc->start() ) {
// error handling // error handling
@ -122,12 +122,12 @@ void BrightnessChooserImpl::getBrightness()
proc->addArgument( Preferences::program() ); proc->addArgument( Preferences::program() );
proc->addArgument( args ); proc->addArgument( args );
connect( proc, SIGNAL(readyReadStdout()), connect( proc, TQ_SIGNAL(readyReadStdout()),
this, SLOT(readValueFromStdout()) ); this, TQ_SLOT(readValueFromStdout()) );
connect( proc, SIGNAL(readyReadStderr()), connect( proc, TQ_SIGNAL(readyReadStderr()),
this, SLOT(readFromStderr()) ); this, TQ_SLOT(readFromStderr()) );
connect( proc, SIGNAL(processExited()), connect( proc, TQ_SIGNAL(processExited()),
this, SLOT(procExited()) ); this, TQ_SLOT(procExited()) );
if ( !proc->start() ) { if ( !proc->start() ) {
// error handling // error handling

@ -63,7 +63,7 @@ klcddimmer::klcddimmer(const TQString& configFile, Type type, int actions, TQWid
mBrightnessChooserFrame->setMainWidget(chooser); mBrightnessChooserFrame->setMainWidget(chooser);
mBrightnessChooserFrame->resize(chooser->size()); mBrightnessChooserFrame->resize(chooser->size());
connect(chooser, SIGNAL(valueUpdated()), this, SLOT(valueUpdate())); connect(chooser, TQ_SIGNAL(valueUpdated()), this, TQ_SLOT(valueUpdate()));
initContextMenu(); initContextMenu();
@ -166,11 +166,11 @@ void klcddimmer::initContextMenu()
{ {
mContextMenu = new TDEPopupMenu(this); mContextMenu = new TDEPopupMenu(this);
//mContextMenu->insertItem(SmallIcon("reload"), i18n("&Update Now"), //mContextMenu->insertItem(SmallIcon("reload"), i18n("&Update Now"),
// this, SLOT(slotUpdateNow()), 0, -1, 2); // this, TQ_SLOT(slotUpdateNow()), 0, -1, 2);
mContextMenu->insertSeparator(); 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"), mContextMenu->insertItem(SmallIcon("configure"),
i18n("&Configure KLcdDimmer..."), this, SLOT(preferences())); i18n("&Configure KLcdDimmer..."), this, TQ_SLOT(preferences()));
setCustomMenu(mContextMenu); setCustomMenu(mContextMenu);
} }

Loading…
Cancel
Save