summaryrefslogtreecommitdiffabout
path: root/korganizer/datenavigator.cpp
authorzautrix <zautrix>2005-02-07 21:52:19 (UTC)
committer zautrix <zautrix>2005-02-07 21:52:19 (UTC)
commitd7a005e6c1a27d1084f30b940d54291a8d660f0e (patch) (side-by-side diff)
treec6ce04abf039acde589431f104bbb066ba4917a1 /korganizer/datenavigator.cpp
parentedaad9a9d7ede1b4bc50b9e758eaf32a5fbb547e (diff)
downloadkdepimpi-d7a005e6c1a27d1084f30b940d54291a8d660f0e.zip
kdepimpi-d7a005e6c1a27d1084f30b940d54291a8d660f0e.tar.gz
kdepimpi-d7a005e6c1a27d1084f30b940d54291a8d660f0e.tar.bz2
fixes
Diffstat (limited to 'korganizer/datenavigator.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/datenavigator.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/korganizer/datenavigator.cpp b/korganizer/datenavigator.cpp
index d2824de..8b7c993 100644
--- a/korganizer/datenavigator.cpp
+++ b/korganizer/datenavigator.cpp
@@ -157,2 +157,10 @@ void DateNavigator::selectWeek( int num )
int year = mSelectedDates.first().year();
+ QDate d = QDate ( year, 1,1);
+ while ( d.dayOfWeek() != 4 )
+ d = d.addDays( 1 );
+ selectWeek( d.addDays ( (num-1) *7 ) );
+}
+void DateNavigator::selectWeekFromMonthView( int num )
+{
+ int year = mSelectedDates.first().year();
if ( mSelectedDates.first().dayOfYear() > 300 && num < 10 )