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
25
25
26
26
inline bool getState () { return Settings.enabled ; }
27
27
inline QString getName () {return Settings.name ; }
28
+ bool isRunning () { return this ->alertTick .isActive (); }
28
29
inline WidgetSettings getSettings () const {return this ->Settings ; }
29
30
30
31
int getAlertTime ();
@@ -62,7 +63,7 @@ public slots:
62
63
QTime alertTime;
63
64
QTimer alertTick;
64
65
QTimer blinkTimer;
65
- // QString alertName;
66
+
66
67
67
68
bool blinking;
68
69
bool blinky;
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ class TimerWidget : public QWidget
32
32
33
33
QString getTimerName ();
34
34
int getTimerDuration ();
35
+ bool isRunning () {return this ->timer ->isActive (); }
35
36
inline WidgetSettings getSettings () const {return this ->Settings ; }
36
37
37
38
void setTimerName (const QString &_name);
You can’t perform that action at this time.
0 commit comments