forked from Shazib/CometFTP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
27 lines (22 loc) · 652 Bytes
/
main.cpp
File metadata and controls
27 lines (22 loc) · 652 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
#include "MainWindow.h"
#include <QApplication>
#include "NcFramelessHelper.h"
#include <QDebug>
int main(int argc, char *argv[])
{
qDebug() << "Started";
QApplication a(argc, argv);
MainWindow w;
NcFramelessHelper fh;
fh.activateOn(&w);
QCoreApplication::setOrganizationName("BCU");
QCoreApplication::setApplicationName("CometFTP");
QCoreApplication::setApplicationVersion("0.0.1");
QFile cssFile(":/Main.css");
cssFile.open(QFile::ReadOnly);
QString cssString = QLatin1String(cssFile.readAll());
a.setStyleSheet(cssString);
qDebug() << "Activated Helper";
w.show();
return a.exec();
}