GUI: Handle 'Enter Key' Event in results tree.
This commit is contained in:
parent
46d6623182
commit
20b695d62d
|
@ -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)
|
void ResultsTree::Initialize(QSettings *settings, ApplicationList *list)
|
||||||
{
|
{
|
||||||
mSettings = settings;
|
mSettings = settings;
|
||||||
|
|
|
@ -162,6 +162,7 @@ public:
|
||||||
*/
|
*/
|
||||||
ShowTypes mShowSeverities;
|
ShowTypes mShowSeverities;
|
||||||
|
|
||||||
|
virtual void keyPressEvent(QKeyEvent *event);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue