comparison qt/QGlobal.d @ 194:ba7abb5c9e03

move the generated data from qt.QGlobal to qt.QDefines.
author SokoL_SD
date Mon, 13 Jul 2009 10:39:41 +0000
parents a212c97edcd2
children 27497bbe62a1
comparison
equal deleted inserted replaced
193:11d75aba2693 194:ba7abb5c9e03
1 module qt.QGlobal; 1 module qt.QGlobal;
2 2
3 public import qt.qtd.Str; 3 public import qt.qtd.Str;
4 public import qt.QDefines;
4 5
5 version (Tango) 6 version (Tango)
6 { 7 {
7 import tango.io.Stdout; 8 import tango.io.Stdout;
8 void writeln(string s) 9 void writeln(string s)
46 47
47 string tr(string arg) { 48 string tr(string arg) {
48 return arg; 49 return arg;
49 } 50 }
50 51
51 // TODO(katrina) get this from the C++ side
52 const char[] QT_VERSION_STR = "4.5.0";
53 /*
54 QT_VERSION is (major << 16) + (minor << 8) + patch.
55 //TODO(katrina) get this from the C++ side
56 */
57 const int QT_VERSION = 0x040403;
58 /* 52 /*
59 can be used like #if (QT_VERSION >= QT_VERSION_CHECK(4, 4, 0)) 53 can be used like #if (QT_VERSION >= QT_VERSION_CHECK(4, 4, 0))
60 */ 54 */
61 bool QT_VERSION_CHECK( ushort major, ushort minor, ushort patch ) 55 bool QT_VERSION_CHECK( ushort major, ushort minor, ushort patch )
62 { 56 {