Changeset fec08a47e5 in tspsg


Ignore:
Timestamp:
Apr 15, 2011, 4:56:13 PM (13 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
Children:
03df0acb95
Parents:
f6352492e7
git-author:
Oleksii Serdiuk <contacts@…> (04/15/11 16:56:13)
git-committer:
Oleksii Serdiuk <contacts@…> (06/29/12 19:45:59)
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
  • src/globals.h

    rf6352492e7 rfec08a47e5  
    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.