X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fgui%2Fmain.cpp;fp=src%2Fgui%2Fmain.cpp;h=fdb12454fc9f504917fa84255a0b758d03d33ba2;hb=8d5a300af1292568264137af8a7a32027ffb705a;hp=649f4a7d9c2bc92dd173cae1d0c80eb8154cf7c9;hpb=03ad60621cc4818f8f29eada6605064770906983;p=jenirok diff --git a/src/gui/main.cpp b/src/gui/main.cpp index 649f4a7..fdb1245 100644 --- a/src/gui/main.cpp +++ b/src/gui/main.cpp @@ -1,50 +1,50 @@ -/* - * This file is part of Jenirok. - * - * Jenirok 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. - * - * Jenirok 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 Jenirok. If not, see . - * - */ - -#include -#include -#include -#include -#include "mainwindow.h" -#include "searchdialog.h" -#include "resultwindow.h" -#include "detailwindow.h" -#include "eniro.h" - -int main(int argc, char *argv[]) -{ - QApplication app(argc, argv); - - QTranslator translator; - translator.load(":/translations/" + QLocale::system().name()); - app.installTranslator(&translator); - - MainWindow window; - ResultWindow results(&window); - DetailWindow details(&results); - - window.show(); - - QObject::connect(&window, SIGNAL(search(SearchDialog::SearchDetails&)), - &results, SLOT(search(SearchDialog::SearchDetails&))); - - QObject::connect(&results, SIGNAL(itemSelected(Eniro::Result const&)), - &details, SLOT(loadData(Eniro::Result const&))); - - return app.exec(); -} +/* + * This file is part of Jenirok. + * + * Jenirok 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. + * + * Jenirok 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 Jenirok. If not, see . + * + */ + +#include +#include +#include +#include +#include "mainwindow.h" +#include "searchdialog.h" +#include "resultwindow.h" +#include "detailwindow.h" +#include "eniro.h" + +int main(int argc, char *argv[]) +{ + QApplication app(argc, argv); + + QTranslator translator; + translator.load(":/translations/" + QLocale::system().name()); + app.installTranslator(&translator); + + MainWindow window; + ResultWindow results(&window); + DetailWindow details(&results); + + window.show(); + + QObject::connect(&window, SIGNAL(search(SearchDialog::SearchDetails&)), + &results, SLOT(search(SearchDialog::SearchDetails&))); + + QObject::connect(&results, SIGNAL(itemSelected(Eniro::Result const&)), + &details, SLOT(loadData(Eniro::Result const&))); + + return app.exec(); +}