X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fmain.cpp;fp=src%2Fmain.cpp;h=bdea66a6525150fb87295382c24d8e4be2751ef0;hb=820183c689df1ac8836f05634f0055480a3acb84;hp=0000000000000000000000000000000000000000;hpb=f2bf362b48af28406e3a4cf36deed71e53e0cc03;p=push-it diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..bdea66a --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,42 @@ +/* + + Copyright (C) <2010> + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ +#include +#include +#include + +#include "mainwindow.h" + +int main(int argc, char *argv[]) +{ + QTextCodec *utfCodec = QTextCodec::codecForName("UTF-8"); //creating new utf-8 codec + QTextCodec::setCodecForTr(utfCodec); // setting the utf-8 codec for the tr() tags + QTextCodec::setCodecForLocale(utfCodec); + QTextCodec::setCodecForCStrings(utfCodec); + QApplication a(argc, argv); + MainWindow w; + + // qDebug(QTextCodec::codecForLocale()->name()); + +#if defined(Q_WS_S60) + w.showMaximized(); +#else + w.show(); +#endif + + return a.exec(); +}