Diffstat (limited to 'core/pim/datebook/datebookday.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook/datebookday.h | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/core/pim/datebook/datebookday.h b/core/pim/datebook/datebookday.h index be7cc45..db1cd04 100644 --- a/core/pim/datebook/datebookday.h +++ b/core/pim/datebook/datebookday.h | |||
@@ -42,3 +42,3 @@ public: | |||
42 | bool whichClock() const; | 42 | bool whichClock() const; |
43 | 43 | ||
44 | void setRowStyle( int style ); | 44 | void setRowStyle( int style ); |
@@ -57,3 +57,3 @@ protected: | |||
57 | virtual void paintFocus( QPainter *p, const QRect &cr ); | 57 | virtual void paintFocus( QPainter *p, const QRect &cr ); |
58 | 58 | ||
59 | virtual void resizeEvent( QResizeEvent *e ); | 59 | virtual void resizeEvent( QResizeEvent *e ); |
@@ -78,3 +78,3 @@ public: | |||
78 | const EffectiveEvent &event() const { return ev; } | 78 | const EffectiveEvent &event() const { return ev; } |
79 | 79 | ||
80 | signals: | 80 | signals: |
@@ -89,2 +89,13 @@ protected: | |||
89 | private: | 89 | private: |
90 | /** | ||
91 | * Sets the text for an all day Event | ||
92 | * All day events have no time associated | ||
93 | */ | ||
94 | void setAllDayText( QString& text ); | ||
95 | |||
96 | /** | ||
97 | * Sets the EventText | ||
98 | * it got a start and an end Time | ||
99 | */ | ||
100 | void setEventText( QString& text ); | ||
90 | const EffectiveEvent ev; | 101 | const EffectiveEvent ev; |
@@ -108,3 +119,3 @@ public: | |||
108 | 119 | ||
109 | signals: | 120 | signals: |
110 | 121 | ||
@@ -121,10 +132,10 @@ private: | |||
121 | class WidgetListClass : public QList<DateBookDayWidget> | 132 | class WidgetListClass : public QList<DateBookDayWidget> |
122 | { | 133 | { |
123 | private: | 134 | private: |
124 | 135 | ||
125 | int compareItems( QCollection::Item s1, QCollection::Item s2 ) | 136 | int compareItems( QCollection::Item s1, QCollection::Item s2 ) |
126 | { | 137 | { |
127 | //hmm, don't punish me for that ;) | 138 | //hmm, don't punish me for that ;) |
128 | if (reinterpret_cast<DateBookDayWidget*>(s1)->geometry().height() > reinterpret_cast<DateBookDayWidget*>(s2)->geometry().height()) | 139 | if (reinterpret_cast<DateBookDayWidget*>(s1)->geometry().height() > reinterpret_cast<DateBookDayWidget*>(s2)->geometry().height()) |
129 | { | 140 | { |
130 | return -1; | 141 | return -1; |
@@ -135,3 +146,3 @@ class WidgetListClass : public QList<DateBookDayWidget> | |||
135 | } | 146 | } |
136 | 147 | ||
137 | 148 | ||