fix compilation on old gcc
same as https://phabricator.kde.org/D5083, gcc 4.8.5 (opensuse leap) fails building modeltest with CMakeFiles/testHistoryModel.dir/modeltest.cpp.o: In function `ModelTest::data()': modeltest.cpp:(.text+0x5a57): undefined reference to `bool QTest::qCompare<int, unsigned int>(int const&, unsigned int const&, char const*, char const*, char const*, int)'
This commit is contained in:
parent
f4cbd046eb
commit
404f2675f8
1 changed files with 1 additions and 1 deletions
|
@ -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 ) ) );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue