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
Utilities
Konsole
Commits
562ee87e
Commit
562ee87e
authored
Mar 19, 2012
by
Jekyll Wu
Browse files
Trivial style change
parent
33678e7c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/EditProfileDialog.cpp
View file @
562ee87e
...
...
@@ -325,7 +325,7 @@ void EditProfileDialog::setupTabsPage(const Profile::Ptr profile)
_ui
->
remoteTabTitleEdit
->
setText
(
profile
->
remoteTabTitleFormat
());
// tab monitoring
int
silenceSeconds
=
profile
->
silenceSeconds
();
const
int
silenceSeconds
=
profile
->
silenceSeconds
();
_ui
->
silenceSecondsSpinner
->
setValue
(
silenceSeconds
);
_ui
->
silenceSecondsSpinner
->
setSuffix
(
ki18ncp
(
"Unit of time"
,
" second"
,
" seconds"
));
...
...
@@ -457,7 +457,7 @@ void EditProfileDialog::setupAppearancePage(const Profile::Ptr profile)
SLOT
(
newColorScheme
()));
// setup font preview
bool
antialias
=
profile
->
antiAliasFonts
();
const
bool
antialias
=
profile
->
antiAliasFonts
();
QFont
profileFont
=
profile
->
font
();
profileFont
.
setStyleStrategy
(
antialias
?
QFont
::
PreferAntialias
:
QFont
::
NoAntialias
);
...
...
@@ -477,8 +477,7 @@ void EditProfileDialog::setupAppearancePage(const Profile::Ptr profile)
connect
(
_ui
->
antialiasTextButton
,
SIGNAL
(
toggled
(
bool
)),
this
,
SLOT
(
setAntialiasText
(
bool
)));
bool
boldIntense
=
profile
->
boldIntense
();
_ui
->
boldIntenseButton
->
setChecked
(
boldIntense
);
_ui
->
boldIntenseButton
->
setChecked
(
profile
->
boldIntense
());
connect
(
_ui
->
boldIntenseButton
,
SIGNAL
(
toggled
(
bool
)),
this
,
SLOT
(
setBoldIntense
(
bool
)));
}
...
...
@@ -973,7 +972,7 @@ void EditProfileDialog::setupScrollingPage(const Profile::Ptr profile)
setupRadio
(
types
,
scrollBackType
);
// setup scrollback line count spinner
int
historySize
=
profile
->
historySize
();
const
int
historySize
=
profile
->
historySize
();
_ui
->
scrollBackLinesSpinner
->
setValue
(
historySize
);
_ui
->
scrollBackLinesSpinner
->
setSingleStep
(
historySize
/
10
);
_ui
->
scrollBackLinesSpinner
->
setSuffix
(
ki18ncp
(
"Unit of scrollback"
,
" line"
,
" lines"
));
...
...
src/ViewManager.cpp
View file @
562ee87e
...
...
@@ -796,19 +796,14 @@ void ViewManager::applyProfileToView(TerminalDisplay* view , const Profile::Ptr
view
->
setShowTerminalSizeHint
(
profile
->
showTerminalSizeHint
());
// terminal features
bool
blinkingCursor
=
profile
->
blinkingCursorEnabled
();
view
->
setBlinkingCursorEnabled
(
blinkingCursor
);
bool
blinkingText
=
profile
->
blinkingTextEnabled
();
view
->
setBlinkingTextEnabled
(
blinkingText
);
view
->
setBlinkingCursorEnabled
(
profile
->
blinkingCursorEnabled
());
view
->
setBlinkingTextEnabled
(
profile
->
blinkingTextEnabled
());
int
tripleClickMode
=
profile
->
property
<
int
>
(
Profile
::
TripleClickMode
);
view
->
setTripleClickMode
(
Enum
::
TripleClickModeEnum
(
tripleClickMode
));
view
->
setUnderlineLinks
(
profile
->
underlineLinksEnabled
());
bool
bidiEnabled
=
profile
->
bidiRenderingEnabled
();
view
->
setBidiEnabled
(
bidiEnabled
);
view
->
setBidiEnabled
(
profile
->
bidiRenderingEnabled
());
// cursor shape
int
cursorShape
=
profile
->
property
<
int
>
(
Profile
::
CursorShape
);
...
...
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