-rw-r--r-- | korganizer/kodaymatrix.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/korganizer/kodaymatrix.h b/korganizer/kodaymatrix.h index 0e9640a..ac2f59c 100644 --- a/korganizer/kodaymatrix.h +++ b/korganizer/kodaymatrix.h | |||
@@ -195,64 +195,65 @@ signals: | |||
195 | void selected( const KCal::DateList &daylist ); | 195 | void selected( const KCal::DateList &daylist ); |
196 | 196 | ||
197 | /** emitted if the user has dropped an event inside the matrix | 197 | /** emitted if the user has dropped an event inside the matrix |
198 | * | 198 | * |
199 | * @param event the dropped calendar event | 199 | * @param event the dropped calendar event |
200 | */ | 200 | */ |
201 | void eventDropped(Event *event); | 201 | void eventDropped(Event *event); |
202 | 202 | ||
203 | protected: | 203 | protected: |
204 | 204 | ||
205 | void paintEvent(QPaintEvent *ev); | 205 | void paintEvent(QPaintEvent *ev); |
206 | 206 | ||
207 | void mousePressEvent (QMouseEvent* e); | 207 | void mousePressEvent (QMouseEvent* e); |
208 | 208 | ||
209 | void mouseReleaseEvent (QMouseEvent* e); | 209 | void mouseReleaseEvent (QMouseEvent* e); |
210 | 210 | ||
211 | void mouseMoveEvent (QMouseEvent* e); | 211 | void mouseMoveEvent (QMouseEvent* e); |
212 | 212 | ||
213 | void dragEnterEvent(QDragEnterEvent *); | 213 | void dragEnterEvent(QDragEnterEvent *); |
214 | 214 | ||
215 | void dragMoveEvent(QDragMoveEvent *); | 215 | void dragMoveEvent(QDragMoveEvent *); |
216 | 216 | ||
217 | void dragLeaveEvent(QDragLeaveEvent *); | 217 | void dragLeaveEvent(QDragLeaveEvent *); |
218 | 218 | ||
219 | void dropEvent(QDropEvent *); | 219 | void dropEvent(QDropEvent *); |
220 | 220 | ||
221 | void resizeEvent(QResizeEvent *); | 221 | void resizeEvent(QResizeEvent *); |
222 | 222 | ||
223 | private: | 223 | private: |
224 | QTimer* mUpdateTimer; | 224 | QTimer* mUpdateTimer; |
225 | QTimer* mRepaintTimer; | 225 | QTimer* mRepaintTimer; |
226 | bool mDayChanged; | 226 | bool mDayChanged; |
227 | bool mPendingUpdateBeforeRepaint; | ||
227 | 228 | ||
228 | /** returns the index of the day located at the matrix's widget (x,y) position. | 229 | /** returns the index of the day located at the matrix's widget (x,y) position. |
229 | * | 230 | * |
230 | * @param x horizontal coordinate | 231 | * @param x horizontal coordinate |
231 | * @param y vertical coordinate | 232 | * @param y vertical coordinate |
232 | */ | 233 | */ |
233 | int getDayIndexFrom(int x, int y); | 234 | int getDayIndexFrom(int x, int y); |
234 | 235 | ||
235 | /** calculates a "shaded" color from the supplied color object. | 236 | /** calculates a "shaded" color from the supplied color object. |
236 | * (Copied from Cornelius's kdpdatebutton.cpp) | 237 | * (Copied from Cornelius's kdpdatebutton.cpp) |
237 | * | 238 | * |
238 | * @param color source based on which a shaded color should be calculated. | 239 | * @param color source based on which a shaded color should be calculated. |
239 | */ | 240 | */ |
240 | QColor getShadedColor(QColor color); | 241 | QColor getShadedColor(QColor color); |
241 | 242 | ||
242 | /** number of days to be displayed. For now there is no support for any other number then 42. | 243 | /** number of days to be displayed. For now there is no support for any other number then 42. |
243 | so change it at your own risk :o) */ | 244 | so change it at your own risk :o) */ |
244 | static const int NUMDAYS; | 245 | static const int NUMDAYS; |
245 | 246 | ||
246 | /** calendar instance to be queried for holidays, events, ... */ | 247 | /** calendar instance to be queried for holidays, events, ... */ |
247 | Calendar *mCalendar; | 248 | Calendar *mCalendar; |
248 | 249 | ||
249 | /** starting date of the matrix */ | 250 | /** starting date of the matrix */ |
250 | QDate startdate; | 251 | QDate startdate; |
251 | 252 | ||
252 | /** array of day labels to optimeize drawing performance. */ | 253 | /** array of day labels to optimeize drawing performance. */ |
253 | QString *daylbls; | 254 | QString *daylbls; |
254 | 255 | ||
255 | /** array of days displayed to reduce memory consumption by | 256 | /** array of days displayed to reduce memory consumption by |
256 | subsequently calling QDate::addDays(). */ | 257 | subsequently calling QDate::addDays(). */ |
257 | QDate *days; | 258 | QDate *days; |
258 | 259 | ||