From 1c5e8792aa81fcb89c78ff64e85a13dd626db596 Mon Sep 17 00:00:00 2001 From: Kai Philipp Date: Thu, 25 May 2017 15:01:53 +0200 Subject: [PATCH] #330: AccidentallyCallBlocker now for working for FKey presses --- src/gui/qt/gametable/myactionbutton.cpp | 7 +++++++ src/gui/qt/gametable/myactionbutton.h | 3 +++ 2 files changed, 10 insertions(+) diff --git a/src/gui/qt/gametable/myactionbutton.cpp b/src/gui/qt/gametable/myactionbutton.cpp index 31b3cc78..f975f5e1 100644 --- a/src/gui/qt/gametable/myactionbutton.cpp +++ b/src/gui/qt/gametable/myactionbutton.cpp @@ -73,3 +73,10 @@ bool MyActionButton::event(QEvent *event) } return QWidget::event(event); } + +void MyActionButton::click() +{ + if (!eatMyEvents) { + QPushButton::click(); + } +} diff --git a/src/gui/qt/gametable/myactionbutton.h b/src/gui/qt/gametable/myactionbutton.h index f18ca078..659c665b 100644 --- a/src/gui/qt/gametable/myactionbutton.h +++ b/src/gui/qt/gametable/myactionbutton.h @@ -60,6 +60,9 @@ public: } bool event(QEvent *e); +public slots: + void click(); + private: QString fKeyText;