aboutsummaryrefslogtreecommitdiff
path: root/src/qt/guiutil.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qt/guiutil.h')
-rw-r--r--src/qt/guiutil.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/qt/guiutil.h b/src/qt/guiutil.h
index cd366b30a9..011827e134 100644
--- a/src/qt/guiutil.h
+++ b/src/qt/guiutil.h
@@ -10,6 +10,7 @@
#include <QEvent>
#include <QHeaderView>
+#include <QItemDelegate>
#include <QMessageBox>
#include <QObject>
#include <QProgressBar>
@@ -232,6 +233,18 @@ namespace GUIUtil
typedef ClickableProgressBar ProgressBar;
+ class ItemDelegate : public QItemDelegate
+ {
+ Q_OBJECT
+ public:
+ ItemDelegate(QObject* parent) : QItemDelegate(parent) {}
+
+ Q_SIGNALS:
+ void keyEscapePressed();
+
+ private:
+ bool eventFilter(QObject *object, QEvent *event);
+ };
} // namespace GUIUtil
#endif // BITCOIN_QT_GUIUTIL_H