mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
Use a common format for all include guards, make sure each header file has one and make sure it's named after the file name. And as a random extra in this commit: Make sure the gen_version.h file generated by cmake ends with a line break. Closes #59.
30 lines
506 B
C++
30 lines
506 B
C++
#ifndef APPLICATION_H
|
|
#define APPLICATION_H
|
|
|
|
#include <QApplication>
|
|
|
|
class MainWindow;
|
|
class QTranslator;
|
|
|
|
class Application : public QApplication
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit Application(int& argc, char** argv);
|
|
virtual ~Application();
|
|
|
|
bool dontShowMainWindow() { return m_dontShowMainWindow; }
|
|
|
|
protected:
|
|
bool event(QEvent* event);
|
|
|
|
private:
|
|
bool m_dontShowMainWindow;
|
|
MainWindow* m_mainWindow;
|
|
QTranslator* m_translatorQt;
|
|
QTranslator* m_translatorApp;
|
|
};
|
|
|
|
#endif
|