-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
33 lines (23 loc) · 734 Bytes
/
main.cpp
File metadata and controls
33 lines (23 loc) · 734 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
#include "note_creator.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication note_app(argc, argv);
note_creator Window;
QFile f(":qdarkstyle/style.qss");
// set stylesheet
if (!f.exists()) {
printf("Unable to set stylesheet, file not found\n");
}
else {
f.open(QFile::ReadOnly | QFile::Text);
QTextStream ts(&f);
qApp->setStyleSheet(ts.readAll());
}
Window.setWindowIcon(QIcon(":/qss_icons/rc/feather-alt-solid-yellow.svg"));
// hide window title bar
//Window.setWindowFlags(Qt::Window | Qt::FramelessWindowHint);
Window.readSettings();
Window.show();
return note_app.exec();
}