[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdeui/tests
From: Raphael Kubo da Costa <kubito () gmail ! com>
Date: 2010-10-22 13:02:49
Message-ID: 20101022130249.AEC9DAC897 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1188454 by rkcosta:
Commit dfaure's patch to kwordwraptest.
We're better off always setting the DPI to the same value, as the test didn't pass \
here before because I'm on 75 DPI.
M +9 -0 kwordwraptest.cpp
--- trunk/KDE/kdelibs/kdeui/tests/kwordwraptest.cpp #1188453:1188454
@@ -18,6 +18,7 @@
*/
#include <QFontMetrics>
+#include <QX11Info>
#include <qtest_kde.h>
#include <kdebug.h>
@@ -29,6 +30,14 @@
Q_OBJECT
private Q_SLOTS:
+ void initTestCase()
+ {
+#ifdef Q_WS_X11
+ QX11Info::setAppDpiX(0, 96);
+ QX11Info::setAppDpiY(0, 96);
+#endif
+ }
+
void oldTruncationTest()
{
QFont font( "helvetica", 12 ); // let's hope we all have the same...
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic