From 94f943b3ece7a5b14f9377ec5b3c43b55e9ac1c6 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Mon, 24 Jul 2017 16:31:12 +0200 Subject: [PATCH] [Klipper ModelTest] Fix build Fails to build with undefined reference to bool QTest::qCompare(int const&, unsigned int const&, char const*, char const*, char const*, int)' error. This has been fixed in 2f22f0a935b69f2f2a866050be5b905f9df4e4b6 for 5.10 branch but not 5.8 Differential Revision: https://phabricator.kde.org/D6874 --- klipper/autotests/modeltest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klipper/autotests/modeltest.cpp b/klipper/autotests/modeltest.cpp index d42d95f2e..d9b70f972 100644 --- a/klipper/autotests/modeltest.cpp +++ b/klipper/autotests/modeltest.cpp @@ -453,7 +453,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(); + unsigned int alignment = textAlignmentVariant.toUInt(); QCOMPARE( alignment, ( alignment & ( Qt::AlignHorizontal_Mask | Qt::AlignVertical_Mask ) ) ); }