aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2020-12-15 09:45:10 +0100
committerDavid Schulz <david.schulz@qt.io>2020-12-15 09:11:20 +0000
commitb309bdc69d4d12a55474f178d1d7d08462c4e9b3 (patch)
tree34274dd498fa5ecc3761cc1aded256a7c39525cd
parentec0135f517a05dfb67ea7b06ac6f2d8882230ca4 (diff)
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 <eike.ziller@qt.io>
-rw-r--r--src/plugins/texteditor/texteditor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/texteditor/texteditor.h b/src/plugins/texteditor/texteditor.h
index 6e693e3697..16dee4f2f6 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;