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
KAddressBook
Commits
018281b8
Commit
018281b8
authored
Sep 27, 2021
by
Laurent Montel
😁
Browse files
Rename slot for avoiding to use qOverload
parent
81301c02
Pipeline
#82967
passed with stage
in 7 minutes and 59 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/mainwidget.cpp
View file @
018281b8
...
...
@@ -666,7 +666,7 @@ void MainWidget::setupActions(KActionCollection *collection)
collection
->
setDefaultShortcut
(
act
,
QKeySequence
(
Qt
::
CTRL
|
Qt
::
SHIFT
|
Qt
::
Key_3
));
collection
->
addAction
(
QStringLiteral
(
"view_mode_3columns"
),
act
);
connect
(
mViewModeGroup
,
qOverload
<
QAction
*>
(
&
QActionGroup
::
triggered
)
,
this
,
qOverload
<
QAction
*>
(
&
MainWidget
::
setViewMode
)
)
;
connect
(
mViewModeGroup
,
&
QActionGroup
::
triggered
,
this
,
&
MainWidget
::
set
Activate
ViewMode
);
KToggleAction
*
actTheme
=
mGrantleeThemeManager
->
actionForTheme
();
if
(
actTheme
)
{
...
...
@@ -850,7 +850,7 @@ QAbstractItemModel *MainWidget::allContactsModel()
return
mAllContactsModel
;
}
void
MainWidget
::
setViewMode
(
QAction
*
action
)
void
MainWidget
::
set
Activate
ViewMode
(
QAction
*
action
)
{
setViewMode
(
action
->
data
().
toInt
());
}
...
...
src/mainwidget.h
View file @
018281b8
...
...
@@ -96,7 +96,7 @@ private Q_SLOTS:
void
itemSelectionChanged
(
const
QModelIndex
&
,
const
QModelIndex
&
);
void
selectFirstItem
();
void
setViewMode
(
QAction
*
action
);
void
set
Activate
ViewMode
(
QAction
*
action
);
void
setQRCodeShow
(
bool
on
);
void
restoreState
();
...
...
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