tst_QFont: fix -Wsign-compare
Amends 17f8e2c441
.
Pick-to: 6.6
Change-Id: I896027866c11b5e135c39848cefcf45942f1cf99
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
This commit is contained in:
parent
9c63667d01
commit
defabd265e
@ -857,11 +857,11 @@ void tst_QFont::featureAccessors()
|
||||
QCOMPARE(font.featureTags().size(), 1);
|
||||
QCOMPARE(font.featureTags().first(), abcdTag);
|
||||
QCOMPARE(QFont::tagToString(font.featureTags().first()), QByteArray("abcd"));
|
||||
QCOMPARE(font.featureValue(abcdTag), 0xc0ffee);
|
||||
QCOMPARE(font.featureValue(bcdeTag), 0);
|
||||
QCOMPARE(font.featureValue(abcdTag), 0xc0ffeeU);
|
||||
QCOMPARE(font.featureValue(bcdeTag), 0U);
|
||||
font.setFeature(abcdTag, 0xf00d);
|
||||
QCOMPARE(font.featureTags().size(), 1);
|
||||
QCOMPARE(font.featureValue(abcdTag), 0xf00d);
|
||||
QCOMPARE(font.featureValue(abcdTag), 0xf00dU);
|
||||
font.setFeature("abcde", 0xcaca0);
|
||||
QVERIFY(!font.isFeatureSet(QFont::stringToTag("abcde")));
|
||||
QCOMPARE(font.featureTags().size(), 1);
|
||||
|
Loading…
Reference in New Issue
Block a user