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/kofilterview.h | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.zip kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.gz kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.bz2 |
initial public commit of qt4 portp1
-rw-r--r-- | korganizer/kofilterview.h | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/korganizer/kofilterview.h b/korganizer/kofilterview.h index 0dd423a..f1bbab4 100644 --- a/korganizer/kofilterview.h +++ b/korganizer/kofilterview.h | |||
@@ -26,12 +26,18 @@ | |||
26 | #include <qstring.h> | 26 | #include <qstring.h> |
27 | #include <qcheckbox.h> | 27 | #include <qcheckbox.h> |
28 | #include <qapplication.h> | 28 | #include <qapplication.h> |
29 | #include <QDesktopWidget> | ||
29 | #include <qradiobutton.h> | 30 | #include <qradiobutton.h> |
30 | #include <qlayout.h> | 31 | #include <qlayout.h> |
31 | #include <qlabel.h> | 32 | #include <qlabel.h> |
32 | #include <qdialog.h> | 33 | #include <qdialog.h> |
33 | #include <qscrollview.h> | 34 | #include <q3scrollview.h> |
34 | #include <qpushbutton.h> | 35 | #include <qpushbutton.h> |
36 | //Added by qt3to4: | ||
37 | #include <Q3GridLayout> | ||
38 | #include <Q3PtrList> | ||
39 | #include <QKeyEvent> | ||
40 | #include <Q3VBoxLayout> | ||
35 | #include <kconfig.h> | 41 | #include <kconfig.h> |
36 | #include "kofilterview_base.h" | 42 | #include "kofilterview_base.h" |
37 | 43 | ||
@@ -42,7 +48,7 @@ | |||
42 | #include <kglobal.h> | 48 | #include <kglobal.h> |
43 | #include <kmessagebox.h> | 49 | #include <kmessagebox.h> |
44 | 50 | ||
45 | class QGridLayout; | 51 | class Q3GridLayout; |
46 | 52 | ||
47 | using namespace KCal; | 53 | using namespace KCal; |
48 | 54 | ||
@@ -54,7 +60,7 @@ class KONewCalPrefs : public QDialog | |||
54 | QDialog( parent, name, true ) | 60 | QDialog( parent, name, true ) |
55 | { | 61 | { |
56 | setCaption( i18n("Add new Calendar") ); | 62 | setCaption( i18n("Add new Calendar") ); |
57 | QVBoxLayout* lay = new QVBoxLayout( this ); | 63 | Q3VBoxLayout* lay = new Q3VBoxLayout( this ); |
58 | lay->setSpacing( 3 ); | 64 | lay->setSpacing( 3 ); |
59 | lay->setMargin( 3 ); | 65 | lay->setMargin( 3 ); |
60 | QLabel * lab = new QLabel( i18n("<b>Name of new calendar:</b>"), this ); | 66 | QLabel * lab = new QLabel( i18n("<b>Name of new calendar:</b>"), this ); |
@@ -110,7 +116,7 @@ class KOCalButton : public QPushButton | |||
110 | connect( this, SIGNAL( clicked() ), | 116 | connect( this, SIGNAL( clicked() ), |
111 | SLOT( bottonClicked() )); | 117 | SLOT( bottonClicked() )); |
112 | mNumber = -1; | 118 | mNumber = -1; |
113 | setFocusPolicy(NoFocus); | 119 | setFocusPolicy(Qt::NoFocus); |
114 | } | 120 | } |
115 | void setNum ( int num ) {mNumber = num; } | 121 | void setNum ( int num ) {mNumber = num; } |
116 | signals: | 122 | signals: |
@@ -135,7 +141,7 @@ class KOCalCheckButton : public QCheckBox | |||
135 | connect( this, SIGNAL( toggled ( bool ) ), | 141 | connect( this, SIGNAL( toggled ( bool ) ), |
136 | SLOT( bottonClicked( bool ) )); | 142 | SLOT( bottonClicked( bool ) )); |
137 | mNumber = -1; | 143 | mNumber = -1; |
138 | setFocusPolicy(NoFocus); | 144 | setFocusPolicy(Qt::NoFocus); |
139 | //setMaximumWidth( 10 ); | 145 | //setMaximumWidth( 10 ); |
140 | 146 | ||
141 | } | 147 | } |
@@ -163,7 +169,7 @@ class KOCalRadioButton : public QRadioButton | |||
163 | connect( this, SIGNAL( toggled ( bool ) ), | 169 | connect( this, SIGNAL( toggled ( bool ) ), |
164 | SLOT( bottonClicked( bool ) )); | 170 | SLOT( bottonClicked( bool ) )); |
165 | mNumber = -1; | 171 | mNumber = -1; |
166 | setFocusPolicy(NoFocus); | 172 | setFocusPolicy(Qt::NoFocus); |
167 | //setMaximumWidth( 10 ); | 173 | //setMaximumWidth( 10 ); |
168 | 174 | ||
169 | } | 175 | } |
@@ -188,7 +194,7 @@ class KOFilterView : public KOFilterView_base | |||
188 | { | 194 | { |
189 | Q_OBJECT | 195 | Q_OBJECT |
190 | public: | 196 | public: |
191 | KOFilterView(QPtrList<CalFilter> *filterList,QWidget* parent=0,const char* name=0, WFlags fl=0); | 197 | KOFilterView(Q3PtrList<CalFilter> *filterList,QWidget* parent=0,const char* name=0, Qt::WFlags fl=0); |
192 | ~KOFilterView(); | 198 | ~KOFilterView(); |
193 | 199 | ||
194 | void updateFilters(); | 200 | void updateFilters(); |
@@ -204,10 +210,10 @@ class KOFilterView : public KOFilterView_base | |||
204 | void editFilters(); | 210 | void editFilters(); |
205 | 211 | ||
206 | private: | 212 | private: |
207 | QPtrList<CalFilter> *mFilters; | 213 | Q3PtrList<CalFilter> *mFilters; |
208 | }; | 214 | }; |
209 | 215 | ||
210 | class KOCalEditView : public QScrollView | 216 | class KOCalEditView : public Q3ScrollView |
211 | { | 217 | { |
212 | Q_OBJECT | 218 | Q_OBJECT |
213 | public: | 219 | public: |
@@ -244,12 +250,12 @@ class KOCalEditView : public QScrollView | |||
244 | 250 | ||
245 | private: | 251 | private: |
246 | QWidget *mw; | 252 | QWidget *mw; |
247 | void toggleList ( QPtrList<KOCalCheckButton> , bool b = true ); | 253 | void toggleList ( Q3PtrList<KOCalCheckButton> , bool b = true ); |
248 | QPtrList<KOCalRadioButton> mStdandardB; | 254 | Q3PtrList<KOCalRadioButton> mStdandardB; |
249 | QPtrList<KOCalCheckButton> mEnabledB; | 255 | Q3PtrList<KOCalCheckButton> mEnabledB; |
250 | QPtrList<KOCalCheckButton> mAlarmB; | 256 | Q3PtrList<KOCalCheckButton> mAlarmB; |
251 | QPtrList<KOCalCheckButton> mROB; | 257 | Q3PtrList<KOCalCheckButton> mROB; |
252 | QGridLayout* mainLayout; | 258 | Q3GridLayout* mainLayout; |
253 | }; | 259 | }; |
254 | 260 | ||
255 | 261 | ||