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
KAlarm
Commits
263f61b3
Commit
263f61b3
authored
Nov 27, 2021
by
David Jarvie
Browse files
Clazy fix
parent
2f1f28eb
Pipeline
#101844
passed with stage
in 1 minute and 25 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/resources/eventmodel.cpp
View file @
263f61b3
...
...
@@ -272,7 +272,7 @@ void AlarmListModel::setEventTypeFilter(CalEvent::Types types)
*/
void
AlarmListModel
::
setDateFilter
(
const
QVector
<
QDate
>&
dates
)
{
QList
<
std
::
pair
<
KADateTime
,
KADateTime
>>
oldFilterDates
=
mFilterDates
;
const
QVector
<
std
::
pair
<
KADateTime
,
KADateTime
>>
oldFilterDates
=
mFilterDates
;
mFilterDates
.
clear
();
if
(
!
dates
.
isEmpty
())
{
...
...
@@ -432,10 +432,8 @@ QVariant AlarmListModel::data(const QModelIndex& ix, int role) const
switch
(
role
)
{
case
Qt
::
DisplayRole
:
#if 1
case
ResourceDataModelBase
::
TimeDisplayRole
:
case
ResourceDataModelBase
::
SortRole
:
#endif
{
// Return a value based on the first occurrence in the date filter range.
const
KAEvent
ev
=
event
(
ix
);
...
...
src/resources/eventmodel.h
View file @
263f61b3
...
...
@@ -162,7 +162,7 @@ private Q_SLOTS:
private:
static
AlarmListModel
*
mAllInstance
;
CalEvent
::
Types
mFilterTypes
;
// types of events contained in this model
Q
List
<
std
::
pair
<
KADateTime
,
KADateTime
>>
mFilterDates
;
// date/time ranges to include in filter
Q
Vector
<
std
::
pair
<
KADateTime
,
KADateTime
>>
mFilterDates
;
// date/time ranges to include in filter
mutable
QHash
<
ResourceId
,
QHash
<
QString
,
KADateTime
>>
mDateFilterCache
;
// if date filter, whether events are included in filter
bool
mReplaceBlankName
{
false
};
// replace Name with Text for Qt::DisplayRole if Name is blank
};
...
...
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