forked from ragnar-lodbrok/meow-sql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
34 lines (23 loc) · 809 Bytes
/
main.cpp
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
#include <QApplication>
#include "app/app.h"
#include "ui/main_window/main_window.h"
#ifdef Q_OS_WIN
#include <Windows.h> // SetProcessDPIAware()
#endif // Q_OS_WIN
int main(int argc, char *argv[])
{
#ifdef Q_OS_WIN
// fix scaling issues on win (TODO: rm when upgrade from Qt 5.6 ?)
::SetProcessDPIAware();
#endif // Q_OS_WIN
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // before app!
QApplication a(argc, argv);
a.addLibraryPath(QCoreApplication::applicationDirPath() + "/imageformats");
QCoreApplication::setOrganizationName("ragnar-lodbrok"); // TODO: change to MeowSQL
QCoreApplication::setApplicationName("MeowSQL");
meow::App app;
meow::ui::main_window::Window w;
w.show();
w.showSessionManagerDialog();
return a.exec();
}