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
da7c9d25
Commit
da7c9d25
authored
Oct 06, 2011
by
Jekyll Wu
Browse files
Set the incremental step of HistorySize as 1/10 of current value.
parent
2b72a67f
Changes
2
Show whitespace changes
Inline
Side-by-side
src/EditProfileDialog.cpp
View file @
da7c9d25
...
...
@@ -1071,7 +1071,10 @@ void EditProfileDialog::setupScrollingPage(const Profile::Ptr profile)
setupRadio
(
types
,
scrollBackType
);
// setup scrollback line count spinner
_ui
->
scrollBackLinesSpinner
->
setValue
(
profile
->
property
<
int
>
(
Profile
::
HistorySize
)
);
int
historySize
=
profile
->
property
<
int
>
(
Profile
::
HistorySize
);
_ui
->
scrollBackLinesSpinner
->
setValue
(
historySize
);
_ui
->
scrollBackLinesSpinner
->
setSingleStep
(
historySize
/
10
);
// signals and slots
connect
(
_ui
->
scrollBackLinesSpinner
,
SIGNAL
(
valueChanged
(
int
))
,
this
,
...
...
src/HistorySizeDialog.cpp
View file @
da7c9d25
...
...
@@ -177,6 +177,7 @@ int HistorySizeDialog::lineCount() const
void
HistorySizeDialog
::
setLineCount
(
int
lines
)
{
_lineCountBox
->
setValue
(
lines
);
_lineCountBox
->
setSingleStep
(
lines
/
10
);
}
...
...
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