Logo Search packages:      
Sourcecode: hexalate version File versions  Download package

main.cpp

/***********************************************************************
 *
 * Copyright (C) 2009 Graeme Gott <graeme@gottcode.org>
 *
 * 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 <http://www.gnu.org/licenses/>.
 *
 ***********************************************************************/

#include "window.h"

#include <QApplication>
#include <QLocale>
#include <QTranslator>

int main(int argc, char** argv) {
      QApplication app(argc, argv);
      app.setApplicationName("Hexalate");
      app.setApplicationVersion("1.0.1");
      app.setOrganizationDomain("gottcode.org");
      app.setOrganizationName("GottCode");

      QTranslator qt_translator;
      qt_translator.load("qt_" + QLocale::system().name());
      app.installTranslator(&qt_translator);

      QTranslator translator;
      translator.load("hexalate_" + QLocale::system().name());
      app.installTranslator(&translator);

      Window window;
      window.show();

      return app.exec();
}

Generated by  Doxygen 1.6.0   Back to index