author | Dmitriy Morozov <dmitriy@mrzv.org> |
Sun, 21 Nov 2010 07:39:16 -0800 | |
changeset 5 | 1ff3df15f3dc |
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