mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Merge pull request #8565 from Pokechu22/log-scroll-bar
Always display the horizontal scroll bar when log word wrap is off
This commit is contained in:
@ -184,6 +184,8 @@ void LogWidget::LoadSettings()
|
|||||||
m_log_wrap->setChecked(settings.value(QStringLiteral("logging/wraplines")).toBool());
|
m_log_wrap->setChecked(settings.value(QStringLiteral("logging/wraplines")).toBool());
|
||||||
m_log_text->setLineWrapMode(m_log_wrap->isChecked() ? QPlainTextEdit::WidgetWidth :
|
m_log_text->setLineWrapMode(m_log_wrap->isChecked() ? QPlainTextEdit::WidgetWidth :
|
||||||
QPlainTextEdit::NoWrap);
|
QPlainTextEdit::NoWrap);
|
||||||
|
m_log_text->setHorizontalScrollBarPolicy(m_log_wrap->isChecked() ? Qt::ScrollBarAsNeeded :
|
||||||
|
Qt::ScrollBarAlwaysOn);
|
||||||
|
|
||||||
// Log - Font Selection
|
// Log - Font Selection
|
||||||
// Currently "Debugger Font" is not supported as there is no Qt Debugger, defaulting to Monospace
|
// Currently "Debugger Font" is not supported as there is no Qt Debugger, defaulting to Monospace
|
||||||
@ -202,6 +204,8 @@ void LogWidget::SaveSettings()
|
|||||||
settings.setValue(QStringLiteral("logging/wraplines"), m_log_wrap->isChecked());
|
settings.setValue(QStringLiteral("logging/wraplines"), m_log_wrap->isChecked());
|
||||||
m_log_text->setLineWrapMode(m_log_wrap->isChecked() ? QPlainTextEdit::WidgetWidth :
|
m_log_text->setLineWrapMode(m_log_wrap->isChecked() ? QPlainTextEdit::WidgetWidth :
|
||||||
QPlainTextEdit::NoWrap);
|
QPlainTextEdit::NoWrap);
|
||||||
|
m_log_text->setHorizontalScrollBarPolicy(m_log_wrap->isChecked() ? Qt::ScrollBarAsNeeded :
|
||||||
|
Qt::ScrollBarAlwaysOn);
|
||||||
|
|
||||||
// Log - Font Selection
|
// Log - Font Selection
|
||||||
settings.setValue(QStringLiteral("logging/font"), m_log_font->currentIndex());
|
settings.setValue(QStringLiteral("logging/font"), m_log_font->currentIndex());
|
||||||
|
Reference in New Issue
Block a user