Changeset 167 in tspsg-svn for trunk


Ignore:
Timestamp:
Apr 15, 2011, 4:56:13 PM (14 years ago)
Author:
laleppa
Message:

Qt < 4.6 doesn't have QVariant::toReal() member. Provided a quick (and rather dirty) hack to address this issue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/globals.h

    r162 r167  
    164164#else
    165165#   define GET_ICON(x) QIcon(":/images/icons/"ICON_SIZE"/"x"."ICON_FORMAT)
     166// No QVariant::toReal() member in Qt < 4.6
     167// A quick hack to maintain compatibility with Qt 4.5.x
     168#   define toReal toDouble
    166169#endif
    167170
Note: See TracChangeset for help on using the changeset viewer.