forked from qt-creator/qt-creator
Valgrind: Open help for heob
Change-Id: I9cc7dfc2553f445784d3bb86378e2db28f70902c Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -67,6 +67,7 @@
|
|||||||
#include <coreplugin/actionmanager/actionmanager.h>
|
#include <coreplugin/actionmanager/actionmanager.h>
|
||||||
#include <coreplugin/actionmanager/command.h>
|
#include <coreplugin/actionmanager/command.h>
|
||||||
#include <coreplugin/editormanager/editormanager.h>
|
#include <coreplugin/editormanager/editormanager.h>
|
||||||
|
#include <coreplugin/helpmanager.h>
|
||||||
#include <coreplugin/icore.h>
|
#include <coreplugin/icore.h>
|
||||||
#include <coreplugin/id.h>
|
#include <coreplugin/id.h>
|
||||||
#include <coreplugin/modemanager.h>
|
#include <coreplugin/modemanager.h>
|
||||||
@@ -482,6 +483,8 @@ public:
|
|||||||
bool attach() const;
|
bool attach() const;
|
||||||
QString path() const;
|
QString path() const;
|
||||||
|
|
||||||
|
void keyPressEvent(QKeyEvent *e);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void updateEnabled();
|
void updateEnabled();
|
||||||
void saveOptions();
|
void saveOptions();
|
||||||
@@ -1379,6 +1382,15 @@ QString HeobDialog::path() const
|
|||||||
return m_pathChooser->path();
|
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()
|
void HeobDialog::updateEnabled()
|
||||||
{
|
{
|
||||||
bool enableHeob = m_handleExceptionCombo->currentIndex() < 2;
|
bool enableHeob = m_handleExceptionCombo->currentIndex() < 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user