Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Utilities
Konsole
Commits
6e9e947e
Commit
6e9e947e
authored
Jul 02, 2020
by
Tomaz Canabrava
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port set of buttons away from qt4 connection style
parent
40f2b079
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
23 deletions
+10
-23
src/EditProfileDialog.cpp
src/EditProfileDialog.cpp
+10
-23
No files found.
src/EditProfileDialog.cpp
View file @
6e9e947e
...
...
@@ -1694,29 +1694,16 @@ void EditProfileDialog::setupMousePage(const Profile::Ptr &profile)
void
EditProfileDialog
::
setupAdvancedPage
(
const
Profile
::
Ptr
&
profile
)
{
const
auto
options
=
QVector
<
BooleanOption
>
{
{
_advancedUi
->
enableBlinkingTextButton
,
Profile
::
BlinkingTextEnabled
,
SLOT
(
toggleBlinkingText
(
bool
))
},
{
_advancedUi
->
enableFlowControlButton
,
Profile
::
FlowControlEnabled
,
SLOT
(
toggleFlowControl
(
bool
))
},
{
_appearanceUi
->
enableBlinkingCursorButton
,
Profile
::
BlinkingCursorEnabled
,
SLOT
(
toggleBlinkingCursor
(
bool
))
},
{
_advancedUi
->
enableBidiRenderingButton
,
Profile
::
BidiRenderingEnabled
,
SLOT
(
togglebidiRendering
(
bool
))
},
{
_advancedUi
->
enableReverseUrlHints
,
Profile
::
ReverseUrlHints
,
SLOT
(
toggleReverseUrlHints
(
bool
))
}
};
setupCheckBoxes
(
options
,
profile
);
_advancedUi
->
enableBlinkingTextButton
->
setChecked
(
profile
->
property
<
bool
>
(
Profile
::
BlinkingTextEnabled
));
connect
(
_advancedUi
->
enableBlinkingTextButton
,
&
QPushButton
::
toggled
,
this
,
&
EditProfileDialog
::
toggleBlinkingText
);
_advancedUi
->
enableFlowControlButton
->
setChecked
(
profile
->
property
<
bool
>
(
Profile
::
FlowControlEnabled
));
connect
(
_advancedUi
->
enableFlowControlButton
,
&
QPushButton
::
toggled
,
this
,
&
EditProfileDialog
::
toggleFlowControl
);
_appearanceUi
->
enableBlinkingCursorButton
->
setChecked
(
profile
->
property
<
bool
>
(
Profile
::
BlinkingCursorEnabled
));
connect
(
_appearanceUi
->
enableBlinkingCursorButton
,
&
QPushButton
::
toggled
,
this
,
&
EditProfileDialog
::
toggleBlinkingCursor
);
_advancedUi
->
enableBidiRenderingButton
->
setChecked
(
profile
->
property
<
bool
>
(
Profile
::
BidiRenderingEnabled
));
connect
(
_advancedUi
->
enableBidiRenderingButton
,
&
QPushButton
::
toggled
,
this
,
&
EditProfileDialog
::
togglebidiRendering
);
_advancedUi
->
enableReverseUrlHints
->
setChecked
(
profile
->
property
<
bool
>
(
Profile
::
ReverseUrlHints
));
connect
(
_advancedUi
->
enableReverseUrlHints
,
&
QPushButton
::
toggled
,
this
,
&
EditProfileDialog
::
toggleReverseUrlHints
);
// Setup the URL hints modifier checkboxes
{
...
...
Write
Preview
Markdown
is supported
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