author | zecke <zecke> | 2003-11-30 13:10:50 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-11-30 13:10:50 (UTC) |
commit | 667d6cc5ca0abb0f4b8b481ce053f92412babd87 (patch) (unidiff) | |
tree | 9bf50effbf3efbf7e5d1730323c54de1367b1d3d /core/pim/datebook/datebookdayallday.h | |
parent | 2006eba49ca3c75898d7073cca371041614b0e50 (diff) | |
download | opie-667d6cc5ca0abb0f4b8b481ce053f92412babd87.zip opie-667d6cc5ca0abb0f4b8b481ce053f92412babd87.tar.gz opie-667d6cc5ca0abb0f4b8b481ce053f92412babd87.tar.bz2 |
Limit the number of shown All Day Events to approxiametely three
Patch by Rajko Albrecht
Diffstat (limited to 'core/pim/datebook/datebookdayallday.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook/datebookdayallday.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/pim/datebook/datebookdayallday.h b/core/pim/datebook/datebookdayallday.h index c781785..f5867e5 100644 --- a/core/pim/datebook/datebookdayallday.h +++ b/core/pim/datebook/datebookdayallday.h | |||
@@ -1,43 +1,45 @@ | |||
1 | #ifndef DATEBOOKDAYALLDAYBASE_H | 1 | #ifndef DATEBOOKDAYALLDAYBASE_H |
2 | #define DATEBOOKDAYALLDAYBASE_H | 2 | #define DATEBOOKDAYALLDAYBASE_H |
3 | 3 | ||
4 | #include <qvariant.h> | 4 | #include <qvariant.h> |
5 | #include <qframe.h> | 5 | #include <qframe.h> |
6 | #include <qscrollview.h> | ||
6 | #include <qlabel.h> | 7 | #include <qlabel.h> |
7 | #include <qlist.h> | 8 | #include <qlist.h> |
8 | #include <qpe/event.h> | 9 | #include <qpe/event.h> |
9 | 10 | ||
10 | class QVBoxLayout; | 11 | class QVBoxLayout; |
11 | class QHBoxLayout; | 12 | class QHBoxLayout; |
12 | class QGridLayout; | 13 | class QGridLayout; |
13 | class DatebookAlldayDisp; | 14 | class DatebookAlldayDisp; |
14 | class DatebookEventDesc; | 15 | class DatebookEventDesc; |
15 | class DateBookDB; | 16 | class DateBookDB; |
16 | 17 | ||
17 | class DatebookdayAllday : public QWidget | 18 | class DatebookdayAllday : public QScrollView |
18 | { | 19 | { |
19 | Q_OBJECT | 20 | Q_OBJECT |
20 | 21 | ||
21 | public: | 22 | public: |
22 | DatebookdayAllday(DateBookDB* db, | 23 | DatebookdayAllday(DateBookDB* db, |
23 | QWidget* parent = 0, const char* name = 0, WFlags fl = 0); | 24 | QWidget* parent = 0, const char* name = 0, WFlags fl = 0); |
24 | ~DatebookdayAllday(); | 25 | ~DatebookdayAllday(); |
25 | DatebookAlldayDisp* addEvent(const EffectiveEvent&e); | 26 | DatebookAlldayDisp* addEvent(const EffectiveEvent&e); |
26 | const unsigned int items()const{return item_count;} | 27 | const unsigned int items()const{return item_count;} |
27 | 28 | ||
28 | public slots: | 29 | public slots: |
29 | void removeAllEvents(); | 30 | void removeAllEvents(); |
30 | 31 | ||
31 | protected: | 32 | protected: |
33 | QFrame * m_MainFrame; | ||
32 | QVBoxLayout* datebookdayalldayLayout; | 34 | QVBoxLayout* datebookdayalldayLayout; |
33 | DatebookEventDesc * lblDesc; | 35 | DatebookEventDesc * lblDesc; |
34 | unsigned int item_count; | 36 | unsigned int item_count; |
35 | QList<DatebookAlldayDisp> subWidgets; | 37 | QList<DatebookAlldayDisp> subWidgets; |
36 | DateBookDB *dateBook; | 38 | DateBookDB *dateBook; |
37 | }; | 39 | }; |
38 | 40 | ||
39 | class DatebookAlldayDisp : public QLabel | 41 | class DatebookAlldayDisp : public QLabel |
40 | { | 42 | { |
41 | Q_OBJECT | 43 | Q_OBJECT |
42 | 44 | ||
43 | public: | 45 | public: |