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