Changeset 134 in tspsg-svn for trunk/src/globals.h


Ignore:
Timestamp:
Sep 6, 2010, 10:23:38 PM (14 years ago)
Author:
laleppa
Message:
  • The minimum required version of Qt is now 4.5.0.
  • Updated source code to be compatible with the minimum required version of Qt.
  • Updated documentation to reflect these changes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/globals.h

    r129 r134  
    3131// INCLUDES
    3232#include <QtCore>
     33#if QT_VERSION < 0x040500
     34        #error You are using Qt version < 4.5 but minimum required version is 4.5.0. Compilation aborted.
     35#endif
     36#ifdef QT_NO_SVG
     37        #define NOSVG
     38#endif
    3339#include <QtGui>
    34 #if !defined(NOSVG) && (QT_VERSION >= 0x040500)
     40#if !defined(NOSVG)
    3541        #include <QtSvg>
    36 #endif // NOSVG && QT_VERSION >= 0x040500
     42#endif // NOSVG
    3743
    3844#if defined(Q_OS_WINCE_WM) || defined(Q_OS_SYMBIAN)
     
    119125#endif // Q_OS_WIN32
    120126
     127#if QT_VERSION >= 0x040600
     128        #define GET_ICON(x) QIcon::fromTheme(x, QIcon(":/images/icons/"x".png"))
     129#else
     130        #define GET_ICON(x) QIcon(":/images/icons/"x".png")
     131#endif
     132
    121133// Sanity checks
    122134// Check that default number of cities is sane (<= MAX_NUM_CITIES)
Note: See TracChangeset for help on using the changeset viewer.