diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2011-05-23 16:49:06 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2011-05-23 16:49:06 +0200 |
commit | 6a3dce19957535d9b9b7311a487469ed7566ac25 (patch) | |
tree | 7a6dffcc9080e67fc30201590a700a5a3e261be3 /tests/auto/qtextpiecetable/tst_qtextpiecetable.cpp | |
parent | 37d76a679878d7c07f8a2cb17f7bda46f6582572 (diff) |
Tests: Compile.
Diffstat (limited to 'tests/auto/qtextpiecetable/tst_qtextpiecetable.cpp')
-rw-r--r-- | tests/auto/qtextpiecetable/tst_qtextpiecetable.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/qtextpiecetable/tst_qtextpiecetable.cpp b/tests/auto/qtextpiecetable/tst_qtextpiecetable.cpp index 12f17a890b..1fb5c301ed 100644 --- a/tests/auto/qtextpiecetable/tst_qtextpiecetable.cpp +++ b/tests/auto/qtextpiecetable/tst_qtextpiecetable.cpp @@ -42,9 +42,10 @@ #include <QtTest/QtTest> -#define private public +#define protected public #include <qtextdocument.h> +#undef protected #include <private/qtextdocument_p.h> #include <qabstracttextdocumentlayout.h> #include <qtextobject.h> @@ -124,7 +125,7 @@ tst_QTextPieceTable::tst_QTextPieceTable() void tst_QTextPieceTable::init() { doc = new QTextDocument(0); - table = doc->d_func(); + table = doc->docHandle(); blockFormatIndex = table->formatCollection()->indexForFormat(QTextBlockFormat()); charFormatIndex = table->formatCollection()->indexForFormat(QTextCharFormat()); } |