From ff7fd64d755b2cc63f9944b1a17a6a2e186da0b6 Mon Sep 17 00:00:00 2001 From: alwin Date: Sat, 19 Mar 2005 18:06:44 +0000 Subject: hopefull speedup the weeklistview. deleting the main widget 4 times when date changed isn't that usefull. After 1.2 OPIE this view should completly rewritten or removed. --- (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 2428f1f..3d47842 100644 --- a/core/pim/datebook/modules/weeklst/datebookweeklstview.h +++ b/core/pim/datebook/modules/weeklst/datebookweeklstview.h @@ -9,15 +9,18 @@ #include class QKeyEvent; +class QVBoxLayout; 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, QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); ~DateBookWeekLstView(); + + void setEvents(QValueList &ev, const QDate &d, bool onM); + signals: void editEvent(const Event &e); void duplicateEvent(const Event &e); @@ -27,8 +30,12 @@ signals: void showDate(int y, int m, int d); void addEvent(const QDateTime &start, const QDateTime &stop, const QString &str, const QString &location); -private: +protected: bool bStartOnMonday; + QValueList childs; + + QVBoxLayout*m_MainLayout; + protected slots: void keyPressEvent(QKeyEvent *); }; -- cgit v0.9.0.2