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
e8feeb10
Commit
e8feeb10
authored
Dec 16, 2021
by
Claudio Cambra
Browse files
Fixed current time indicator in three-day and day vioew. Fixes
#140
parent
ae6c5f9f
Pipeline
#111193
passed with stage
in 6 minutes and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/contents/ui/HourlyView.qml
View file @
e8feeb10
...
...
@@ -165,9 +165,8 @@ Kirigami.Page {
}
property
date
dateToUse
property
int
startIndex
property
int
startIndex
:
root
.
model
.
rowCount
()
/
2
;
Component.onCompleted
:
{
startIndex
=
root
.
model
.
rowCount
()
/
2
;
currentIndex
=
startIndex
;
}
onCurrentIndexChanged
:
{
...
...
@@ -197,7 +196,7 @@ Kirigami.Page {
readonly
property
int
daysFromWeekStart
:
index
===
pathView
.
startIndex
?
DateUtils
.
fullDaysBetweenDates
(
startDate
,
root
.
currentDate
)
-
1
:
root
.
daysToShow
+
1
root
.
daysToShow
// As long as the date is even slightly larger, it will return 1; since we start from the startDate at 00:00, adjust
active
:
isNextOrCurrentItem
...
...
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