2017-03-29 10:18:37 +00:00
|
|
|
#include "mainwindow.h"
|
|
|
|
#include "newfiledialog.h"
|
|
|
|
#include <QApplication>
|
2017-03-30 21:48:36 +00:00
|
|
|
#include <QTextCodec>
|
2017-03-29 10:18:37 +00:00
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
QApplication a(argc, argv);
|
|
|
|
a.setApplicationVersion(APP_VERSION);
|
|
|
|
|
2017-03-30 21:48:36 +00:00
|
|
|
// Set QString codec to UTF-8
|
|
|
|
QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
|
|
|
|
#if QT_VERSION < QT_VERSION_CHECK(5,0,0)
|
|
|
|
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
|
|
|
|
QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
|
|
|
|
#endif
|
|
|
|
|
2017-03-29 10:18:37 +00:00
|
|
|
NewFileDialog n;
|
|
|
|
n.show();
|
|
|
|
return a.exec();
|
|
|
|
}
|