GUI: Handle 'Enter Key' Event in results tree.

This commit is contained in:
Akhilesh Nema 2015-12-03 19:33:36 +01:00 committed by Daniel Marjamäki
parent 46d6623182
commit 20b695d62d
2 changed files with 9 additions and 0 deletions

View File

@ -66,6 +66,14 @@ ResultsTree::~ResultsTree()
{
}
void ResultsTree::keyPressEvent(QKeyEvent *event)
{
if (event->key() == Qt::Key_Enter || event->key() == Qt::Key_Return) {
QuickStartApplication(this->currentIndex());
}
QTreeView::keyPressEvent(event);
}
void ResultsTree::Initialize(QSettings *settings, ApplicationList *list)
{
mSettings = settings;

View File

@ -162,6 +162,7 @@ public:
*/
ShowTypes mShowSeverities;
virtual void keyPressEvent(QKeyEvent *event);
signals:
/**