2009-03-01 08:38:21 +01:00
|
|
|
/*
|
|
|
|
* Cppcheck - A tool for static C/C++ code analysis
|
2010-04-13 21:23:17 +02:00
|
|
|
* Copyright (C) 2007-2010 Daniel Marjamäki and Cppcheck team.
|
2009-03-01 08:38:21 +01:00
|
|
|
*
|
|
|
|
* 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
|
2009-09-27 17:08:31 +02:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2009-03-01 08:38:21 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#include <QApplication>
|
2009-06-06 09:51:50 +02:00
|
|
|
#include <QTextCodec>
|
2009-07-02 10:32:29 +02:00
|
|
|
#include <QTranslator>
|
2010-07-11 00:04:53 +02:00
|
|
|
#include <QMetaType>
|
2009-03-01 08:38:21 +01:00
|
|
|
#include "mainwindow.h"
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
QApplication app(argc, argv);
|
2009-05-28 10:32:32 +02:00
|
|
|
app.setWindowIcon(QIcon(":icon.png"));
|
2009-05-25 15:00:42 +02:00
|
|
|
|
2010-07-11 00:04:53 +02:00
|
|
|
// Register this metatype that is used to transfer error info
|
2010-07-12 20:02:58 +02:00
|
|
|
qRegisterMetaType< QList<unsigned int> >("QList<unsigned int>");
|
2010-07-11 00:04:53 +02:00
|
|
|
|
2009-06-06 09:51:50 +02:00
|
|
|
// Set codecs so that UTF-8 strings in sources are handled correctly.
|
|
|
|
QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
|
|
|
|
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
|
|
|
|
|
2009-03-01 08:38:21 +01:00
|
|
|
MainWindow window;
|
|
|
|
window.show();
|
|
|
|
return app.exec();
|
|
|
|
}
|