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
PIM EventViews
Commits
601af0f0
Commit
601af0f0
authored
Sep 02, 2021
by
Laurent Montel
😁
Browse files
Const'ify variable
parent
fc750862
Pipeline
#78129
passed with stage
in 6 minutes and 20 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/agenda/agenda.cpp
View file @
601af0f0
...
...
@@ -55,7 +55,7 @@ public:
{
}
int
todayColumn
()
const
;
Q_REQUIRED_RESULT
int
todayColumn
()
const
;
public:
EventView
*
const
mEventView
;
...
...
src/agenda/agendaitem.h
View file @
601af0f0
...
...
@@ -276,7 +276,7 @@ private:
int
mCellXLeft
,
mCellXRight
;
int
mCellYTop
,
mCellYBottom
;
EventView
*
mEventView
=
nullptr
;
EventView
*
const
mEventView
;
MultiViewCalendar
::
Ptr
mCalendar
;
KCalendarCore
::
Incidence
::
Ptr
mIncidence
;
QDateTime
mOccurrenceDateTime
;
...
...
src/agenda/agendaview.cpp
View file @
601af0f0
...
...
@@ -94,7 +94,7 @@ public:
public:
int
mColumns
=
1
;
Location
mLocation
;
const
Location
mLocation
;
QPixmap
mPixmap
;
QVector
<
bool
>
mEnabled
;
...
...
@@ -165,24 +165,9 @@ class AgendaView::Private : public Akonadi::ETMCalendar::CalendarObserver
public:
explicit
Private
(
AgendaView
*
parent
,
bool
isInteractive
,
bool
isSideBySide
)
:
q
(
parent
)
,
mTopDayLabels
(
nullptr
)
,
mLayoutTopDayLabels
(
nullptr
)
,
mTopDayLabelsFrame
(
nullptr
)
,
mLayoutBottomDayLabels
(
nullptr
)
,
mBottomDayLabels
(
nullptr
)
,
mBottomDayLabelsFrame
(
nullptr
)
,
mTimeBarHeaderFrame
(
nullptr
)
,
mAllDayAgenda
(
nullptr
)
,
mAgenda
(
nullptr
)
,
mTimeLabelsZone
(
nullptr
)
,
mAllowAgendaUpdate
(
true
)
,
mUpdateItem
(
0
)
,
mIsSideBySide
(
isSideBySide
)
,
mDummyAllDayLeft
(
nullptr
)
,
mUpdateAllDayAgenda
(
true
)
,
mUpdateAgenda
(
true
)
,
mIsInteractive
(
isInteractive
)
,
mUpdateEventIndicatorsScheduled
(
false
)
,
mViewCalendar
(
MultiViewCalendar
::
Ptr
(
new
MultiViewCalendar
()))
{
mViewCalendar
->
mAgendaView
=
q
;
...
...
@@ -222,18 +207,18 @@ public:
QDateTime
mTimeSpanBegin
;
QDateTime
mTimeSpanEnd
;
bool
mTimeSpanInAllDay
;
bool
mAllowAgendaUpdate
;
bool
mTimeSpanInAllDay
=
true
;
bool
mAllowAgendaUpdate
=
true
;
Akonadi
::
Item
mUpdateItem
;
const
bool
mIsSideBySide
;
QWidget
*
mDummyAllDayLeft
=
nullptr
;
bool
mUpdateAllDayAgenda
;
bool
mUpdateAgenda
;
bool
mUpdateAllDayAgenda
=
true
;
bool
mUpdateAgenda
=
true
;
bool
mIsInteractive
;
bool
mUpdateEventIndicatorsScheduled
;
bool
mUpdateEventIndicatorsScheduled
=
false
;
// Contains days that have at least one all-day Event with TRANSP: OPAQUE (busy)
// that has you as organizer or attendee so we can color background with a different
...
...
src/agenda/timelabels.h
View file @
601af0f0
...
...
@@ -72,7 +72,7 @@ private:
void
setCellHeight
(
double
height
);
void
colorMousePos
();
QTimeZone
mTimezone
;
const
QTimeZone
mTimezone
;
int
mRows
;
double
mCellHeight
;
int
mMiniWidth
;
...
...
Write
Preview
Supports
Markdown
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