Valgrind: Open help for heob

Change-Id: I9cc7dfc2553f445784d3bb86378e2db28f70902c
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Hannes Domani
2018-02-02 17:38:11 +01:00
parent 2ce37a86ef
commit ac8f2b8302

View File

@@ -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;