diff options
Diffstat (limited to 'kicker/extensions/kasbar/kasclockitem.h')
-rw-r--r-- | kicker/extensions/kasbar/kasclockitem.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/kicker/extensions/kasbar/kasclockitem.h b/kicker/extensions/kasbar/kasclockitem.h new file mode 100644 index 000000000..380901765 --- /dev/null +++ b/kicker/extensions/kasbar/kasclockitem.h @@ -0,0 +1,37 @@ +// -*- c++ -*- + + +#ifndef KASCLOCKITEM_H +#define KASCLOCKITEM_H + +#include "kasitem.h" + +/** + * An item that displays a clock. + */ +class KDE_EXPORT KasClockItem : public KasItem +{ + Q_OBJECT + +public: + KasClockItem( KasBar *parent ); + virtual ~KasClockItem(); + + void paint( QPainter *p ); + +public slots: + void updateTime(); + + void showMenuAt( QMouseEvent *ev ); + void showMenuAt( QPoint p ); + +protected: + /** Reimplemented from KasItem to create a date picker. */ + virtual KasPopup *createPopup(); + +private: + class LCD *lcd; +}; + +#endif // KASCLOCKITEM_H + |