author | Dmitriy Morozov <dmitriy@mrzv.org> |
Tue, 30 Aug 2011 09:50:51 -0700 | |
changeset 10 | 118b5e4e0f9b |
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