forked from sqlitebrowser/sqlitebrowser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApplication.h
More file actions
38 lines (26 loc) · 754 Bytes
/
Application.h
File metadata and controls
38 lines (26 loc) · 754 Bytes
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
#ifndef APPLICATION_H
#define APPLICATION_H
#include <QApplication>
#include <QKeySequence>
class QAction;
class QTranslator;
class MainWindow;
class Application : public QApplication
{
Q_OBJECT
public:
explicit Application(int& argc, char** argv);
~Application() override;
bool dontShowMainWindow() { return m_dontShowMainWindow; }
MainWindow* mainWindow() { return m_mainWindow; }
static QString versionString();
protected:
bool event(QEvent* event) override;
private:
bool m_dontShowMainWindow;
MainWindow* m_mainWindow;
QTranslator* m_translatorQt;
QTranslator* m_translatorApp;
};
void addShortcutsTooltip(QAction* action, const QList<QKeySequence>& extraKeys = QList<QKeySequence>());
#endif