timelabel.h
author Dmitriy Morozov <dmitriy@mrzv.org>
Mon, 17 Jan 2011 09:08:22 -0800
changeset 8 6e21d1f3b806
parent 0 7726fefc58a4
permissions -rw-r--r--
Added next/previous page

#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