From e2951a24bab680a233958a6faf5b94ce29eecf5d Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Wed, 29 Mar 2017 00:34:26 +0200 Subject: [PATCH] Fix build with Qt branch 5.9 Summary: kitemmodels/autotests/proxymodeltestsuite/modeltest.cpp:464: undefined reference to `bool QTest::qCompare(int const&, unsigned int const&, char const*, char const*, char const*, int)' Reviewers: #frameworks, kfunk Reviewed By: kfunk Tags: #frameworks Differential Revision: https://phabricator.kde.org/D5231 --- autotests/proxymodeltestsuite/modeltest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autotests/proxymodeltestsuite/modeltest.cpp b/autotests/proxymodeltestsuite/modeltest.cpp index e5a17c2..8ef63a1 100644 --- a/autotests/proxymodeltestsuite/modeltest.cpp +++ b/autotests/proxymodeltestsuite/modeltest.cpp @@ -460,7 +460,7 @@ void ModelTest::data() // Check that the alignment is one we know about QVariant textAlignmentVariant = model->data ( model->index ( 0, 0 ), Qt::TextAlignmentRole ); if ( textAlignmentVariant.isValid() ) { - int alignment = textAlignmentVariant.toInt(); + const auto alignment = textAlignmentVariant.toUInt(); QCOMPARE( alignment, ( alignment & ( Qt::AlignHorizontal_Mask | Qt::AlignVertical_Mask ) ) ); }