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
Utilities
Konsole
Commits
40f2b079
Commit
40f2b079
authored
Jul 02, 2020
by
Tomaz Canabrava
Browse files
Port scroll controllers away from qt4 style connect
parent
76ec7545
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/EditProfileDialog.cpp
View file @
40f2b079
...
...
@@ -1575,12 +1575,11 @@ void EditProfileDialog::setupScrollingPage(const Profile::Ptr &profile)
// setup scrollpageamount type radio
auto
scrollFullPage
=
profile
->
property
<
int
>
(
Profile
::
ScrollFullPage
);
const
auto
pageamounts
=
QVector
<
RadioOption
>
{
{
_scrollingUi
->
scrollHalfPage
,
Enum
::
ScrollPageHalf
,
SLOT
(
scrollHalfPage
())},
{
_scrollingUi
->
scrollFullPage
,
Enum
::
ScrollPageFull
,
SLOT
(
scrollFullPage
())}
};
_scrollingUi
->
scrollHalfPage
->
setChecked
(
Enum
::
ScrollPageHalf
==
scrollFullPage
);
connect
(
_scrollingUi
->
scrollHalfPage
,
&
QPushButton
::
clicked
,
this
,
&
EditProfileDialog
::
scrollFullPage
);
setupRadio
(
pageamounts
,
scrollFullPage
);
_scrollingUi
->
scrollFullPage
->
setChecked
(
Enum
::
ScrollPageFull
==
scrollFullPage
);
connect
(
_scrollingUi
->
scrollFullPage
,
&
QPushButton
::
clicked
,
this
,
&
EditProfileDialog
::
scrollFullPage
);
const
auto
options
=
QVector
<
BooleanOption
>
{
...
...
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