You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
475 B
25 lines
475 B
#include <QMainWindow>
|
|
#include <QSettings>
|
|
|
|
class QTimer;
|
|
class QLabel;
|
|
|
|
class MainWindow : public QMainWindow {
|
|
Q_OBJECT
|
|
public:
|
|
MainWindow(QWidget *parent = 0);
|
|
~MainWindow();
|
|
signals:
|
|
void addKeyClicked();
|
|
private slots:
|
|
void onAddKeyClicked();
|
|
void rebuildLayout();
|
|
private:
|
|
QWidget *m_centralWidget;
|
|
QSettings m_settings;
|
|
QLabel *m_statusLabel;
|
|
QTimer *m_timer;
|
|
|
|
void saveNewKey(QString name, QString key);
|
|
QString generateCode(QString key);
|
|
};
|
|
|