From kde-commits Wed Sep 22 15:33:43 2010 From: David Faure Date: Wed, 22 Sep 2010 15:33:43 +0000 To: kde-commits Subject: KDE/kdelibs/kdeui/tests Message-Id: <20100922153343.EEDF8AC888 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=128516931014543 SVN commit 1178269 by dfaure: use qstring comparisons so that failures are easier to diagnostic M +2 -2 krichtextedittest.cpp --- trunk/KDE/kdelibs/kdeui/tests/krichtextedittest.cpp #1178268:1178269 @@ -108,7 +108,7 @@ QCOMPARE(edit.fontWeight(), static_cast(QFont::Bold)); QCOMPARE(edit.fontUnderline(), false); QTextCharFormat charFormat = cursor.charFormat(); - QCOMPARE(charFormat.underlineColor(), KColorScheme(QPalette::Active, KColorScheme::View).foreground().color()); + QCOMPARE(charFormat.underlineColor().name(), KColorScheme(QPalette::Active, KColorScheme::View).foreground().color().name()); QCOMPARE(charFormat.underlineStyle(), QTextCharFormat::NoUnderline); - QCOMPARE(charFormat.foreground(), QBrush(KColorScheme(QPalette::Active, KColorScheme::View).foreground().color())); + QCOMPARE(charFormat.foreground().color().name(), KColorScheme(QPalette::Active, KColorScheme::View).foreground().color().name()); }