summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleix Pol <aleixpol@kde.org>2017-03-28 23:23:36 (GMT)
committerAleix Pol <aleixpol@kde.org>2017-03-28 23:23:36 (GMT)
commit6d9045fea894960b02232bb2ca0a5d63c475d80d (patch)
tree572514a2b9e06da42bab3cbcc6ef17d5979bd7e2
parent9a9987093a401bc7f01144635b6beb20bad79b97 (diff)
Fix build with Qt 5.9
-rw-r--r--lib/test/modeltest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test/modeltest.cpp b/lib/test/modeltest.cpp
index a5233c4..556121f 100644
--- a/lib/test/modeltest.cpp
+++ b/lib/test/modeltest.cpp
@@ -451,7 +451,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 ) ) );
}