#4775 Summary : Improve event handling and add shorcut

This commit is contained in:
Magne Sjaastad
2019-10-22 10:39:18 +02:00
parent 1671fe44b2
commit 28ef4166ea
13 changed files with 255 additions and 30 deletions

View File

@@ -21,7 +21,15 @@
#include <QObject>
#include <vector>
class QEvent;
class QKeyEvent;
namespace caf
{
class CmdFeature;
}
//--------------------------------------------------------------------------------------------------
class RiuTreeViewEventFilter : public QObject
@@ -30,6 +38,9 @@ class RiuTreeViewEventFilter : public QObject
public:
explicit RiuTreeViewEventFilter( QObject* parent );
static bool activateFeatureFromKeyEvent( QKeyEvent* keyEvent );
static bool activateFirstEnabledFeature( const std::vector<caf::CmdFeature*>& features );
protected:
bool eventFilter( QObject* obj, QEvent* event ) override;
};
};