Pin antialiasing option (#1997)

* adds a config option to toggle antialiasing for the pin zoom

* fix C++ scope error thanks for @veracioux

* set the default value of antialiasing of pin tool to be true

* fix the clang-format
This commit is contained in:
Mehrad Mahmoudian
2021-10-22 20:36:21 +03:00
committed by GitHub
parent 988dcab9de
commit 08e532f787
6 changed files with 34 additions and 2 deletions

View File

@@ -87,6 +87,7 @@ static QMap<class QString, QSharedPointer<ValueHandler>>
OPTION("showStartupLaunchMessage" ,Bool ( true )),
OPTION("copyAndCloseAfterUpload" ,Bool ( true )),
OPTION("copyPathAfterSave" ,Bool ( false )),
OPTION("antialiasingPinZoom" ,Bool ( true )),
#if !defined(Q_OS_MACOS)
OPTION("useJpgForClipboard" ,Bool ( false )),
#endif

View File

@@ -88,6 +88,7 @@ public:
CONFIG_GETTER_SETTER(uploadHistoryMax, setUploadHistoryMax, int)
CONFIG_GETTER_SETTER(saveAfterCopy, setSaveAfterCopy, bool)
CONFIG_GETTER_SETTER(copyPathAfterSave, setCopyPathAfterSave, bool)
CONFIG_GETTER_SETTER(antialiasingPinZoom, setAntialiasingPinZoom, bool)
CONFIG_GETTER_SETTER(useJpgForClipboard, setUseJpgForClipboard, bool)
CONFIG_GETTER_SETTER(ignoreUpdateToVersion,
setIgnoreUpdateToVersion,