|
|
@ -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
|
|
|
|