Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Calindori
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Plasma Mobile
Calindori
Commits
e6f757d6
Commit
e6f757d6
authored
Mar 04, 2019
by
Nicolas Fella
Committed by
Dimitris Kardarakos
Mar 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove desktop/mobile specific main files
parent
a78d3084
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
72 deletions
+7
-72
src/contents/ui/Main.qml
src/contents/ui/Main.qml
+5
-0
src/contents/ui/desktopmain.qml
src/contents/ui/desktopmain.qml
+0
-27
src/contents/ui/mobilemain.qml
src/contents/ui/mobilemain.qml
+0
-32
src/main.cpp
src/main.cpp
+2
-11
src/resources.qrc
src/resources.qrc
+0
-2
No files found.
src/contents/ui/Main.qml
View file @
e6f757d6
...
...
@@ -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
...
...
src/contents/ui/desktopmain.qml
deleted
100644 → 0
View file @
a78d3084
/*
* 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
;
}
src/contents/ui/mobilemain.qml
deleted
100644 → 0
View file @
a78d3084
/*
* 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
;
}
src/main.cpp
View file @
e6f757d6
...
...
@@ -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
;
}
...
...
src/resources.qrc
View file @
e6f757d6
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment