summaryrefslogtreecommitdiff
path: root/library
authorzecke <zecke>2004-02-18 23:25:18 (UTC)
committer zecke <zecke>2004-02-18 23:25:18 (UTC)
commitab41e301eb7f06af0869844d197e38a7838f3f2d (patch) (unidiff)
tree65fb4cf5e4af1cb2c8d85ec46bc53096a97d110a /library
parent28b63b3270b8162fcea4449b53b75fa325d740ad (diff)
downloadopie-ab41e301eb7f06af0869844d197e38a7838f3f2d.zip
opie-ab41e301eb7f06af0869844d197e38a7838f3f2d.tar.gz
opie-ab41e301eb7f06af0869844d197e38a7838f3f2d.tar.bz2
Gross hack to allow compilation with Qt3 more easily
Qt got a DateFormat as well so we use a define to call our QPEDateFormat
Diffstat (limited to 'library') (more/less context) (show whitespace changes)
-rw-r--r--library/timestring.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/timestring.h b/library/timestring.h
index f8cb3e6..0335715 100644
--- a/library/timestring.h
+++ b/library/timestring.h
@@ -23,6 +23,10 @@
23#include <qdatetime.h> 23#include <qdatetime.h>
24#include <qstring.h> 24#include <qstring.h>
25 25
26#if (QT_VERSION-0 >= 0x030000)
27#define DateFormat QPEDateFormat
28#endif
29
26// return a string with the time based on whether or not you want 30// return a string with the time based on whether or not you want
27// you want it in 12 hour form. if ampm is true, then return 31// you want it in 12 hour form. if ampm is true, then return
28// it in 12 hour (am/pm) form otherwise return it in 24 hour form 32// it in 12 hour (am/pm) form otherwise return it in 24 hour form