Commit 6e131487 authored by Kurt Hindenburg's avatar Kurt Hindenburg

Add note about using ScrollBack fixed line using RAM

A recent commit upped the limit to 1,000,000 fixed line scrollback.
Add a note mentioning that this type of scrollback is saved to RAM.
parent a0d2900f
......@@ -38,6 +38,15 @@ HistorySizeWidget::HistorySizeWidget(QWidget* parent)
_ui = new Ui::HistorySizeWidget();
_ui->setupUi(this);
_ui->fixedSizeWarningWidget->setVisible(false);
_ui->fixedSizeWarningWidget->setWordWrap(true);
_ui->fixedSizeWarningWidget->setCloseButtonVisible(false);
_ui->fixedSizeWarningWidget->setMessageType(KMessageWidget::Information);
_ui->fixedSizeWarningWidget->setText(i18nc("@info:status",
"When using this option, the scrollback data will be saved "
"to RAM. If you choose a huge value, your system may run out "
"of free RAM and cause serious issues with your system."));
_ui->unlimitedWarningWidget->setVisible(false);
_ui->unlimitedWarningWidget->setWordWrap(true);
_ui->unlimitedWarningWidget->setCloseButtonVisible(false);
......@@ -73,6 +82,7 @@ HistorySizeWidget::~HistorySizeWidget()
void HistorySizeWidget::buttonClicked(QAbstractButton*) const
{
Enum::HistoryModeEnum selectedMode = mode();
_ui->fixedSizeWarningWidget->setVisible(Enum::FixedSizeHistory == selectedMode);
_ui->unlimitedWarningWidget->setVisible(Enum::UnlimitedHistory == selectedMode);
emit historyModeChanged(selectedMode);
}
......@@ -86,6 +96,7 @@ void HistorySizeWidget::setMode(Enum::HistoryModeEnum aMode)
} else if (aMode == Enum::UnlimitedHistory) {
_ui->unlimitedHistoryButton->setChecked(true);
}
_ui->fixedSizeWarningWidget->setVisible(Enum::FixedSizeHistory == aMode);
_ui->unlimitedWarningWidget->setVisible(Enum::UnlimitedHistory == aMode);
}
......
......@@ -82,6 +82,16 @@
</item>
</layout>
</item>
<item>
<widget class="KMessageWidget" name="fixedSizeWarningWidget">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="unlimitedHistoryButton">
<property name="sizePolicy">
......
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