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
f9f9041e
Commit
f9f9041e
authored
Dec 09, 2021
by
Claudio Cambra
Browse files
Fixed massive freezing caused by changing date on week view. Fixes
#134
parent
567b4263
Pipeline
#107543
passed with stage
in 6 minutes and 23 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/contents/ui/HourlyView.qml
View file @
f9f9041e
...
...
@@ -194,7 +194,9 @@ Kirigami.Page {
readonly
property
bool
isNextOrCurrentItem
:
index
>=
pathView
.
currentIndex
-
1
&&
index
<=
pathView
.
currentIndex
+
1
property
int
multiDayLinesShown
:
0
readonly
property
int
daysFromWeekStart
:
DateUtils
.
fullDaysBetweenDates
(
startDate
,
root
.
currentDate
)
-
1
readonly
property
int
daysFromWeekStart
:
index
===
pathView
.
startIndex
?
DateUtils
.
fullDaysBetweenDates
(
startDate
,
root
.
currentDate
)
-
1
:
null
// 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
...
...
src/main.cpp
View file @
f9f9041e
// SPDX-FileCopyrightText: 2021 Carl Schwan <carlschwan@kde.org>
// SPDX-License-Identifier: LGPL-2.1-or-later
#define QT_QML_DEBUG
#include
<KAboutData>
#include
<KCalendarCore/MemoryCalendar>
#include
<KCalendarCore/VCalFormat>
...
...
@@ -15,6 +15,7 @@
#include
<QDir>
#include
<QQmlApplicationEngine>
#include
<QQmlContext>
#include
<QQmlDebuggingEnabler>
#include
<QQuickStyle>
#include
<QQuickWindow>
#include
<QUrl>
...
...
@@ -114,6 +115,7 @@ int main(int argc, char *argv[])
aboutData
.
processCommandLine
(
&
parser
);
QQmlApplicationEngine
engine
;
QQmlDebuggingEnabler
enabler
;
auto
contactsManager
=
new
ContactsManager
(
&
engine
);
auto
tagManager
=
new
TagManager
(
&
engine
);
...
...
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