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
ddb41c21
Commit
ddb41c21
authored
Sep 08, 2022
by
Claudio Cambra
Browse files
Add an option to disable pop-ups in favour of the info drawer
Signed-off-by:
Claudio Cambra
<
claudio.cambra@gmail.com
>
parent
fe50ac82
Pipeline
#230651
passed with stage
in 2 minutes and 14 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/contents/ui/KalendarUtils/KalendarUiUtils.qml
View file @
ddb41c21
...
...
@@ -112,9 +112,11 @@ QtObject {
function
setUpView
(
modelData
,
incidenceItem
=
null
)
{
// Choose between opening the incidence information in the drawer or the popup
const
showingCalendarView
=
KalendarApplication
.
Event
&
appMain
.
pageStack
.
currentItem
.
mode
;
const
usingDrawer
=
Kirigami
.
Settings
.
isMobile
||
!
incidenceItem
||
appMain
.
pageStack
.
currentItem
.
objectName
===
"
todoView
"
;
!
showingCalendarView
||
!
Config
.
useIncidenceInfoPopupInCalendarViews
;
appMain
.
incidenceInfoDrawerEnabled
=
usingDrawer
;
appMain
.
incidenceInfoPopupEnabled
=
!
usingDrawer
;
...
...
src/contents/ui/Settings/ViewSettingsPage.qml
View file @
ddb41c21
...
...
@@ -15,6 +15,16 @@ Kirigami.ScrollablePage {
Kirigami.FormData.isSection
:
true
Kirigami.FormData.label
:
i18n
(
"
General settings
"
)
}
Controls.CheckBox
{
text
:
i18n
(
"
Use popup to show incidence information
"
)
checked
:
Config
.
useIncidenceInfoPopupInCalendarViews
enabled
:
!
Config
.
isUseIncidenceInfoPopupInCalendarViewsImmutable
&&
!
Kirigami
.
Settings
.
isMobile
visible
:
!
Kirigami
.
Settings
.
isMobile
onClicked
:
{
Config
.
useIncidenceInfoPopupInCalendarViews
=
!
Config
.
useIncidenceInfoPopupInCalendarViews
;
Config
.
save
();
}
}
Controls.CheckBox
{
text
:
i18n
(
"
Show sub-tasks in calendar views
"
)
checked
:
Config
.
showSubtodosInCalendarViews
...
...
src/kalendarconfig.kcfg
View file @
ddb41c21
...
...
@@ -82,6 +82,10 @@ SPDX-License-Identifier: LGPL-2.0-or-later
</group>
<group
name=
"GeneralView"
>
<entry
name=
"useIncidenceInfoPopupInCalendarViews"
type=
"Bool"
>
<label>
Use a popup to view incidence information instead of a drawer.
</label>
<default>
true
</default>
</entry>
<entry
name=
"showSubtodosInCalendarViews"
type=
"Bool"
>
<label>
Show subtasks in the calendar views (e.g. month, schedule, etc. views).
</label>
<default>
true
</default>
...
...
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