File indexing completed on 2024-05-05 05:04:33
0001 /*************************************************************************** 0002 * SPDX-License-Identifier: GPL-2.0-or-later 0003 * * 0004 * SPDX-FileCopyrightText: 2016-2017 Thomas Fischer <fischer@unix-ag.uni-kl.de> 0005 * * 0006 * This program is free software; you can redistribute it and/or modify * 0007 * it under the terms of the GNU General Public License as published by * 0008 * the Free Software Foundation; either version 2 of the License, or * 0009 * (at your option) any later version. * 0010 * * 0011 * This program is distributed in the hope that it will be useful, * 0012 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 0013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 0014 * GNU General Public License for more details. * 0015 * * 0016 * You should have received a copy of the GNU General Public License * 0017 * along with this program; if not, see <http://www.gnu.org/licenses/>. * 0018 ***************************************************************************/ 0019 0020 #include <QtQml> 0021 #ifdef QT_QML_DEBUG 0022 #include <QtQuick> 0023 #endif 0024 0025 #include <QQuickView> 0026 #include <QScopedPointer> 0027 #include <QGuiApplication> 0028 0029 #include <sailfishapp.h> 0030 0031 #include "bibliographymodel.h" 0032 #include "searchenginelist.h" 0033 0034 int main(int argc, char *argv[]) 0035 { 0036 QScopedPointer<QGuiApplication> app(SailfishApp::application(argc, argv)); 0037 QScopedPointer<QQuickView> view(SailfishApp::createView()); 0038 0039 qmlRegisterType<SortedBibliographyModel>("harbour.bibsearch", 1, 0, "SortedBibliographyModel"); 0040 qmlRegisterType<SearchEngineList>("harbour.bibsearch", 1, 0, "SearchEngineList"); 0041 0042 view->setSource(SailfishApp::pathTo("qml/BibSearch.qml")); 0043 view->show(); 0044 0045 return app->exec(); 0046 }