-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
23 lines (20 loc) · 706 Bytes
/
main.cpp
File metadata and controls
23 lines (20 loc) · 706 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "fsGUI.h"
#include <QApplication>
int main(int argc, char *argv[])
{
qInstallMessageHandler(moduleMessageOutput);
setModuleName("FSGui");
QApplication a(argc, argv);
QString filename="GUIDebug.txt";
QFile file( filename );QTextStream stream( &file );
if ( file.open(QIODevice::WriteOnly|QIODevice::Truncate) )
{
stream << "Application created." << endl;
}
qDebug().noquote() << "FSGui/FSData Version Info:\n" << GlobalConfiguration::getVersionInfo(false); //print version info to debug log
FSGui w(a.arguments());
stream << "FSGUI object created." << endl;
w.show();
stream << "Show command executed." << endl;
return a.exec();
}