feat: auto long image mode

This commit is contained in:
2025-07-26 15:33:02 +08:00
parent f0ed9d0ca1
commit f8d3dcc899
8 changed files with 136 additions and 8 deletions

View File

@ -65,6 +65,11 @@ bool Settings::loopGallery() const
return m_qsettings->value("loop_gallery", true).toBool();
}
bool Settings::autoLongImageMode() const
{
return m_qsettings->value("auto_long_image_mode", true).toBool();
}
Settings::DoubleClickBehavior Settings::doubleClickBehavior() const
{
QString result = m_qsettings->value("double_click_behavior", "Close").toString();
@ -117,6 +122,12 @@ void Settings::setLoopGallery(bool on)
m_qsettings->sync();
}
void Settings::setAutoLongImageMode(bool on)
{
m_qsettings->setValue("auto_long_image_mode", on);
m_qsettings->sync();
}
void Settings::setDoubleClickBehavior(DoubleClickBehavior dcb)
{
m_qsettings->setValue("double_click_behavior", QEnumHelper::toString(dcb));