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
System
Dolphin
Commits
48af912b
Commit
48af912b
authored
Dec 28, 2020
by
Chau Duong
Committed by
Elvis Angelaccio
Dec 28, 2020
Browse files
Add const
parent
6df59136
Pipeline
#45568
passed with stage
in 6 minutes and 52 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/settings/contextmenu/contextmenusettingspage.cpp
View file @
48af912b
...
...
@@ -38,8 +38,8 @@ namespace
}
ContextMenuSettingsPage
::
ContextMenuSettingsPage
(
QWidget
*
parent
,
KActionCollection
*
actions
,
QStringList
actionIds
)
:
const
KActionCollection
*
actions
,
const
QStringList
&
actionIds
)
:
SettingsPageBase
(
parent
),
m_initialized
(
false
),
m_serviceModel
(
nullptr
),
...
...
@@ -230,8 +230,8 @@ void ContextMenuSettingsPage::showEvent(QShowEvent* event)
ContextMenuSettings
::
showCopyMoveMenu
());
// Add other built-in actions
for
(
const
QString
&
id
:
qAsConst
(
m_actionIds
)
)
{
QAction
*
action
=
m_actions
->
action
(
id
);
for
(
const
QString
&
id
:
m_actionIds
)
{
const
QAction
*
action
=
m_actions
->
action
(
id
);
if
(
action
)
{
addRow
(
action
->
icon
().
name
(),
action
->
text
(),
id
,
entryVisible
(
id
));
}
...
...
src/settings/contextmenu/contextmenusettingspage.h
View file @
48af912b
...
...
@@ -25,7 +25,9 @@ class ContextMenuSettingsPage : public SettingsPageBase
Q_OBJECT
public:
explicit
ContextMenuSettingsPage
(
QWidget
*
parent
,
KActionCollection
*
actions
,
QStringList
actionIds
);
explicit
ContextMenuSettingsPage
(
QWidget
*
parent
,
const
KActionCollection
*
actions
,
const
QStringList
&
actionIds
);
~
ContextMenuSettingsPage
()
override
;
/** @see SettingsPageBase::applySettings() */
...
...
@@ -68,8 +70,8 @@ private:
QListView
*
m_listView
;
QLineEdit
*
m_searchLineEdit
;
QStringList
m_enabledVcsPlugins
;
KActionCollection
*
m_actions
;
QStringList
m_actionIds
;
const
KActionCollection
*
m_actions
;
const
QStringList
m_actionIds
;
};
#endif
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