summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@nokia.com>2009-11-18 17:44:51 (GMT)
committerAlessandro Portale <alessandro.portale@nokia.com>2009-11-18 17:46:21 (GMT)
commit0f9c96ead0ae5d52827ae0f0b277178cd2103e46 (patch)
tree260f1e5f82259fb684c122558018302ac35635e2 /tests/auto
parent9a4995711746103286ea3fb9cc576e133fd29e4e (diff)
downloadQt-0f9c96ead0ae5d52827ae0f0b277178cd2103e46.zip
Qt-0f9c96ead0ae5d52827ae0f0b277178cd2103e46.tar.gz
Qt-0f9c96ead0ae5d52827ae0f0b277178cd2103e46.tar.bz2
Fix tst_QTextLayout::testTabDPIScale on Symbian hardware
Increased the sample positions of the tabs a bit in order to pass also un high DPI devices such as the XpressMusic 5800. The former positions were too narrow under high DPI, and overlapped by the text. Reviewed-By: Liang Qi
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/qtextlayout/tst_qtextlayout.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qtextlayout/tst_qtextlayout.cpp b/tests/auto/qtextlayout/tst_qtextlayout.cpp
index 7c3f4f2..1df26b8 100644
--- a/tests/auto/qtextlayout/tst_qtextlayout.cpp
+++ b/tests/auto/qtextlayout/tst_qtextlayout.cpp
@@ -1115,14 +1115,14 @@ void tst_QTextLayout::testTabDPIScale()
QTextOption option = layout.textOption();
QList<QTextOption::Tab> tabs;
QTextOption::Tab tab;
- tab.position = 200;
+ tab.position = 300;
tabs.append(tab);
- tab.position = 400;
+ tab.position = 600;
tab.type = QTextOption::RightTab;
tabs.append(tab);
- tab.position = 600;
+ tab.position = 800;
tab.type = QTextOption::CenterTab;
tabs.append(tab);
option.setTabs(tabs);