diff options
author | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2009-11-18 16:29:17 (GMT) |
---|---|---|
committer | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2009-11-18 16:32:12 (GMT) |
commit | 6afb136b0462a5049c497831203a35173f64b9ae (patch) | |
tree | 66162a0490b9b9f7624fd4b4bc7cfcf66b30a720 | |
parent | 93a88077ebbf2b5b52608a840f0e71377b0d8c67 (diff) | |
download | Qt-6afb136b0462a5049c497831203a35173f64b9ae.zip Qt-6afb136b0462a5049c497831203a35173f64b9ae.tar.gz Qt-6afb136b0462a5049c497831203a35173f64b9ae.tar.bz2 |
Fixed tst_QTableView::changeHeaderData auto-test on Mac
Reviewed-by: Olivier
-rw-r--r-- | tests/auto/qtableview/tst_qtableview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qtableview/tst_qtableview.cpp b/tests/auto/qtableview/tst_qtableview.cpp index b61d2ad..46c3fb6 100644 --- a/tests/auto/qtableview/tst_qtableview.cpp +++ b/tests/auto/qtableview/tst_qtableview.cpp @@ -3906,7 +3906,7 @@ void tst_QTableView::changeHeaderData() QTest::qWaitForWindowShown(&view); QString text = "long long long text"; - const int textWidth = view.fontMetrics().width(text); + const int textWidth = view.verticalHeader()->fontMetrics().width(text); QVERIFY(view.verticalHeader()->width() < textWidth); model.setHeaderData(2, Qt::Vertical, text); |