diff options
author | BogDan Vatra <bogdan@kde.org> | 2015-07-20 12:40:28 +0300 |
---|---|---|
committer | BogDan Vatra <bogdan@kde.org> | 2015-07-20 10:44:56 +0000 |
commit | cf4ee59cf0f557bcd4fd265d1e2a8cae0300246c (patch) | |
tree | e2a6ac5149f146e56eecf29be7782c1732c5917f /src/plugins/debugger/debuggerdialogs.h | |
parent | f51a403518c23933947bdd84de941ef19f0f1387 (diff) |
Make it easy to set a kit matcher.
Using a function to set a kit matcher is much easier that crating a new
class. It also enables an easy way to reuse classes that are using it.
E.g.
DeviceProcessesDialog processDialog;
processDialog.kitChooser()->setKitMatcher([](const Kit* kit) {
return kit->isValid() && other_checks_with(kit);
});
Change-Id: I4e2fc7c52038902412cec5331504230bb8160ceb
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Diffstat (limited to 'src/plugins/debugger/debuggerdialogs.h')
-rw-r--r-- | src/plugins/debugger/debuggerdialogs.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/plugins/debugger/debuggerdialogs.h b/src/plugins/debugger/debuggerdialogs.h index ac262c962a..2b5c982bd6 100644 --- a/src/plugins/debugger/debuggerdialogs.h +++ b/src/plugins/debugger/debuggerdialogs.h @@ -69,7 +69,6 @@ public: explicit DebuggerKitChooser(Mode mode = AnyDebugging, QWidget *parent = 0); protected: - bool kitMatches(const ProjectExplorer::Kit *k) const; QString kitToolTip(ProjectExplorer::Kit *k) const; private: |