summaryrefslogblamecommitdiff
path: root/main.cc
blob: a7aabce09153c177f9b6ef712323932c3cae02d3 (plain) (tree)

























                                                                  
#include <QApplication>
#include <QLibraryInfo>
#include <QTranslator>

#include "horizonwizard.hh"

int main(int argc, char *argv[])
{
        QApplication app(argc, argv);

        QString translatorFileName = QLatin1String("qt_");
        translatorFileName += QLocale::system().name();
        QTranslator *translator = new QTranslator(&app);
        if(translator->load(translatorFileName,
                            QLibraryInfo::location(
                                    QLibraryInfo::TranslationsPath
                            )))
        {
                app.installTranslator(translator);
        }

        HorizonWizard wizard;
        wizard.show();

        return app.exec();
}