Skip to content

Commit d7b106f

Browse files
author
Sandro Santilli
committed
Only implement QVariant bug workaround when building against Qt < 4.7.1 [#4284]
1 parent 926b388 commit d7b106f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/src/core/testqgsexpression.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@
2121
#include <qgsfeature.h>
2222
#include <qgsgeometry.h>
2323

24-
// Workaround for Qt 4.6.2
24+
#if QT_VERSION < 0x40701
2525
// See http://hub.qgis.org/issues/4284
2626
Q_DECLARE_METATYPE(QVariant)
27+
#endif
2728

2829
class TestQgsExpression: public QObject
2930
{

0 commit comments

Comments
 (0)