From 6946f6ab0ee6eeafee0c8ff5d33fffc0826c7452 Mon Sep 17 00:00:00 2001 From: zautrix Date: Sat, 22 Jan 2005 10:18:16 +0000 Subject: some small fixes --- (limited to 'microkde') diff --git a/microkde/kdatetbl.cpp b/microkde/kdatetbl.cpp index 146291b..508ce31 100644 --- a/microkde/kdatetbl.cpp +++ b/microkde/kdatetbl.cpp @@ -344,6 +344,7 @@ KDateTable::contentsMousePressEvent(QMouseEvent *e) return; } pos=7*(row-1)+col+1; +#if 0 if(pos+dayoff<=firstday) { // this day is in the previous month KNotifyClient::beep(); @@ -354,8 +355,10 @@ KDateTable::contentsMousePressEvent(QMouseEvent *e) KNotifyClient::beep(); return; } +#endif temp=firstday+date.day()-dayoff-1; - setDate(QDate(date.year(), date.month(), pos-firstday+dayoff)); + QDate da = QDate(date.year(), date.month(),1); + setDate(da.addDays( pos-firstday+dayoff-1)); updateCell(temp/7+1, temp%7); // Update the previously selected cell updateCell(row, col); // Update the selected cell // assert(QDate(date.year(), date.month(), pos-firstday+dayoff).isValid()); -- cgit v0.9.0.2