Changeset 356169a3d3 in tspsg for src/main.cpp


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/main.cpp

    rc90b437dd8 r356169a3d3  
    2323
    2424#include "mainwindow.h"
    25 #if QT_VERSION < 0x040600
     25#if QT_VERSION < QT_VERSION_CHECK(4,6,0)
    2626#   ifdef Q_CC_MSVC
    2727#       pragma message("WARNING: You are using Qt version < 4.6. Application will not support some non-critical features.")
     
    4949    app.setOverrideCursor(QCursor(Qt::WaitCursor));
    5050    QTextCodec::setCodecForLocale(QTextCodec::codecForName("utf8"));
     51#if QT_VERSION < QT_VERSION_CHECK(5,0,0)
    5152    QTextCodec::setCodecForCStrings(QTextCodec::codecForName("utf8"));
    5253    QTextCodec::setCodecForTr(QTextCodec::codecForName("utf8"));
     54#endif
    5355    app.setOrganizationName("Oleksii Serdiuk");
    5456    app.setOrganizationDomain("oleksii.name");
Note: See TracChangeset for help on using the changeset viewer.