-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.cpp
33 lines (28 loc) · 917 Bytes
/
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
/*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <mk219533 (a) students.mimuw.edu.pl> wrote this file. As long as you retain
* this notice you can do whatever you want with this stuff. If we meet some day,
* and you think this stuff is worth it, you can buy me a beer in return.
* ----------------------------------------------------------------------------
*
* main.cpp
*
* Created on: 2010-01-04
* Author: Marcel Kolodziejczyk
*/
#include <QApplication>
#include <QTextCodec>
#include "MainWindow.h"
int main(int argc, char *argv[])
{
Q_INIT_RESOURCE(application);
QApplication app(argc, argv);
QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
MainWindow mainWin;
mainWin.show();
for (int i = 1; i < argc; ++i) {
mainWin.addChild(argv[i]);
}
return app.exec();
}