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
KPimTextEdit
Commits
84ad45cf
Commit
84ad45cf
authored
Oct 31, 2021
by
Laurent Montel
😁
Browse files
const'ify list
parent
2ca56b46
Pipeline
#92788
passed with stage
in 7 minutes and 17 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/texteditor/plaintexteditor/plaintexteditor.cpp
View file @
84ad45cf
...
...
@@ -106,7 +106,7 @@ void PlainTextEditor::contextMenuEvent(QContextMenuEvent *event)
if
(
popup
)
{
const
bool
emptyDocument
=
document
()
->
isEmpty
();
if
(
!
isReadOnly
())
{
QList
<
QAction
*>
actionList
=
popup
->
actions
();
const
QList
<
QAction
*>
actionList
=
popup
->
actions
();
enum
{
UndoAct
,
RedoAct
,
CutAct
,
CopyAct
,
PasteAct
,
ClearAct
,
SelectAllAct
,
NCountActs
};
QAction
*
separatorAction
=
nullptr
;
const
int
idx
=
actionList
.
indexOf
(
actionList
[
SelectAllAct
])
+
1
;
...
...
src/texteditor/richtexteditor/richtexteditor.cpp
View file @
84ad45cf
...
...
@@ -162,7 +162,7 @@ QMenu *RichTextEditor::mousePopupMenu(QPoint pos)
if
(
popup
)
{
const
bool
emptyDocument
=
document
()
->
isEmpty
();
if
(
!
isReadOnly
())
{
QList
<
QAction
*>
actionList
=
popup
->
actions
();
const
QList
<
QAction
*>
actionList
=
popup
->
actions
();
enum
{
UndoAct
,
RedoAct
,
CutAct
,
CopyAct
,
PasteAct
,
ClearAct
,
SelectAllAct
,
NCountActs
};
QAction
*
separatorAction
=
nullptr
;
const
int
idx
=
actionList
.
indexOf
(
actionList
[
SelectAllAct
])
+
1
;
...
...
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