Skip to content

Commit 7489fa5

Browse files
committed
[#25] font handling seems to be different on Qt5 and Qt6 on Linux
1 parent 4903cb7 commit 7489fa5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/library/test_find.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void FindTest::test_find_phrase_data()
7171
QTest::addColumn<QString>( "find_text" );
7272
QTest::addColumn<int>( "matches" );
7373
QTest::addColumn<QList<QRect>>( "bounding_boxes" );
74-
#ifdef Q_OS_LINUX
74+
#if defined( Q_OS_LINUX ) && QT_VERSION < QT_VERSION_CHECK( 6, 0, 0 )
7575
QList<QRect> boxes = { { 276, 909, 161, 15 } };
7676
#else
7777
QList<QRect> boxes = { { 276, 866, 161, 14 } };
@@ -129,7 +129,7 @@ void FindTest::test_find_phrase_multi_element_data()
129129
QTest::addColumn<int>( "matches" );
130130
QTest::addColumn<QList<QRect>>( "bounding_boxes" );
131131
// these boxes are currently valid, but are wrong. See issues in qlitehtml project
132-
#ifdef Q_OS_LINUX
132+
#if defined( Q_OS_LINUX ) && QT_VERSION < QT_VERSION_CHECK( 6, 0, 0 )
133133
QList<QRect> boxes = { { 8, 1974, 143, 42 } };
134134
#else
135135
QList<QRect> boxes = { { 8, 1880, 143, 40 } };

0 commit comments

Comments
 (0)