diff options
author | Eike Ziller <eike.ziller@qt.io> | 2017-05-29 12:50:20 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2017-06-13 12:42:13 +0000 |
commit | 247639d9c301cfd6bed6096260d047c2b82ea129 (patch) | |
tree | d360d5a887e837d663e6badb8d04748b5f34707b /src/plugins/coreplugin/locator/opendocumentsfilter.h | |
parent | 19a47fed29969484313d76c125915dedf19cb6e6 (diff) |
Remove 1-1 dependency between locator and locator input widget
Add possibility for filters to set a new search text when accepting
an entry.
Move placeholder text update from locator manager to widget.
Propagate filter update through signal-slot connection instead of directly.
LocatorManager::show is the only place left that directly references the locator widget.
Change-Id: Id61354d9f166c2af8c9d5528ad8998c7c6b8e1ab
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/coreplugin/locator/opendocumentsfilter.h')
-rw-r--r-- | src/plugins/coreplugin/locator/opendocumentsfilter.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/coreplugin/locator/opendocumentsfilter.h b/src/plugins/coreplugin/locator/opendocumentsfilter.h index 00622d1dbf..8d140c86d7 100644 --- a/src/plugins/coreplugin/locator/opendocumentsfilter.h +++ b/src/plugins/coreplugin/locator/opendocumentsfilter.h @@ -45,7 +45,8 @@ public: OpenDocumentsFilter(); QList<LocatorFilterEntry> matchesFor(QFutureInterface<LocatorFilterEntry> &future, const QString &entry) override; - void accept(LocatorFilterEntry selection) const override; + void accept(LocatorFilterEntry selection, + QString *newText, int *selectionStart, int *selectionLength) const override; void refresh(QFutureInterface<void> &future) override; public slots: |