Commit e6f757d6 authored by Nicolas Fella's avatar Nicolas Fella Committed by Dimitris Kardarakos

Remove desktop/mobile specific main files

parent a78d3084
......@@ -36,8 +36,13 @@ Kirigami.ApplicationWindow {
spacing: Kirigami.Units.gridUnit * 2
}
}
contextDrawer: Kirigami.ContextDrawer {
id: contextDrawer
}
pageStack.initialPage: [calendarDashboardComponent]
pageStack.defaultColumnWidth: pageStack.width
/**
* To be emitted when data displayed should be refreshed
......
/*
* Copyright 2018 Dimitris Kardarakos <dimkard@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
* published by the Free Software Foundation; either version 2 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 Library General Public License for more details
*
* You should have received a copy of the GNU Library 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.
*/
import org.kde.kirigami 2.5 as Kirigami
Main {
id: root
contextDrawer: null
pageStack.defaultColumnWidth: pageStack.width;
}
/*
* Copyright 2018 Dimitris Kardarakos <dimkard@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
* published by the Free Software Foundation; either version 2 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 Library General Public License for more details
*
* You should have received a copy of the GNU Library 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.
*/
import QtQuick 2.1
import QtQuick.Layouts 1.2
import org.kde.kirigami 2.0 as Kirigami
Main {
id: root
contextDrawer: Kirigami.ContextDrawer {
id: contextDrawer
}
pageStack.defaultColumnWidth: pageStack.width;
}
......@@ -31,17 +31,8 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
QQmlApplicationEngine engine;
if (qEnvironmentVariableIsSet("QT_QUICK_CONTROLS_MOBILE") &&
(QString::fromLatin1(qgetenv("QT_QUICK_CONTROLS_MOBILE")) == QStringLiteral("1") ||
QString::fromLatin1(qgetenv("QT_QUICK_CONTROLS_MOBILE")) == QStringLiteral("true")))
{
engine.load(QUrl(QStringLiteral("qrc:///mobilemain.qml")));
}
else {
engine.load(QUrl(QStringLiteral("qrc:///desktopmain.qml")));
}
engine.load(QUrl(QStringLiteral("qrc:///Main.qml")));
if (engine.rootObjects().isEmpty()) {
return -1;
}
......
......@@ -3,8 +3,6 @@
<file alias="CalendarBackend.qml">contents/ui/backends/CalendarBackend.qml</file>
<file alias="MonthView.qml">contents/ui/kirigami-playground/MonthView.qml</file>
<file alias="DayDelegate.qml">contents/ui/kirigami-playground/DayDelegate.qml</file>
<file alias="mobilemain.qml">contents/ui/mobilemain.qml</file>
<file alias="desktopmain.qml">contents/ui/desktopmain.qml</file>
<file alias="Main.qml">contents/ui/Main.qml</file>
<file alias="TodosView.qml">contents/ui/TodosView.qml</file>
<file alias="TodoPage.qml">contents/ui/TodoPage.qml</file>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment