Changeset 134 in tspsg-svn for trunk/src/main.cpp


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

    r132 r134  
    2323
    2424#include "mainwindow.h"
    25 #if QT_VERSION < 0x040500
    26         #ifdef _MSC_VER
    27                 #pragma message("WARNING: You are using Qt version < 4.5. Application will not support some non-critical features.")
    28         #elif (defined(__GNUC__) || defined(__MINGW32__))
    29                 #warning WARNING: You are using Qt version < 4.5. Application will not support some non-critical features.
     25#if QT_VERSION < 0x040600
     26        #ifdef Q_CC_MSVC
     27                #pragma message("WARNING: You are using Qt version < 4.6. Application will not support some non-critical features.")
     28        #elif defined(Q_CC_GNU)
     29                #warning WARNING: You are using Qt version < 4.6. Application will not support some non-critical features.
    3030        #else
    31                 #error You are using Qt version < 4.5. Application will not support some non-critical features. To continue, please, comment line 31 at main.cpp.
     31                #error You are using Qt version < 4.6. Application will not support some non-critical features. To continue, please, comment line 31 at main.cpp.
    3232        #endif
    3333#endif
Note: See TracChangeset for help on using the changeset viewer.