33 #if QT_VERSION < QT_VERSION_CHECK(4,5,0)
34 # error You are using Qt version < 4.5 but minimum required version is 4.5.0. Compilation aborted.
36 #if defined(Q_OS_WINCE_WM) || defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR) || defined(Q_OS_BLACKBERRY)
39 # define QT_NO_STATUSTIP
41 #if defined(QT_NO_SVG) && !defined(NOSVG)
50 #define MAX_NUM_CITIES 50
51 #define MAX_RAND_VALUE 1000
60 # define PATH_L10N "l10n"
67 # define PATH_DOCS "help"
71 #define TSPT quint32(0x54535054)
72 #define TSPT_VERSION quint8(1)
74 #define TSPT_META_VERSION quint8(1)
76 #define TSPT_META_SIZE 2
78 #define ZKT quint16(0x5A4B)
80 #define ZKT_VERSION quint8(1)
87 #define CM_IN_INCH 2.54
120 #ifndef DOXYGEN_EXCLUDE
122 #if defined(HANDHELD) && !defined(Q_OS_BLACKBERRY)
123 # define ICON_SIZE "48x48"
124 # define ICON_FORMAT "png"
126 # define ICON_SIZE "128x128"
127 # define ICON_FORMAT "png"
130 #if QT_VERSION >= QT_VERSION_CHECK(4,6,0)
131 # define GET_ICON(x) QIcon::fromTheme(x, QIcon(":/images/icons/" ICON_SIZE "/" x "." ICON_FORMAT))
133 # define GET_ICON(x) QIcon(":/images/icons/" ICON_SIZE "/" x "." ICON_FORMAT)
136 # define toReal toDouble
141 #if DEF_NUM_CITIES > MAX_NUM_CITIES
142 # undef DEF_NUM_CITIES
143 # define DEF_NUM_CITIES MAX_NUM_CITIES
146 #if DEF_RAND_MAX > MAX_RAND_VALUE
148 # define DEF_RAND_MAX MAX_RAND_VALUE
151 #if DEF_RAND_MIN > DEF_RAND_MAX
153 # define DEF_RAND_MIN DEF_RAND_MAX
156 #endif // DOXYGEN_EXCLUDE
QSettings * initSettings(QObject *parent)
Creates QSettings instance with TSPSG-specific options.
Definition: globals.cpp:44
bool hasUpdater()
Checks whether the updater app is installed/available.
Definition: globals.cpp:35
void toggleStyle(QWidget *widget, bool enable)
Enables or disables a mask for the widget.
Definition: globals.cpp:66