2 * This file is part of Jenirok.
4 * Jenirok is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * Jenirok is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with Jenirok. If not, see <http://www.gnu.org/licenses/>.
19 #include <QtCore/QTranslator>
20 #include <QtCore/QLocale>
21 #include <QtGui/QApplication>
22 #include <QtCore/QObject>
23 #include "mainwindow.h"
24 #include "searchdialog.h"
25 #include "resultwindow.h"
26 #include "detailwindow.h"
29 int main(int argc, char *argv[])
31 QApplication app(argc, argv);
33 QTranslator translator;
34 translator.load(":/translations/" + QLocale::system().name());
35 app.installTranslator(&translator);
38 ResultWindow results(&window);
39 DetailWindow details(&results);
43 QObject::connect(&window, SIGNAL(search(SearchDialog::SearchDetails&)),
44 &results, SLOT(search(SearchDialog::SearchDetails&)));
46 QObject::connect(&results, SIGNAL(itemSelected(Eniro::Result const&)),
47 &details, SLOT(loadData(Eniro::Result const&)));