summaryrefslogtreecommitdiffstats
path: root/tests/auto/qtextlayout/tst_qtextlayout.cpp
diff options
context:
space:
mode:
authorGeir Vattekar <geir.vattekar@nokia.com>2010-06-17 09:16:04 (GMT)
committerGeir Vattekar <geir.vattekar@nokia.com>2010-06-17 09:16:04 (GMT)
commit0a852d51c6d74712cda8c7d08da4f5c90d99d5cd (patch)
tree2ac9f365b8a25738d3756d051d7ccccea27bff7e /tests/auto/qtextlayout/tst_qtextlayout.cpp
parentcf74e83d8b79c4840c073bb7dc387045b1210df8 (diff)
parente4fbdd4fde9b8d2acc13268b44caa57405c3db1a (diff)
downloadQt-0a852d51c6d74712cda8c7d08da4f5c90d99d5cd.zip
Qt-0a852d51c6d74712cda8c7d08da4f5c90d99d5cd.tar.gz
Qt-0a852d51c6d74712cda8c7d08da4f5c90d99d5cd.tar.bz2
Merge branch '4.7' of git@scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.7
Diffstat (limited to 'tests/auto/qtextlayout/tst_qtextlayout.cpp')
-rw-r--r--tests/auto/qtextlayout/tst_qtextlayout.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/auto/qtextlayout/tst_qtextlayout.cpp b/tests/auto/qtextlayout/tst_qtextlayout.cpp
index 1a5f493..a631f3d 100644
--- a/tests/auto/qtextlayout/tst_qtextlayout.cpp
+++ b/tests/auto/qtextlayout/tst_qtextlayout.cpp
@@ -980,9 +980,7 @@ void tst_QTextLayout::testCenteredTab()
// test if centering the tab works. We expect the center of 'Bar.' to be at the tab point.
QTextOption option = layout.textOption();
QList<QTextOption::Tab> tabs;
- QTextOption::Tab tab;
- tab.type = QTextOption::CenterTab;
- tab.position = 150;
+ QTextOption::Tab tab(150, QTextOption::CenterTab);
tabs.append(tab);
option.setTabs(tabs);
layout.setTextOption(option);
@@ -1002,10 +1000,7 @@ void tst_QTextLayout::testDelimiterTab()
// try the different delimiter characters to see if the alignment works there.
QTextOption option = layout.textOption();
QList<QTextOption::Tab> tabs;
- QTextOption::Tab tab;
- tab.type = QTextOption::DelimiterTab;
- tab.delimiter = QChar('.');
- tab.position = 100;
+ QTextOption::Tab tab(100, QTextOption::DelimiterTab, QChar('.'));
tabs.append(tab);
option.setTabs(tabs);
layout.setTextOption(option);