-
Notifications
You must be signed in to change notification settings - Fork 5
/
main.cpp
52 lines (37 loc) · 1 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#include <QApplication>
#include <QMessageBox>
#include <QWindow>
#include "fsmainwindow.h"
#include "fstableview.h"
#include "dlmainwindow.h"
#include "clmainwindow.h"
#include "ctmainwindow.h"
#include "launcherwidget.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QCoreApplication::setOrganizationName("labsquare");
QCoreApplication::setOrganizationDomain("org.labsquare");
QCoreApplication::setApplicationName("Freebox Desktop");
QCoreApplication::setApplicationVersion("beta 0.1.1");
if (QCoreApplication::arguments().count() > 1)
{
QString path = QCoreApplication::arguments().value(1);
DLMainWindow downloadWindow ;
downloadWindow.addFile(path);
downloadWindow.show();
return a.exec();
}
else {
LauncherWidget w;
w.show();
return a.exec();
}
// CTMainWindow w;
// w.show();
return a.exec();
// DLMainWindow m;
// m.show();
// DLMainWindow f;
// f.show();
}