Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Bluedevil
Commits
56af2ee4
Commit
56af2ee4
authored
Jan 16, 2021
by
Alexander Lohnau
💬
Browse files
Define lambda in variable before using it
parent
14da746d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/wizard/bluewizard.cpp
View file @
56af2ee4
...
...
@@ -64,17 +64,13 @@ BlueWizard::BlueWizard()
connect
(
initJob
,
&
BluezQt
::
InitManagerJob
::
result
,
this
,
&
BlueWizard
::
initJobResult
);
// When Finished page is opened, close wizard automatically
connect
(
this
,
&
QWizard
::
currentIdChanged
,
this
,
[
this
](
int
id
)
{
if
(
id
==
Success
)
{
done
(
QDialog
::
Accepted
);
}
// Sending notification in SuccessPage is asynchronous, so this needs to be queued.
},
Qt
::
QueuedConnection
);
const
auto
onCurrentIdChanged
=
[
this
](
int
id
)
{
if
(
id
==
Success
)
{
done
(
QDialog
::
Accepted
);
}
// Sending notification in SuccessPage is asynchronous, so this needs to be queued.
};
connect
(
this
,
&
QWizard
::
currentIdChanged
,
this
,
onCurrentIdChanged
,
Qt
::
QueuedConnection
);
}
BluezQt
::
DevicePtr
BlueWizard
::
device
()
const
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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