From 34975323367e4a903886cd317b34192f1271a1f2 Mon Sep 17 00:00:00 2001 From: erik Date: Mon, 23 Apr 2007 20:46:34 +0000 Subject: Fix for bug 1844. The display of 12hour (AM/PM) time was broken. It was because the views never bother to check. This fix incorporates the patch submitted by harlekin. Thanks! --- (limited to 'core/pim/datebook/modules/weeklst/datebookweeklstview.h') diff --git a/core/pim/datebook/modules/weeklst/datebookweeklstview.h b/core/pim/datebook/modules/weeklst/datebookweeklstview.h index 3d47842..900101d 100644 --- a/core/pim/datebook/modules/weeklst/datebookweeklstview.h +++ b/core/pim/datebook/modules/weeklst/datebookweeklstview.h @@ -15,7 +15,9 @@ class DateBookWeekLstView: public QWidget { Q_OBJECT public: - DateBookWeekLstView(QValueList &ev, const QDate &d, bool onM, QWidget* parent = 0, const char* name = 0, + DateBookWeekLstView(QValueList &ev, const QDate &d, + bool onM, bool showAmPm, QWidget* parent = 0, + const char* name = 0, WFlags fl = 0 ); ~DateBookWeekLstView(); @@ -30,14 +32,17 @@ signals: void showDate(int y, int m, int d); void addEvent(const QDateTime &start, const QDateTime &stop, const QString &str, const QString &location); + protected: bool bStartOnMonday; + bool ampm; QValueList childs; QVBoxLayout*m_MainLayout; protected slots: void keyPressEvent(QKeyEvent *); + void slotClockChanged( bool ap ); }; #endif -- cgit v0.9.0.2