Commit c2dad214 authored by Oliver Bock's avatar Oliver Bock

Fixed button handling

parent 8c551ad1
......@@ -198,23 +198,18 @@ void PulsatingScience::closeEvent(QCloseEvent *event)
void PulsatingScience::on_pushRun_clicked()
{
if(ui.pushRun->isEnabled()) {
ui.pushRun->setEnabled(false);
ui.pushPause->setEnabled(true);
ui.pushStop->setEnabled(true);
}
else {
ui.pushRun->setEnabled(true);
ui.pushPause->setEnabled(false);
ui.pushStop->setEnabled(false);
}
ui.pushRun->setEnabled(false);
ui.pushPause->setEnabled(true);
ui.pushStop->setEnabled(true);
}
void PulsatingScience::on_pushPause_clicked()
{
ui.pushRun->setEnabled(true);
ui.pushPause->setEnabled(false);
ui.pushStop->setEnabled(true);
if(ui.pushPause->isEnabled()) {
ui.pushRun->setEnabled(true);
ui.pushPause->setEnabled(false);
ui.pushStop->setEnabled(true);
}
}
void PulsatingScience::on_pushStop_clicked()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment