summaryrefslogtreecommitdiffstats
path: root/application/KonamiCode.h
diff options
context:
space:
mode:
Diffstat (limited to 'application/KonamiCode.h')
-rw-r--r--application/KonamiCode.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/application/KonamiCode.h b/application/KonamiCode.h
new file mode 100644
index 00000000..ad17f8be
--- /dev/null
+++ b/application/KonamiCode.h
@@ -0,0 +1,17 @@
+#pragma once
+
+#include <QKeyEvent>
+
+class KonamiCode : public QObject
+{
+ Q_OBJECT
+public:
+ KonamiCode(QObject *parent = 0);
+ void input(QEvent *event);
+
+signals:
+ void triggered();
+
+private:
+ int m_progress = 0;
+};