From 1e0e2f57472538bd880967ebe061c8f39a7e270b Mon Sep 17 00:00:00 2001 From: umopapisdn Date: Tue, 13 May 2003 22:58:18 +0000 Subject: Bugfix: (Bug #0000902) Adding events in weekview shouldn't create them as events on the first day of the week but rather the last visited day. --- (limited to 'core/pim/datebook/datebookweek.h') diff --git a/core/pim/datebook/datebookweek.h b/core/pim/datebook/datebookweek.h index 8c5e06d..c273e30 100644 --- a/core/pim/datebook/datebookweek.h +++ b/core/pim/datebook/datebookweek.h @@ -124,7 +124,7 @@ protected slots: private slots: void showDay( int day ); - void dateChanged( int y, int w ); + void dateChanged( QDate &newdate ); void slotShowEvent( const EffectiveEvent & ); void slotHideEvent(); void slotYearChanged( int ); @@ -150,6 +150,7 @@ private: int year; int _week; int dow; + QDate bdate; DateBookWeekHeader *header; DateBookWeekView *view; DateBookDB *db; @@ -161,6 +162,5 @@ private: }; -bool calcWeek( const QDate &d, int &week, int &year, - bool startOnMonday = false ); +bool calcWeek( const QDate &d, int &week, int &year, bool startOnMonday = false ); #endif -- cgit v0.9.0.2