summaryrefslogtreecommitdiff
path: root/tests/auto/qplaintextedit
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@nokia.com>2010-07-23 09:01:27 +0200
committerHarald Fernengel <harald.fernengel@nokia.com>2010-11-02 15:25:39 +0100
commit8a74d2041e24a17e70e1a00d0cc3794250a13fed (patch)
tree43670981ee04f6f7dcc988b7e1e34b6cd82d00b3 /tests/auto/qplaintextedit
parent5034f1774413c78e1d99f4c5e18a6ff8acd8915f (diff)
downloadqt4-tools-8a74d2041e24a17e70e1a00d0cc3794250a13fed.tar.gz
Fixed QPlainTextEdit autotest to use the right size in the linewrap testcase.
The framewith has to be also added to the minimum with, otherwise the test will fail when the current style has a bigger border.
Diffstat (limited to 'tests/auto/qplaintextedit')
-rw-r--r--tests/auto/qplaintextedit/tst_qplaintextedit.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qplaintextedit/tst_qplaintextedit.cpp b/tests/auto/qplaintextedit/tst_qplaintextedit.cpp
index a6dd8be8ec..99d11ccd4a 100644
--- a/tests/auto/qplaintextedit/tst_qplaintextedit.cpp
+++ b/tests/auto/qplaintextedit/tst_qplaintextedit.cpp
@@ -880,6 +880,7 @@ void tst_QPlainTextEdit::lineWrapModes()
// We thus need to make it wide enough to show something visible.
int minimumWidth = 2 * ed->document()->documentMargin();
minimumWidth += ed->fontMetrics().width(QLatin1Char('a'));
+ minimumWidth += ed->frameWidth();
ed->resize(minimumWidth, 1000);
QCOMPARE(lineCount(), 26);
ed->setParent(0);