author | Dmitriy Morozov <dmitriy@mrzv.org> |
Mon, 01 Feb 2016 11:11:46 -0800 | |
changeset 22 | c62a23291b60 |
parent 0 | 7726fefc58a4 |
permissions | -rw-r--r-- |
#ifndef TIMELABEL_H #define TIMELABEL_H #include <QLabel> #include <QTime> #include <QTimer> class TimeLabel: public QLabel { Q_OBJECT public: TimeLabel(QWidget* parent); void mouseDoubleClickEvent(QMouseEvent* event); void toggleCounting(); void toggleCountdown(); void setTime(); private: QTimer* timer; QTime time; bool counting; bool countingDown; private slots: void countTime(); }; #endif