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