Commit 090d379f authored by Jekyll Wu's avatar Jekyll Wu
Browse files

Show the unit of scrollback within the spinbox

parent 3ae465ce
......@@ -1045,7 +1045,7 @@ void EditProfileDialog::setupScrollingPage(const Profile::Ptr profile)
int historySize = profile->property<int>(Profile::HistorySize);
_ui->scrollBackLinesSpinner->setValue(historySize);
_ui->scrollBackLinesSpinner->setSingleStep(historySize / 10);
_ui->scrollBackLinesSpinner->setSuffix(ki18ncp("Unit of scrollback", " line", " lines"));
// signals and slots
connect(_ui->scrollBackLinesSpinner, SIGNAL(valueChanged(int)), this,
......
......@@ -74,17 +74,15 @@ HistorySizeDialog::HistorySizeDialog(QWidget* parent)
_lineCountBox->setValue(HistorySizeDialog::defaultLineCount);
_lineCountBox->setSingleStep(HistorySizeDialog::defaultLineCount / 10);
_lineCountBox->setSuffix(ki18ncp("Unit of scrollback", " line", " lines"));
_fixedHistoryButton->setFocusProxy(_lineCountBox);
connect(_fixedHistoryButton , SIGNAL(clicked()) ,
_lineCountBox , SLOT(selectAll()));
QLabel* lineCountLabel = new QLabel(i18n("lines"), this);
QHBoxLayout* lineCountLayout = new QHBoxLayout();
lineCountLayout->addWidget(_fixedHistoryButton);
lineCountLayout->addWidget(_lineCountBox);
lineCountLayout->addWidget(lineCountLabel);
QLabel* warningLabel = new QLabel(i18n("<center>The adjustment is only temporary</center>"), this);
warningLabel->setStyleSheet("text-align:center; font-weight:normal; color:palette(dark)");
......
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