Skip to content

Commit b869a58

Browse files
committed
Progress Commit
1 parent bbc1081 commit b869a58

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

SmartTimer/alertwidget.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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;

SmartTimer/timerwidget.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)