Editor: Fix searching in blockselections

BaseTextFind::findOne relies on calling inFindScope via
QMetaObject::invokeMethod.

broken by a4e23025f0

Fixes: QTCREATORBUG-25006
Change-Id: Iac061b1ecf2bbc3063494a324ad554e5cf749b15
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
David Schulz
2020-12-15 09:45:10 +01:00
parent ec0135f517
commit b309bdc69d

View File

@@ -609,8 +609,8 @@ protected:
virtual void slotCursorPositionChanged(); // Used in VcsBase
virtual void slotCodeStyleSettingsChanged(const QVariant &); // Used in CppEditor
bool inFindScope(const QTextCursor &cursor);
bool inFindScope(int selectionStart, int selectionEnd);
Q_INVOKABLE bool inFindScope(const QTextCursor &cursor);
Q_INVOKABLE bool inFindScope(int selectionStart, int selectionEnd);
private:
Internal::TextEditorWidgetPrivate *d;