2018-03-15 08:27:45 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QKeyEvent>
|
|
|
|
|
|
|
|
class KonamiCode : public QObject
|
|
|
|
{
|
2018-07-15 13:51:05 +01:00
|
|
|
Q_OBJECT
|
2018-03-15 08:27:45 +00:00
|
|
|
public:
|
2018-07-15 13:51:05 +01:00
|
|
|
KonamiCode(QObject *parent = 0);
|
|
|
|
void input(QEvent *event);
|
2018-03-15 08:27:45 +00:00
|
|
|
|
|
|
|
signals:
|
2018-07-15 13:51:05 +01:00
|
|
|
void triggered();
|
2018-03-15 08:27:45 +00:00
|
|
|
|
|
|
|
private:
|
2018-07-15 13:51:05 +01:00
|
|
|
int m_progress = 0;
|
2018-03-15 08:27:45 +00:00
|
|
|
};
|