From 7c0878889bf65a5f2eb3c31c05818addef2bdcf8 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Thu, 8 Jun 2017 19:58:27 +0200 Subject: 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 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 --- framework/src/domain/modeltest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/src/domain') 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() QVariant textAlignmentVariant = model->data ( model->index ( 0, 0 ), Qt::TextAlignmentRole ); if ( textAlignmentVariant.isValid() ) { int alignment = textAlignmentVariant.toInt(); - QCOMPARE( alignment, ( alignment & ( Qt::AlignHorizontal_Mask | Qt::AlignVertical_Mask ) ) ); + QCOMPARE( alignment, int( alignment & ( Qt::AlignHorizontal_Mask | Qt::AlignVertical_Mask ) ) ); } // General Purpose roles that should return a QColor -- cgit v1.2.3