-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmain.cpp
More file actions
24 lines (23 loc) · 681 Bytes
/
main.cpp
File metadata and controls
24 lines (23 loc) · 681 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
#include "mainwindow.h"
#include <QApplication>
#include <QSettings>
void setupSettings();
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
//Application name and organization.
QCoreApplication::setOrganizationName("Breath");
QCoreApplication::setOrganizationDomain("Breathsoft.tk");
QCoreApplication::setApplicationName("Breath Canvas");
setupSettings();
//Starting main window.
MainWindow w;
w.showMaximized();
return a.exec();
}
void setupSettings() {
QSettings settings;
settings.setValue("drawing/gridSize",10);
settings.setValue("drawing/hanleSize",15);
settings.setValue("drawing/gridEnabled",false);
}