i--;
if ( d->pages.at( i ) ) {
if ( d->current ) {
- nextButton()->setEnabled( false );
- backButton()->setEnabled( false );
+ setNextEnabled( false );
+ setBackEnabled( false );
if ( !acceptData( d->current->t ) ) {
- nextButton()->setEnabled( true );
- backButton()->setEnabled( true );
+ setNextEnabled( true );
+ setBackEnabled( true );
return;
}
}
if ( d->pages.at( i ) ) {
showPage( d->pages.at( i )->w );
}
- nextButton()->setEnabled( true );
- backButton()->setEnabled( true );
+ setNextEnabled( true );
+ setBackEnabled( true );
}
/*!
}
}
// <Next> button
- nextButton()->setEnabled( true );
+ setNextEnabled( true );
nextButton()->setText( tr( "&Next >" ) );
QWhatsThis::add( nextButton(), tr( "Moves to the next step of the installation procedure" ) );
QToolTip::add ( nextButton(), tr( "Moves to the next step of the installation procedure" ) );
nextButton()->disconnect();
connect( nextButton(), SIGNAL( clicked() ), this, SLOT( next() ) );
// <Back> button
- backButton()->setEnabled( true );
+ setBackEnabled( true );
// script parameters
passedParams->clear();
passedParams->setEnabled( false );
// reconnect Next button - to use it as Start button
nextButton()->disconnect();
connect( nextButton(), SIGNAL( clicked() ), this, SLOT( onStart() ) );
- nextButton()->setEnabled( true );
+ setNextEnabled( true );
// reconnect Cancel button to terminate process
cancelButton()->disconnect();
connect( cancelButton(), SIGNAL( clicked() ), this, SLOT( tryTerminate() ) );
if ( !toInstall.isEmpty() ) {
clean(false); // VSR 07/02/05 - bug fix: first we should clear temporary directory
// disable <Next> button
- nextButton()->setEnabled( false );
+ setNextEnabled( false );
// disable <Back> button
- backButton()->setEnabled ( false );
+ setBackEnabled( false );
// enable script parameters line edit
// VSR commented: 18/09/03: passedParams->setEnabled( true );
// VSR commented: 18/09/03: passedParams->setFocus();
passedParams->setEnabled( false );
QFont f = parametersLab->font(); f.setBold( false ); parametersLab->setFont( f );
// enable <Next> button
- nextButton()->setEnabled( true );
+ setNextEnabled( true );
nextButton()->setText( tr( "&Next >" ) );
QWhatsThis::add( nextButton(), tr( "Moves to the next step of the installation procedure" ) );
QToolTip::add ( nextButton(), tr( "Moves to the next step of the installation procedure" ) );
nextButton()->disconnect();
connect( nextButton(), SIGNAL( clicked() ), this, SLOT( next() ) );
// enable <Back> button
- backButton()->setEnabled( true );
+ setBackEnabled( true );
}
}
// ================================================================
QMessageBox::NoButton ) == QMessageBox::No ) {
myThread->clearCommands();
myWC.wakeAll();
+ setNextEnabled( true );
+ setBackEnabled( true );
return;
}
+ WarnDialog::showWarnDlg( this, true );
}
else {
WarnDialog::showWarnDlg( 0, false );
QMessageBox::Ok,
QMessageBox::NoButton,
QMessageBox::NoButton );
- productsView->setNone( item );
myThread->clearCommands();
myWC.wakeAll();
+ setNextEnabled( true );
+ setBackEnabled( true );
+ productsView->setNone( item );
return;
}
}