From b309bdc69d4d12a55474f178d1d7d08462c4e9b3 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Tue, 15 Dec 2020 09:45:10 +0100 Subject: [PATCH] Editor: Fix searching in blockselections BaseTextFind::findOne relies on calling inFindScope via QMetaObject::invokeMethod. broken by a4e23025f0ae34ca3f96474b28aefd51a668b8ad Fixes: QTCREATORBUG-25006 Change-Id: Iac061b1ecf2bbc3063494a324ad554e5cf749b15 Reviewed-by: Eike Ziller --- src/plugins/texteditor/texteditor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/texteditor/texteditor.h b/src/plugins/texteditor/texteditor.h index 6e693e36978..16dee4f2f68 100644 --- a/src/plugins/texteditor/texteditor.h +++ b/src/plugins/texteditor/texteditor.h @@ -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;