summaryrefslogtreecommitdiffabout
path: root/korganizer/kodaymatrix.h
Unidiff
Diffstat (limited to 'korganizer/kodaymatrix.h') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kodaymatrix.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/korganizer/kodaymatrix.h b/korganizer/kodaymatrix.h
index 2a1959c..38a7f92 100644
--- a/korganizer/kodaymatrix.h
+++ b/korganizer/kodaymatrix.h
@@ -221,24 +221,26 @@ protected:
221 void dragMoveEvent(QDragMoveEvent *); 221 void dragMoveEvent(QDragMoveEvent *);
222 222
223 void dragLeaveEvent(QDragLeaveEvent *); 223 void dragLeaveEvent(QDragLeaveEvent *);
224 224
225 void dropEvent(QDropEvent *); 225 void dropEvent(QDropEvent *);
226 226
227 void resizeEvent(QResizeEvent *); 227 void resizeEvent(QResizeEvent *);
228 228
229private: 229private:
230 KODaymatrixWhatsThis* mKODaymatrixWhatsThis; 230 KODaymatrixWhatsThis* mKODaymatrixWhatsThis;
231 bool mouseDown; 231 bool mouseDown;
232 QBitArray bDays; 232 QBitArray bDays;
233 QBitArray hDays;
234 QBitArray eDays;
233 QPixmap myPix; 235 QPixmap myPix;
234 QTimer* mUpdateTimer; 236 QTimer* mUpdateTimer;
235 QTimer* mRepaintTimer; 237 QTimer* mRepaintTimer;
236 bool mDayChanged; 238 bool mDayChanged;
237 bool mPendingUpdateBeforeRepaint; 239 bool mPendingUpdateBeforeRepaint;
238 240
239 /** returns the index of the day located at the matrix's widget (x,y) position. 241 /** returns the index of the day located at the matrix's widget (x,y) position.
240 * 242 *
241 * @param x horizontal coordinate 243 * @param x horizontal coordinate
242 * @param y vertical coordinate 244 * @param y vertical coordinate
243 */ 245 */
244 int getDayIndexFrom(int x, int y); 246 int getDayIndexFrom(int x, int y);
@@ -261,25 +263,25 @@ private:
261 QDate startdate; 263 QDate startdate;
262 264
263 /** array of day labels to optimeize drawing performance. */ 265 /** array of day labels to optimeize drawing performance. */
264 QString *daylbls; 266 QString *daylbls;
265 267
266 /** array of days displayed to reduce memory consumption by 268 /** array of days displayed to reduce memory consumption by
267 subsequently calling QDate::addDays(). */ 269 subsequently calling QDate::addDays(). */
268 QDate *days; 270 QDate *days;
269 271
270 /** array of storing the number of events on a given day. 272 /** array of storing the number of events on a given day.
271 * used for drawing a bold font if there is at least one event on that day. 273 * used for drawing a bold font if there is at least one event on that day.
272 */ 274 */
273 int *events; 275 //int *events;
274 276
275 /** stores holiday names of the days shown in the matrix. */ 277 /** stores holiday names of the days shown in the matrix. */
276 QMap<int,QString> mHolidays; 278 QMap<int,QString> mHolidays;
277 279
278 /** indey of today or -1 if today is not visible in the matrix. */ 280 /** indey of today or -1 if today is not visible in the matrix. */
279 int today; 281 int today;
280 282
281 /** index of day where dragged selection was initiated. 283 /** index of day where dragged selection was initiated.
282 used to detect "negative" timely selections */ 284 used to detect "negative" timely selections */
283 int mSelInit; 285 int mSelInit;
284 286
285 /** if mSelStart has this value it indicates that there is no 287 /** if mSelStart has this value it indicates that there is no