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
KOrganizer
Commits
4a4ce8de
Commit
4a4ce8de
authored
Aug 31, 2021
by
Laurent Montel
😁
Browse files
Const'ify more pointer
parent
666c8439
Pipeline
#77619
failed with stage
in 5 minutes and 13 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/dialog/koeventviewerdialog.cpp
View file @
4a4ce8de
...
...
@@ -27,11 +27,11 @@
KOEventViewerDialog
::
KOEventViewerDialog
(
Akonadi
::
ETMCalendar
*
calendar
,
QWidget
*
parent
)
:
QDialog
(
parent
)
,
mUser1Button
(
new
QPushButton
(
this
))
{
setWindowTitle
(
i18nc
(
"@title:window"
,
"Event Viewer"
));
auto
mainLayout
=
new
QVBoxLayout
(
this
);
auto
buttonBox
=
new
QDialogButtonBox
(
QDialogButtonBox
::
Close
,
this
);
mUser1Button
=
new
QPushButton
(
this
);
buttonBox
->
addButton
(
mUser1Button
,
QDialogButtonBox
::
ActionRole
);
auto
user2Button
=
new
QPushButton
(
this
);
buttonBox
->
addButton
(
user2Button
,
QDialogButtonBox
::
ActionRole
);
...
...
src/dialog/koeventviewerdialog.h
View file @
4a4ce8de
...
...
@@ -45,6 +45,6 @@ private:
void
showIncidenceContext
();
void
delayedDestruct
();
CalendarSupport
::
IncidenceViewer
*
mEventViewer
=
nullptr
;
QPushButton
*
mUser1Button
=
nullptr
;
QPushButton
*
const
mUser1Button
;
};
src/widgets/navigatorbar.cpp
View file @
4a4ce8de
...
...
@@ -18,6 +18,8 @@
NavigatorBar
::
NavigatorBar
(
QWidget
*
parent
)
:
QWidget
(
parent
)
,
mMonth
(
new
QToolButton
(
this
))
,
mYear
(
new
QToolButton
(
this
))
{
QFont
tfont
=
font
();
tfont
.
setPointSize
(
10
);
...
...
@@ -46,14 +48,12 @@ NavigatorBar::NavigatorBar(QWidget *parent)
"same approximate day of the next year"
));
// Create month name button
mMonth
=
new
QToolButton
(
this
);
mMonth
->
setPopupMode
(
QToolButton
::
InstantPopup
);
mMonth
->
setAutoRaise
(
true
);
mMonth
->
setFont
(
tfont
);
mMonth
->
setToolTip
(
i18n
(
"Select a month"
));
// Create year button
mYear
=
new
QToolButton
(
this
);
mYear
->
setPopupMode
(
QToolButton
::
InstantPopup
);
mYear
->
setAutoRaise
(
true
);
mYear
->
setFont
(
tfont
);
...
...
src/widgets/navigatorbar.h
View file @
4a4ce8de
...
...
@@ -45,8 +45,8 @@ private:
QToolButton
*
mPrevYear
=
nullptr
;
QToolButton
*
mPrevMonth
=
nullptr
;
QToolButton
*
mMonth
=
nullptr
;
QToolButton
*
mYear
=
nullpt
r
;
QToolButton
*
const
mMonth
;
QToolButton
*
const
mYea
r
;
QToolButton
*
mNextMonth
=
nullptr
;
QToolButton
*
mNextYear
=
nullptr
;
};
...
...
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