Commit da7c9d25 authored by Jekyll Wu's avatar Jekyll Wu
Browse files

Set the incremental step of HistorySize as 1/10 of current value.

parent 2b72a67f
......@@ -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 ,
......
......@@ -177,6 +177,7 @@ int HistorySizeDialog::lineCount() const
void HistorySizeDialog::setLineCount(int lines)
{
_lineCountBox->setValue(lines);
_lineCountBox->setSingleStep( lines / 10 );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment