summaryrefslogtreecommitdiff
path: root/core/pim/datebook/timepicker.h
blob: 1c35600e886b2f15ebe1a23bee6ee89a85d8f049 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef TIMEPICKER_H
#define TIMEPICKER_H

#include <qwidget.h>
#include <qvaluelist.h>
#include <opie/oclickablelabel.h>
#include <qdatetime.h>

class TimePicker: public QWidget {
  Q_OBJECT

 public:
    TimePicker(QWidget* parent = 0, const char* name = 0, 
	       WFlags fl = 0);
    void setHour(int h);
    void setMinute(int m);

 private:
    QValueList<OClickableLabel *> hourLst;
    QValueList<OClickableLabel *> minuteLst;
    QTime tm;

 private slots:
    void slotHour(bool b);
    void slotMinute(bool b);

 signals:
    void timeChanged(const QTime &);
};


#endif