mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-02-09 21:28:30 -06:00
Change some function parameters which are named like "dont..." to make a positive statement. This should hopefully avoid some confisions with double negation.
44 lines
911 B
C++
44 lines
911 B
C++
#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 showMainWindow() const { return m_showMainWindow; }
|
|
|
|
MainWindow* mainWindow() { return m_mainWindow; }
|
|
|
|
// DB4S version number as string
|
|
static QString versionString();
|
|
// Version of DB4S and dependencies as string
|
|
static QString versionInformation();
|
|
|
|
static void reloadSettings();
|
|
|
|
protected:
|
|
bool event(QEvent* event) override;
|
|
|
|
private:
|
|
bool m_showMainWindow;
|
|
MainWindow* m_mainWindow;
|
|
QTranslator* m_translatorQt;
|
|
QTranslator* m_translatorApp;
|
|
};
|
|
|
|
void addShortcutsTooltip(QAction* action, const QList<QKeySequence>& extraKeys = QList<QKeySequence>());
|
|
|
|
#endif
|