Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Kalendar
Commits
a9012d63
Commit
a9012d63
authored
Oct 08, 2022
by
Claudio Cambra
Browse files
Add BasicHourlyView
Signed-off-by:
Claudio Cambra
<
claudio.cambra@gmail.com
>
parent
c77f1b04
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
src/contents/ui/MainViews/BasicInternalHourlyView.qml
0 → 100644
View file @
a9012d63
This diff is collapsed.
Click to expand it.
src/contents/ui/MainViews/HourlyView.qml
View file @
a9012d63
...
...
@@ -27,7 +27,7 @@ Kirigami.Page {
property
int
daysToShow
:
7
property
bool
dragDropEnabled
:
true
readonly
property
var
internalHourlyView
:
swipeable
ViewLoader
.
item
readonly
property
var
internalHourlyView
:
basic
ViewLoader
.
item
readonly
property
var
mode
:
switch
(
daysToShow
)
{
case
1
:
...
...
@@ -83,6 +83,7 @@ Kirigami.Page {
Loader
{
id
:
swipeableViewLoader
anchors.fill
:
parent
active
:
false
sourceComponent
:
SwipeableInternalHourlyView
{
anchors.fill
:
parent
...
...
@@ -95,4 +96,21 @@ Kirigami.Page {
onStartDateChanged
:
root
.
startDate
=
startDate
}
}
Loader
{
id
:
basicViewLoader
anchors.fill
:
parent
active
:
true
sourceComponent
:
BasicInternalHourlyView
{
anchors.fill
:
parent
daysToShow
:
root
.
daysToShow
dragDropEnabled
:
root
.
dragDropEnabled
startDate
:
root
.
startDate
currentDate
:
root
.
currentDate
openOccurrence
:
root
.
openOccurrence
onStartDateChanged
:
root
.
startDate
=
startDate
}
}
}
src/contents/ui/MainViews/SwipeableInternalHourlyView.qml
View file @
a9012d63
This diff is collapsed.
Click to expand it.
src/resources.qrc
View file @
a9012d63
...
...
@@ -26,6 +26,7 @@ SPDX-License-Identifier: CC0-1.0
<file alias="TodoTreeView.qml">contents/ui/MainViews/TodoTreeView.qml</file>
<file alias="TodoView.qml">contents/ui/MainViews/TodoView.qml</file>
<file alias="SwipeableInternalHourlyView.qml">contents/ui/MainViews/SwipeableInternalHourlyView.qml</file>
<file alias="BasicInternalHourlyView.qml">contents/ui/MainViews/BasicInternalHourlyView.qml</file>
<file alias="HourlyView.qml">contents/ui/MainViews/HourlyView.qml</file>
<file alias="LazyContactView.qml">contents/ui/MainViews/LazyContactView.qml</file>
<file alias="LazyMailView.qml">contents/ui/MainViews/LazyMailView.qml</file>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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