-
Notifications
You must be signed in to change notification settings - Fork 2
/
MainWindow.h
47 lines (35 loc) · 829 Bytes
/
MainWindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//
// Created by Arne Gockeln on 28.07.17.
//
#ifndef INC_2FA_MAINWINDOW_H
#define INC_2FA_MAINWINDOW_H
#include <QWidget>
#include "AddressWidget.h"
#include <QAction>
#include <QMenu>
#include <QSystemTrayIcon>
#include <QCloseEvent>
class MainWindow: public QWidget {
Q_OBJECT
private:
AddressWidget *m_addressWidget;
QMenu *m_trayIconMenu;
QAction *m_aboutAction;
QAction *m_restoreAction;
QAction *m_quitAction;
QSystemTrayIcon *m_trayIcon;
void createActions();
void createTrayIcon();
void setVisible(bool t_visible) override;
void addActionList();
protected:
void closeEvent(QCloseEvent *t_event) override;
private slots:
void showAboutDialog();
void copyToClipboard(QAction *t_action);
public slots:
void onUpdateModel();
public:
MainWindow();
};
#endif //INC_2FA_MAINWINDOW_H