author | dwmw2 <dwmw2> | 2002-04-02 14:02:44 (UTC) |
---|---|---|
committer | dwmw2 <dwmw2> | 2002-04-02 14:02:44 (UTC) |
commit | 108f15e0121aca57d5828cf0f22285989d920bd7 (patch) (unidiff) | |
tree | 253c9bca48bb864b02428c72d4baf2d085579d9c | |
parent | 623ce8225b7f75755146601e2c8d7f1e7e9a65d0 (diff) | |
download | opie-108f15e0121aca57d5828cf0f22285989d920bd7.zip opie-108f15e0121aca57d5828cf0f22285989d920bd7.tar.gz opie-108f15e0121aca57d5828cf0f22285989d920bd7.tar.bz2 |
Remove #include <stdiostream.h>. It wasn't used, and isn't present in my gcc3
-rw-r--r-- | core/pim/datebook/dateentryimpl.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/core/pim/datebook/dateentryimpl.cpp b/core/pim/datebook/dateentryimpl.cpp index e563db0..403378e 100644 --- a/core/pim/datebook/dateentryimpl.cpp +++ b/core/pim/datebook/dateentryimpl.cpp | |||
@@ -1,95 +1,93 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Qtopia Environment. | 4 | ** This file is part of Qtopia Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | 20 | ||
21 | #include "dateentryimpl.h" | 21 | #include "dateentryimpl.h" |
22 | #include "repeatentry.h" | 22 | #include "repeatentry.h" |
23 | 23 | ||
24 | #include <qpe/qpeapplication.h> | 24 | #include <qpe/qpeapplication.h> |
25 | #include <qpe/categoryselect.h> | 25 | #include <qpe/categoryselect.h> |
26 | #include <qpe/datebookmonth.h> | 26 | #include <qpe/datebookmonth.h> |
27 | #include <qpe/global.h> | 27 | #include <qpe/global.h> |
28 | #include <qpe/timeconversion.h> | 28 | #include <qpe/timeconversion.h> |
29 | #include <qpe/timestring.h> | 29 | #include <qpe/timestring.h> |
30 | #include <qpe/tzselect.h> | 30 | #include <qpe/tzselect.h> |
31 | 31 | ||
32 | #include <qcheckbox.h> | 32 | #include <qcheckbox.h> |
33 | #include <qcombobox.h> | 33 | #include <qcombobox.h> |
34 | #include <qlayout.h> | 34 | #include <qlayout.h> |
35 | #include <qlineedit.h> | 35 | #include <qlineedit.h> |
36 | #include <qmultilineedit.h> | 36 | #include <qmultilineedit.h> |
37 | #include <qpopupmenu.h> | 37 | #include <qpopupmenu.h> |
38 | #include <qscrollview.h> | 38 | #include <qscrollview.h> |
39 | #include <qspinbox.h> | 39 | #include <qspinbox.h> |
40 | #include <qtoolbutton.h> | 40 | #include <qtoolbutton.h> |
41 | 41 | ||
42 | #include "timepicker.h" | 42 | #include "timepicker.h" |
43 | 43 | ||
44 | #include <stdlib.h> | 44 | #include <stdlib.h> |
45 | 45 | ||
46 | #include <stdiostream.h> | ||
47 | |||
48 | /* | 46 | /* |
49 | * Constructs a DateEntry which is a child of 'parent', with the | 47 | * Constructs a DateEntry which is a child of 'parent', with the |
50 | * name 'name' and widget flags set to 'f' | 48 | * name 'name' and widget flags set to 'f' |
51 | * | 49 | * |
52 | * The dialog will by default be modeless, unless you set 'modal' to | 50 | * The dialog will by default be modeless, unless you set 'modal' to |
53 | * TRUE to construct a modal dialog. | 51 | * TRUE to construct a modal dialog. |
54 | */ | 52 | */ |
55 | 53 | ||
56 | DateEntry::DateEntry( bool startOnMonday, const QDateTime &start, | 54 | DateEntry::DateEntry( bool startOnMonday, const QDateTime &start, |
57 | const QDateTime &end, bool whichClock, QWidget* parent, | 55 | const QDateTime &end, bool whichClock, QWidget* parent, |
58 | const char* name ) | 56 | const char* name ) |
59 | : DateEntryBase( parent, name ), | 57 | : DateEntryBase( parent, name ), |
60 | ampm( whichClock ), | 58 | ampm( whichClock ), |
61 | startWeekOnMonday( startOnMonday ) | 59 | startWeekOnMonday( startOnMonday ) |
62 | { | 60 | { |
63 | init(); | 61 | init(); |
64 | setDates(start,end); | 62 | setDates(start,end); |
65 | setFocusProxy(comboDescription); | 63 | setFocusProxy(comboDescription); |
66 | } | 64 | } |
67 | 65 | ||
68 | static void addOrPick( QComboBox* combo, const QString& t ) | 66 | static void addOrPick( QComboBox* combo, const QString& t ) |
69 | { | 67 | { |
70 | // Pick an item if one excists | 68 | // Pick an item if one excists |
71 | for (int i=0; i<combo->count(); i++) { | 69 | for (int i=0; i<combo->count(); i++) { |
72 | if ( combo->text(i) == t ) { | 70 | if ( combo->text(i) == t ) { |
73 | combo->setCurrentItem(i); | 71 | combo->setCurrentItem(i); |
74 | return; | 72 | return; |
75 | } | 73 | } |
76 | } | 74 | } |
77 | 75 | ||
78 | // Else add one | 76 | // Else add one |
79 | combo->insertItem(t); | 77 | combo->insertItem(t); |
80 | combo->setCurrentItem(combo->count()-1); | 78 | combo->setCurrentItem(combo->count()-1); |
81 | } | 79 | } |
82 | 80 | ||
83 | DateEntry::DateEntry( bool startOnMonday, const Event &event, bool whichClock, | 81 | DateEntry::DateEntry( bool startOnMonday, const Event &event, bool whichClock, |
84 | QWidget* parent, const char* name ) | 82 | QWidget* parent, const char* name ) |
85 | : DateEntryBase( parent, name ), | 83 | : DateEntryBase( parent, name ), |
86 | ampm( whichClock ), | 84 | ampm( whichClock ), |
87 | startWeekOnMonday( startOnMonday ) | 85 | startWeekOnMonday( startOnMonday ) |
88 | { | 86 | { |
89 | init(); | 87 | init(); |
90 | setDates(event.start(),event.end()); | 88 | setDates(event.start(),event.end()); |
91 | comboCategory->setCategories( event.categories(), "Calendar", tr("Calendar") ); | 89 | comboCategory->setCategories( event.categories(), "Calendar", tr("Calendar") ); |
92 | if(!event.description().isEmpty()) | 90 | if(!event.description().isEmpty()) |
93 | addOrPick( comboDescription, event.description() ); | 91 | addOrPick( comboDescription, event.description() ); |
94 | if(!event.location().isEmpty()) | 92 | if(!event.location().isEmpty()) |
95 | addOrPick( comboLocation, event.location() ); | 93 | addOrPick( comboLocation, event.location() ); |