Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
Qt Creator 4.0.0-beta1
-
None
Description
This looks easy to fix since both plugins call exactly the same function.
basetextfind.cpp:395
d->m_findScopeStart = QTextCursor(document()->docHandle(), qMax(0, cursor.selectionStart()));
texteditoroverlay.cpp:95-96
selection.m_cursor_begin = QTextCursor(document->docHandle(), begin); selection.m_cursor_end = QTextCursor(document->docHandle(), end);
Please stop calling QTextDocument::docHandle and QTextCursor(QTextDocumentPrivate*, int). If you can't write the same functionality without those two functions, please create public equivalent versions of them that don't pass QTextDocumentPrivate pointers.
Attachments
Issue Links
- is duplicated by
-
QTBUG-50942 Qt creator crashes with Qt 5.6 beta
- Closed
- replaces
-
QTCREATORBUG-15671 Editors use private API
- Closed
For Gerrit Dashboard: QTCREATORBUG-15238 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
139410,3 | Adapt to QtGui changes that broke private API source compatibility | 3.6 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |
147966,2 | Editor: Avoid using private text document handle. | 3.6 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |