diff options
author | Hannes Domani <ssbssa@yahoo.de> | 2018-02-02 17:38:11 +0100 |
---|---|---|
committer | Hannes Domani <ssbssa@yahoo.de> | 2018-02-07 11:07:20 +0000 |
commit | ac8f2b830202400e7f1d7676fe6282282cbe5f66 (patch) | |
tree | 4f5a744b932540ccdbdb759da90a4c49e366d7c9 | |
parent | 2ce37a86ef89f1a7f50a7e214bf4a7bc6a29b731 (diff) |
Valgrind: Open help for heob
Change-Id: I9cc7dfc2553f445784d3bb86378e2db28f70902c
Reviewed-by: hjk <hjk@qt.io>
-rw-r--r-- | src/plugins/valgrind/memchecktool.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/plugins/valgrind/memchecktool.cpp b/src/plugins/valgrind/memchecktool.cpp index 3b6b372fe2..42608d311f 100644 --- a/src/plugins/valgrind/memchecktool.cpp +++ b/src/plugins/valgrind/memchecktool.cpp @@ -67,6 +67,7 @@ #include <coreplugin/actionmanager/actionmanager.h> #include <coreplugin/actionmanager/command.h> #include <coreplugin/editormanager/editormanager.h> +#include <coreplugin/helpmanager.h> #include <coreplugin/icore.h> #include <coreplugin/id.h> #include <coreplugin/modemanager.h> @@ -482,6 +483,8 @@ public: bool attach() const; QString path() const; + void keyPressEvent(QKeyEvent *e); + private: void updateEnabled(); void saveOptions(); @@ -1379,6 +1382,15 @@ QString HeobDialog::path() const return m_pathChooser->path(); } +void HeobDialog::keyPressEvent(QKeyEvent *e) +{ + if (e->key() != Qt::Key_F1) + return QDialog::keyPressEvent(e); + + reject(); + Core::HelpManager::handleHelpRequest("qthelp://org.qt-project.qtcreator/doc/creator-heob.html"); +} + void HeobDialog::updateEnabled() { bool enableHeob = m_handleExceptionCombo->currentIndex() < 2; |