mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4775 Summary : Improve event handling and add shorcut
This commit is contained in:
@@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user