Changeset 356169a3d3 in tspsg for src/globals.h


Ignore:
Timestamp:
Jul 11, 2012, 6:46:48 PM (12 years ago)
Author:
Oleksii Serdiuk
Branches:
appveyor, imgbot, master, readme
Children:
ff8d0488a0
Parents:
c90b437dd8
Message:

Updated code to become compilable with Qt 5.

Compiling with Qt 4 is still possible and it will be the main platform
for TSPSG releases until first Qt 5 release is made.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/globals.h

    rc90b437dd8 r356169a3d3  
    3131// INCLUDES
    3232#include <QtCore>
    33 #if QT_VERSION < 0x040500
     33#if QT_VERSION < QT_VERSION_CHECK(4,5,0)
    3434#   error You are using Qt version < 4.5 but minimum required version is 4.5.0. Compilation aborted.
    3535#endif
     
    4646#   include <QtSvg>
    4747#endif // NOSVG
     48#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
     49#   include <QtConcurrent>
     50#   include <QtPrintSupport>
     51#endif
    4852
    4953#ifndef HANDHELD
     
    160164#endif
    161165
    162 #if QT_VERSION >= 0x040600
     166#if QT_VERSION >= QT_VERSION_CHECK(4,6,0)
    163167#   define GET_ICON(x) QIcon::fromTheme(x, QIcon(":/images/icons/"ICON_SIZE"/"x"."ICON_FORMAT))
    164168#else
Note: See TracChangeset for help on using the changeset viewer.