diff options
author | Aleix Pol <aleixpol@kde.org> | 2017-06-08 19:58:27 +0200 |
---|---|---|
committer | Aleix Pol <aleixpol@kde.org> | 2017-06-08 20:00:04 +0200 |
commit | 7c0878889bf65a5f2eb3c31c05818addef2bdcf8 (patch) | |
tree | 9b0587c29f69528e28cc40e2aafc0b0f982bfde3 | |
parent | c070e4527728ae9dd90131c98164587a88a93ca4 (diff) | |
download | kube-7c0878889bf65a5f2eb3c31c05818addef2bdcf8.tar.gz kube-7c0878889bf65a5f2eb3c31c05818addef2bdcf8.zip |
Fix build with newer versions of Qt
Otherwise we get the following error message:
framework/src/libframeworkplugin.so: undefined reference to `bool QTest::qCompare<int, unsigned int>(int const&, unsigned int const&, char const*, char const*, char const*, int)'
clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation)
CCMAIL: Christian Mollekopf <chrigi_1@fastmail.fm>
-rw-r--r-- | framework/src/domain/modeltest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/src/domain/modeltest.cpp b/framework/src/domain/modeltest.cpp index 2bd3d27f..4f85bf43 100644 --- a/framework/src/domain/modeltest.cpp +++ b/framework/src/domain/modeltest.cpp | |||
@@ -442,7 +442,7 @@ void ModelTest::data() | |||
442 | QVariant textAlignmentVariant = model->data ( model->index ( 0, 0 ), Qt::TextAlignmentRole ); | 442 | QVariant textAlignmentVariant = model->data ( model->index ( 0, 0 ), Qt::TextAlignmentRole ); |
443 | if ( textAlignmentVariant.isValid() ) { | 443 | if ( textAlignmentVariant.isValid() ) { |
444 | int alignment = textAlignmentVariant.toInt(); | 444 | int alignment = textAlignmentVariant.toInt(); |
445 | QCOMPARE( alignment, ( alignment & ( Qt::AlignHorizontal_Mask | Qt::AlignVertical_Mask ) ) ); | 445 | QCOMPARE( alignment, int( alignment & ( Qt::AlignHorizontal_Mask | Qt::AlignVertical_Mask ) ) ); |
446 | } | 446 | } |
447 | 447 | ||
448 | // General Purpose roles that should return a QColor | 448 | // General Purpose roles that should return a QColor |