summaryrefslogtreecommitdiff
path: root/client/widgets/widget.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgets/widget.h')
-rw-r--r--client/widgets/widget.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/client/widgets/widget.h b/client/widgets/widget.h
index f2bf278..1af20af 100644
--- a/client/widgets/widget.h
+++ b/client/widgets/widget.h
@@ -33,6 +33,8 @@
#include <QObject>
#include <QVector>
#include <QFrame>
+#include <QAction>
+#include "shortcuttooltip.h"
#include "lua.h"
@@ -130,6 +132,8 @@ public:
virtual void setValues();
+ bool eventFilter(QObject *obj, QEvent *event);
+
signals:
void wasChanged();
@@ -143,9 +147,12 @@ public slots:
void childWasChanged();
void runEventOnChange(bool deep = false);
void runEventOnInit(bool deep = false);
+ virtual void shortcutActivated();
protected:
- QWidget *widget;
+ void setWidget(QWidget *widget);
+ QWidget *getWidget();
+
bool hideChildren;
// Implement in subclasses to be able to block commits.
@@ -180,7 +187,14 @@ protected:
bool hasOnInitEvent;
QString onInitEventScript;
+ QAction *shortcut_action;
+
QFrame *replwidget;
+
+private:
+ QWidget *widget;
+ bool important;
+ ShortcutTooltip *shortcut_label;
};
/***