summaryrefslogtreecommitdiffabout
path: root/korganizer/datenavigator.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/datenavigator.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/datenavigator.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/korganizer/datenavigator.cpp b/korganizer/datenavigator.cpp
index 8b7c993..b0eac51 100644
--- a/korganizer/datenavigator.cpp
+++ b/korganizer/datenavigator.cpp
@@ -83,6 +83,12 @@ void DateNavigator::selectMonth()
QDate date =mSelectedDates.first();
selectMonthByDate( date );
}
+void DateNavigator::selectMonthFromMonthview()
+{
+
+ QDate date =mSelectedDates.first().addDays( 7 );
+ selectMonthByDate( date );
+}
DateList DateNavigator::selectedDates()
{
@@ -258,6 +264,15 @@ void DateNavigator::selectNextMonth()
selectWeekByDay( weekDay, firstSelected );
}
+void DateNavigator::selectPreviousWeek()
+{
+ selectDates( mSelectedDates.first().addDays( -7 ), datesCount() );
+}
+
+void DateNavigator::selectNextWeek()
+{
+ selectDates( mSelectedDates.first().addDays( 7 ), datesCount() );
+}
void DateNavigator::selectNextYear()
{