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 /microkde/kdatetbl.h | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-p1.zip kdepimpi-p1.tar.gz kdepimpi-p1.tar.bz2 |
initial public commit of qt4 portp1
-rw-r--r-- | microkde/kdatetbl.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/microkde/kdatetbl.h b/microkde/kdatetbl.h index 87808df..2d3d2cf 100644 --- a/microkde/kdatetbl.h +++ b/microkde/kdatetbl.h | |||
@@ -20,19 +20,25 @@ | |||
20 | #ifndef KDATETBL_H | 20 | #ifndef KDATETBL_H |
21 | #define KDATETBL_H | 21 | #define KDATETBL_H |
22 | 22 | ||
23 | #include <qvalidator.h> | 23 | #include <qvalidator.h> |
24 | #include <qgridview.h> | 24 | #include <q3gridview.h> |
25 | #include <qlineedit.h> | 25 | #include <qlineedit.h> |
26 | #include <qdatetime.h> | 26 | #include <qdatetime.h> |
27 | //Added by qt3to4: | ||
28 | #include <QResizeEvent> | ||
29 | #include <QMouseEvent> | ||
30 | #include <Q3Frame> | ||
31 | #include <QKeyEvent> | ||
32 | #include <QFocusEvent> | ||
27 | 33 | ||
28 | /** | 34 | /** |
29 | * A table containing month names. It is used to pick a month directly. | 35 | * A table containing month names. It is used to pick a month directly. |
30 | * @internal | 36 | * @internal |
31 | * @version $Id$ | 37 | * @version $Id$ |
32 | * @author Tim Gilman, Mirko Boehm | 38 | * @author Tim Gilman, Mirko Boehm |
33 | */ | 39 | */ |
34 | class KDateInternalMonthPicker : public QGridView | 40 | class KDateInternalMonthPicker : public Q3GridView |
35 | { | 41 | { |
36 | Q_OBJECT | 42 | Q_OBJECT |
37 | protected: | 43 | protected: |
38 | /** | 44 | /** |
@@ -126,9 +132,9 @@ private: | |||
126 | * Frame with popup menu behaviour. | 132 | * Frame with popup menu behaviour. |
127 | * @author Tim Gilman, Mirko Boehm | 133 | * @author Tim Gilman, Mirko Boehm |
128 | * @version $Id$ | 134 | * @version $Id$ |
129 | */ | 135 | */ |
130 | class KPopupFrame : public QFrame | 136 | class KPopupFrame : public Q3Frame |
131 | { | 137 | { |
132 | Q_OBJECT | 138 | Q_OBJECT |
133 | protected: | 139 | protected: |
134 | /** | 140 | /** |
@@ -181,9 +187,9 @@ public: | |||
181 | int exec(int x, int y); | 187 | int exec(int x, int y); |
182 | 188 | ||
183 | private: | 189 | private: |
184 | 190 | ||
185 | virtual bool close(bool alsoDelete) { return QFrame::close(alsoDelete); } | 191 | virtual bool close(bool alsoDelete) { return Q3Frame::close(alsoDelete); } |
186 | protected: | 192 | protected: |
187 | virtual void virtual_hook( int id, void* data ); | 193 | virtual void virtual_hook( int id, void* data ); |
188 | private: | 194 | private: |
189 | class KPopupFramePrivate; | 195 | class KPopupFramePrivate; |
@@ -214,18 +220,18 @@ public: | |||
214 | * @internal | 220 | * @internal |
215 | * @version $Id$ | 221 | * @version $Id$ |
216 | * @author Tim Gilman, Mirko Boehm | 222 | * @author Tim Gilman, Mirko Boehm |
217 | */ | 223 | */ |
218 | class KDateTable : public QGridView | 224 | class KDateTable : public Q3GridView |
219 | { | 225 | { |
220 | Q_OBJECT | 226 | Q_OBJECT |
221 | public: | 227 | public: |
222 | /** | 228 | /** |
223 | * The constructor. | 229 | * The constructor. |
224 | */ | 230 | */ |
225 | KDateTable(QWidget *parent=0, | 231 | KDateTable(QWidget *parent=0, |
226 | QDate date=QDate::currentDate(), | 232 | QDate date=QDate::currentDate(), |
227 | const char* name=0, WFlags f=0); | 233 | const char* name=0, Qt::WFlags f=0); |
228 | /** | 234 | /** |
229 | * Returns a recommended size for the widget. | 235 | * Returns a recommended size for the widget. |
230 | * To save some time, the size of the largest used cell content is | 236 | * To save some time, the size of the largest used cell content is |
231 | * calculated in each paintCell() call, since all calculations have | 237 | * calculated in each paintCell() call, since all calculations have |
@@ -306,9 +312,9 @@ private: | |||
306 | KDateTablePrivate *d; | 312 | KDateTablePrivate *d; |
307 | }; | 313 | }; |
308 | 314 | ||
309 | #endif // KDATETBL_H | 315 | #endif // KDATETBL_H |
310 | class KDateInternalWeekPicker : public QGridView | 316 | class KDateInternalWeekPicker : public Q3GridView |
311 | { | 317 | { |
312 | Q_OBJECT | 318 | Q_OBJECT |
313 | protected: | 319 | protected: |
314 | /** | 320 | /** |