From 6319b6fee8a194479f3da18863723d5b1f657881 Mon Sep 17 00:00:00 2001 From: rogo Date: Thu, 3 Oct 2019 14:54:01 +0200 Subject: [PATCH] fixed space bar behavior --- mainwindow.cpp | 10 +++++----- mainwindow.ui | 10 ++++++++-- shutdown2.pro.user | 1 - 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 3d72201..78f9b61 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -62,15 +62,15 @@ void MainWindow::initStateMachine() mState.start(); } +void MainWindow::on_btn_startstop_clicked() +{ + triggerCssUpdate(); +} + void MainWindow::triggerCssUpdate() { qDebug() << QTime::currentTime() << "updating CSS"; // rogo: delete setStyleSheet(mCss); } -void MainWindow::on_btn_startstop_clicked() -{ - triggerCssUpdate(); -} - } diff --git a/mainwindow.ui b/mainwindow.ui index f1c5053..00a7ee1 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -67,6 +67,12 @@ Start + + true + + + true + false @@ -546,6 +552,7 @@ + btn_startstop r_0 r_11 r_22 @@ -554,8 +561,7 @@ r_74 r_90 r_120 - spinBox - btn_startstop + r_custom diff --git a/shutdown2.pro.user b/shutdown2.pro.user index 8a69f2f..d90bdb9 100644 --- a/shutdown2.pro.user +++ b/shutdown2.pro.user @@ -1,6 +1,5 @@ - EnvironmentId