File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ class alertwidget : public QWidget
2525
2626 inline bool getState () { return Settings.enabled ; }
2727 inline QString getName () {return Settings.name ; }
28+ bool isRunning () { return this ->alertTick .isActive (); }
2829 inline WidgetSettings getSettings () const {return this ->Settings ; }
2930
3031 int getAlertTime ();
@@ -62,7 +63,7 @@ public slots:
6263 QTime alertTime;
6364 QTimer alertTick;
6465 QTimer blinkTimer;
65- // QString alertName;
66+
6667
6768 bool blinking;
6869 bool blinky;
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ class TimerWidget : public QWidget
3232
3333 QString getTimerName ();
3434 int getTimerDuration ();
35+ bool isRunning () {return this ->timer ->isActive (); }
3536 inline WidgetSettings getSettings () const {return this ->Settings ; }
3637
3738 void setTimerName (const QString &_name);
You can’t perform that action at this time.
0 commit comments