feat: add an option to show/hide navigator view
This commit is contained in:
@@ -42,6 +42,11 @@ namespace QEnumHelper
|
||||
}
|
||||
}
|
||||
|
||||
bool Settings::showNavigatorView() const
|
||||
{
|
||||
return m_qsettings->value("show_navigator_view", true).toBool();
|
||||
}
|
||||
|
||||
bool Settings::useLightCheckerboard() const
|
||||
{
|
||||
return m_qsettings->value("use_light_checkerboard", false).toBool();
|
||||
@@ -83,6 +88,12 @@ Qt::HighDpiScaleFactorRoundingPolicy Settings::hiDpiScaleFactorBehavior() const
|
||||
return QEnumHelper::fromString<Qt::HighDpiScaleFactorRoundingPolicy>(result, Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
|
||||
}
|
||||
|
||||
void Settings::setShowNavigatorView(bool on)
|
||||
{
|
||||
m_qsettings->setValue("show_navigator_view", on);
|
||||
m_qsettings->sync();
|
||||
}
|
||||
|
||||
void Settings::setUseLightCheckerboard(bool light)
|
||||
{
|
||||
m_qsettings->setValue("use_light_checkerboard", light);
|
||||
|
||||
Reference in New Issue
Block a user