Summary: Makes for straightforward Android testing and will work on normal installations as well. Reviewers: #kirigami, #okular, mart Reviewed By: #kirigami, mart Subscribers: plasma-devel Tags: #kirigami, #okular Differential Revision: https://phabricator.kde.org/D12176remotes/offline-stg/wilder
parent
4d19b4a8d7
commit
5f8f84d53c
4 changed files with 64 additions and 12 deletions
@ -0,0 +1,13 @@ |
||||
<!DOCTYPE RCC><RCC version="1.0"> |
||||
<qresource> |
||||
<file>package/contents/ui/Bookmarks.qml</file> |
||||
<file>package/contents/ui/Documents.qml</file> |
||||
<file>package/contents/ui/main.qml</file> |
||||
<file>package/contents/ui/MainView.qml</file> |
||||
<file>package/contents/ui/OkularDrawer.qml</file> |
||||
<file>package/contents/ui/TableOfContents.qml</file> |
||||
<file>package/contents/ui/Thumbnails.qml</file> |
||||
<file>package/contents/ui/ThumbnailsBase.qml</file> |
||||
<file>package/contents/ui/TreeDelegate.qml</file> |
||||
</qresource> |
||||
</RCC> |
||||
@ -0,0 +1,46 @@ |
||||
/*************************************************************************************
|
||||
* Copyright (C) 2010 by Aleix Pol <aleixpol@kde.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 2 * |
||||
* 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, write to the Free Software * |
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * |
||||
*************************************************************************************/ |
||||
|
||||
#include <QApplication> |
||||
|
||||
#include <KLocalizedContext> |
||||
#include <QDebug> |
||||
#include <QFileInfo> |
||||
#include <QDir> |
||||
#include <QStandardPaths> |
||||
#include <QQmlEngine> |
||||
#include <QQmlContext> |
||||
#include <QQmlApplicationEngine> |
||||
#include <QIcon> |
||||
|
||||
Q_DECL_EXPORT int main(int argc, char *argv[]) |
||||
{ |
||||
#ifdef __ANDROID__ |
||||
qputenv("QT_QUICK_CONTROLS_STYLE", "material"); |
||||
#endif |
||||
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); |
||||
QApplication app(argc, argv); |
||||
app.setApplicationName(QStringLiteral("okularmobile")); |
||||
|
||||
QQmlApplicationEngine engine; |
||||
engine.rootContext()->setContextObject(new KLocalizedContext(&engine)); |
||||
|
||||
engine.setBaseUrl(QUrl("qrc:/package/contents/ui/")); |
||||
engine.load(QUrl("qrc:/package/contents/ui/main.qml")); |
||||
return app.exec(); |
||||
} |
||||
Loading…
Reference in new issue