summaryrefslogtreecommitdiffstats
path: root/hyperui/clockwidget.h
diff options
context:
space:
mode:
authorAdriano Rezende <adriano.rezende@openbossa.org>2009-11-27 19:31:38 -0300
committerAdriano Rezende <adriano.rezende@openbossa.org>2009-11-27 19:31:38 -0300
commit016105adebe40907145eb46a80665681048140ef (patch)
treedd55c0500e28d0016bfb3595654df8d9fbcbdfb9 /hyperui/clockwidget.h
parentcdc1419bf4b010ee9b820956e284f372423fc585 (diff)
HyperUI: Added event labels to clock widget
Diffstat (limited to 'hyperui/clockwidget.h')
-rw-r--r--hyperui/clockwidget.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/hyperui/clockwidget.h b/hyperui/clockwidget.h
index e076707..62a1890 100644
--- a/hyperui/clockwidget.h
+++ b/hyperui/clockwidget.h
@@ -49,7 +49,7 @@ public:
~ClockWidget();
void addEvent(const QDateTime &begin, const QDateTime &end,
- const QColor &color);
+ const QColor &color, const QString &text);
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
QWidget *widget = 0);
@@ -60,16 +60,20 @@ private slots:
private:
QFont m_dayFont;
+ QFont m_labelFont;
QFont m_weekDayFont;
QColor m_fontColor;
QPixmap m_background;
+ QPixmap m_divLine;
QTimer m_timer;
QPoint m_knobPoint;
QPoint m_middlePoint;
+ QPoint m_labelPos;
QRectF m_dayRect;
QRectF m_weekDayRect;
QRect m_eventsPixmapRect;
+ int m_labelHeight;
int m_eventsInnerOffset;
int m_eventsInnerDiameter;