-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.cpp
More file actions
28 lines (27 loc) · 679 Bytes
/
main.cpp
File metadata and controls
28 lines (27 loc) · 679 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
//#include "settings.h"
#include "mainprogram.h"
#include "sendingprogram.h"
#include "UserInterface/showusers.h"
#include <QApplication>
#include <QMessageBox>
#include <QString>
#include <QFile>
#include <QTextStream>
#include <iostream>
#include <string>
#include <algorithm>
int main(int argc, char *argv[]){
QApplication a(argc, argv);
a.setQuitOnLastWindowClosed(false);
QIcon mainIcon(":/images/icons/Style/SystemIcon.png");
a.setWindowIcon(mainIcon);
if (argc < 2){
MainProgram m;
m.start();
return a.exec();
}
else{
SendingProgram s(argv[1]);
return a.exec();
}
}