diff options
author | hjk <hjk@theqtcompany.com> | 2016-01-27 08:44:44 +0100 |
---|---|---|
committer | hjk <hjk@theqtcompany.com> | 2016-01-28 18:42:14 +0000 |
commit | 3f482fad3c136b1b2f485dce823985bfa0922a3e (patch) | |
tree | a87c4781bbc4d68ee7e3ef2556d44c88c157c1e9 /src/gui/text/qtextdocument_p.cpp | |
parent | 4c8cb329d458196105d73f08426c8f3b18d61ec7 (diff) | |
download | qtbase-3f482fad3c136b1b2f485dce823985bfa0922a3e.tar.gz |
Revert some changes to QTextCursor constructors
This partially reverts the source and binary incompatible parts of change
d921a9bd157b04242722ab4326c5f2ea8e88cbea that made public members in an
exported class private and changed signature in one case.
Task-number: QTBUG-50703
Change-Id: I2719f276256206347d3c27d80a16db34a4ea2888
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'src/gui/text/qtextdocument_p.cpp')
-rw-r--r-- | src/gui/text/qtextdocument_p.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qtextdocument_p.cpp b/src/gui/text/qtextdocument_p.cpp index e5dcfb2e55..587844c1dd 100644 --- a/src/gui/text/qtextdocument_p.cpp +++ b/src/gui/text/qtextdocument_p.cpp @@ -1704,7 +1704,7 @@ bool QTextDocumentPrivate::ensureMaximumBlockCount() beginEditBlock(); const int blocksToRemove = blocks.numNodes() - maximumBlockCount; - QTextCursor cursor(*this, 0); + QTextCursor cursor(this, 0); cursor.movePosition(QTextCursor::NextBlock, QTextCursor::KeepAnchor, blocksToRemove); unreachableCharacterCount += cursor.selectionEnd() - cursor.selectionStart(); |