Skip to content
GitLab
Menu
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
d3d095cb
Commit
d3d095cb
authored
Nov 12, 2021
by
Claudio Cambra
Browse files
Views now auto update on adding or removing calendar sources
parent
108b5963
Pipeline
#96512
passed with stage
in 5 minutes and 46 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/incidenceoccurrencemodel.cpp
View file @
d3d095cb
...
@@ -100,6 +100,8 @@ void IncidenceOccurrenceModel::updateQuery()
...
@@ -100,6 +100,8 @@ void IncidenceOccurrenceModel::updateQuery()
QObject
::
connect
(
m_coreCalendar
->
model
(),
&
QAbstractItemModel
::
rowsRemoved
,
this
,
&
IncidenceOccurrenceModel
::
refreshView
);
QObject
::
connect
(
m_coreCalendar
->
model
(),
&
QAbstractItemModel
::
rowsRemoved
,
this
,
&
IncidenceOccurrenceModel
::
refreshView
);
QObject
::
connect
(
m_coreCalendar
->
model
(),
&
QAbstractItemModel
::
modelReset
,
this
,
&
IncidenceOccurrenceModel
::
refreshView
);
QObject
::
connect
(
m_coreCalendar
->
model
(),
&
QAbstractItemModel
::
modelReset
,
this
,
&
IncidenceOccurrenceModel
::
refreshView
);
QObject
::
connect
(
m_coreCalendar
,
&
Akonadi
::
ETMCalendar
::
collectionsAdded
,
this
,
&
IncidenceOccurrenceModel
::
refreshView
);
QObject
::
connect
(
m_coreCalendar
,
&
Akonadi
::
ETMCalendar
::
collectionsRemoved
,
this
,
&
IncidenceOccurrenceModel
::
refreshView
);
refreshView
();
refreshView
();
}
}
...
...
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