From 8a74d2041e24a17e70e1a00d0cc3794250a13fed Mon Sep 17 00:00:00 2001 From: Dominik Holland Date: Fri, 23 Jul 2010 09:01:27 +0200 Subject: 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. --- tests/auto/qplaintextedit/tst_qplaintextedit.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/auto/qplaintextedit/tst_qplaintextedit.cpp b/tests/auto/qplaintextedit/tst_qplaintextedit.cpp index a6dd8be..99d11cc 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); -- cgit v0.12