You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
654 B
38 lines
654 B
14 years ago
|
|
||
|
#ifndef UBCLOCKPALLETTE_H_
|
||
|
#define UBCLOCKPALLETTE_H_
|
||
|
|
||
|
class QHBoxLayout;
|
||
|
class QLabel;
|
||
|
|
||
|
#include "UBFloatingPalette.h"
|
||
|
|
||
|
class UBClockPalette : public UBFloatingPalette
|
||
|
{
|
||
|
Q_OBJECT;
|
||
|
|
||
|
public:
|
||
|
UBClockPalette(QWidget *parent = 0);
|
||
|
virtual ~UBClockPalette();
|
||
|
|
||
|
protected:
|
||
|
int radius();
|
||
|
void timerEvent(QTimerEvent *event);
|
||
|
|
||
|
virtual void showEvent ( QShowEvent * event );
|
||
|
virtual void hideEvent ( QShowEvent * event );
|
||
|
|
||
|
|
||
|
protected slots:
|
||
|
void updateTime();
|
||
|
|
||
|
private:
|
||
|
|
||
|
QLabel *mTimeLabel;
|
||
|
int mTimerID;
|
||
|
QString mTimeFormat;
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif /* UBCLOCKPALLETTE_H_ */
|