author | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
commit | a08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff) | |
tree | 8ee90d686081c52e7c69b5ce946e9b1a7d690001 /korganizer/kotimespanview.cpp | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.zip kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.gz kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.bz2 |
initial public commit of qt4 portp1
Diffstat (limited to 'korganizer/kotimespanview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/kotimespanview.cpp | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/korganizer/kotimespanview.cpp b/korganizer/kotimespanview.cpp index 3265a3a..a214720 100644 --- a/korganizer/kotimespanview.cpp +++ b/korganizer/kotimespanview.cpp | |||
@@ -1,5 +1,9 @@ | |||
1 | #include <qlayout.h> | 1 | #include <qlayout.h> |
2 | //Added by qt3to4: | ||
3 | #include <Q3VBoxLayout> | ||
4 | #include <Q3ValueList> | ||
5 | #include <Q3PtrList> | ||
2 | 6 | ||
3 | #include <kconfig.h> | 7 | #include <kconfig.h> |
4 | 8 | ||
5 | #include "timespanview.h" | 9 | #include "timespanview.h" |
@@ -10,9 +14,9 @@ | |||
10 | KOTimeSpanView::KOTimeSpanView(Calendar *calendar, QWidget *parent, | 14 | KOTimeSpanView::KOTimeSpanView(Calendar *calendar, QWidget *parent, |
11 | const char *name) : | 15 | const char *name) : |
12 | KOEventView( calendar, parent, name ) | 16 | KOEventView( calendar, parent, name ) |
13 | { | 17 | { |
14 | QBoxLayout *topLayout = new QVBoxLayout( this ); | 18 | Q3BoxLayout *topLayout = new Q3VBoxLayout( this ); |
15 | 19 | ||
16 | mTimeSpanView = new TimeSpanView( this ); | 20 | mTimeSpanView = new TimeSpanView( this ); |
17 | topLayout->addWidget( mTimeSpanView ); | 21 | topLayout->addWidget( mTimeSpanView ); |
18 | 22 | ||
@@ -33,9 +37,9 @@ void KOTimeSpanView::readSettings(KConfig *config) | |||
33 | // kdDebug() << "KOTimeSpanView::readSettings()" << endl; | 37 | // kdDebug() << "KOTimeSpanView::readSettings()" << endl; |
34 | 38 | ||
35 | config->setGroup("Views"); | 39 | config->setGroup("Views"); |
36 | 40 | ||
37 | QValueList<int> sizes = config->readIntListEntry("Separator TimeSpanView"); | 41 | Q3ValueList<int> sizes = config->readIntListEntry("Separator TimeSpanView"); |
38 | if (sizes.count() == 2) { | 42 | if (sizes.count() == 2) { |
39 | mTimeSpanView->setSplitterSizes(sizes); | 43 | mTimeSpanView->setSplitterSizes(sizes); |
40 | } | 44 | } |
41 | } | 45 | } |
@@ -45,9 +49,9 @@ void KOTimeSpanView::writeSettings(KConfig *config) | |||
45 | // kdDebug() << "KOTimeSpanView::writeSettings()" << endl; | 49 | // kdDebug() << "KOTimeSpanView::writeSettings()" << endl; |
46 | 50 | ||
47 | config->setGroup("Views"); | 51 | config->setGroup("Views"); |
48 | 52 | ||
49 | QValueList<int> list = mTimeSpanView->splitterSizes(); | 53 | Q3ValueList<int> list = mTimeSpanView->splitterSizes(); |
50 | config->writeEntry("Separator TimeSpanView",list); | 54 | config->writeEntry("Separator TimeSpanView",list); |
51 | } | 55 | } |
52 | 56 | ||
53 | int KOTimeSpanView::maxDatesHint() | 57 | int KOTimeSpanView::maxDatesHint() |
@@ -59,11 +63,11 @@ int KOTimeSpanView::currentDateCount() | |||
59 | { | 63 | { |
60 | return 0; | 64 | return 0; |
61 | } | 65 | } |
62 | 66 | ||
63 | QPtrList<Incidence> KOTimeSpanView::selectedIncidences() | 67 | Q3PtrList<Incidence> KOTimeSpanView::selectedIncidences() |
64 | { | 68 | { |
65 | QPtrList<Incidence> selected; | 69 | Q3PtrList<Incidence> selected; |
66 | 70 | ||
67 | return selected; | 71 | return selected; |
68 | } | 72 | } |
69 | 73 | ||
@@ -83,11 +87,11 @@ void KOTimeSpanView::showDates(const QDate &start, const QDate &end) | |||
83 | 87 | ||
84 | void KOTimeSpanView::insertItems(const QDate &start, const QDate &end) | 88 | void KOTimeSpanView::insertItems(const QDate &start, const QDate &end) |
85 | { | 89 | { |
86 | mTimeSpanView->clear(); | 90 | mTimeSpanView->clear(); |
87 | mTimeSpanView->setDateRange( start, end ); | 91 | mTimeSpanView->setDateRange( (QDateTime)start, (QDateTime)end ); |
88 | 92 | ||
89 | QPtrList<Event> events = calendar()->events( start, end ); | 93 | Q3PtrList<Event> events = calendar()->events( start, end ); |
90 | Event *event = events.first(); | 94 | Event *event = events.first(); |
91 | while( event ) { | 95 | while( event ) { |
92 | // kdDebug() << "KOTimeSpanView::showDates() add event: " << event->summary() | 96 | // kdDebug() << "KOTimeSpanView::showDates() add event: " << event->summary() |
93 | // << endl; | 97 | // << endl; |
@@ -99,9 +103,9 @@ void KOTimeSpanView::insertItems(const QDate &start, const QDate &end) | |||
99 | 103 | ||
100 | mTimeSpanView->updateView(); | 104 | mTimeSpanView->updateView(); |
101 | } | 105 | } |
102 | 106 | ||
103 | void KOTimeSpanView::showEvents(QPtrList<Event> eventList) | 107 | void KOTimeSpanView::showEvents(Q3PtrList<Event> eventList) |
104 | { | 108 | { |
105 | } | 109 | } |
106 | 110 | ||
107 | void KOTimeSpanView::changeEventDisplay(Event *, int) | 111 | void KOTimeSpanView::changeEventDisplay(Event *, int) |