From 7e9c20c949d7e2f64ea71ced72a8cc3199d0b4df Mon Sep 17 00:00:00 2001 From: M G Berberich Date: Thu, 19 Mar 2020 22:18:40 +0100 Subject: [PATCH] Gui: [skip ci] added thumbnail size to UI Added a spinbox for the thumbnail-size to the document preference. --- src/Gui/DlgSettingsDocument.ui | 93 +++++++++++++++++++++++------- src/Gui/DlgSettingsDocumentImp.cpp | 2 + 2 files changed, 75 insertions(+), 20 deletions(-) diff --git a/src/Gui/DlgSettingsDocument.ui b/src/Gui/DlgSettingsDocument.ui index aec7ef61d5..4c232526bf 100644 --- a/src/Gui/DlgSettingsDocument.ui +++ b/src/Gui/DlgSettingsDocument.ui @@ -356,7 +356,79 @@ automatically run a file recovery when it is started. + + + + 5 + + + 6 + + + + + Size of thumbnail + + + + + + + Qt::Horizontal + + + QSizePolicy::Maximum + + + + 91 + 20 + + + + + + + + Sets the size of the thumbnail that is stored in the document. +Common sizes are 128, 256 and 512 + + + 64 + + + 512 + + + ThumbnailSize + + + Document + + + + + + + + The program logo will be added to the thumbnail + + + Add the program logo to the generated thumbnail + + + true + + + AddThumbnailLogo + + + Document + + + + 6 @@ -423,7 +495,7 @@ automatically run a file recovery when it is started. - + 6 @@ -479,25 +551,6 @@ get date suffix according to the specified format - - - - The program logo will be added to the thumbnail - - - Add the program logo to the generated thumbnail - - - true - - - AddThumbnailLogo - - - Document - - - diff --git a/src/Gui/DlgSettingsDocumentImp.cpp b/src/Gui/DlgSettingsDocumentImp.cpp index 4a463f8df4..2a5fe4a4fc 100644 --- a/src/Gui/DlgSettingsDocumentImp.cpp +++ b/src/Gui/DlgSettingsDocumentImp.cpp @@ -77,6 +77,7 @@ void DlgSettingsDocumentImp::saveSettings() ui->prefSaveTransaction->onSave(); ui->prefDiscardTransaction->onSave(); ui->prefSaveThumbnail->onSave(); + ui->prefThumbnailSize->onSave(); ui->prefAddLogo->onSave(); ui->prefSaveBackupFiles->onSave(); ui->prefCountBackupFiles->onSave(); @@ -110,6 +111,7 @@ void DlgSettingsDocumentImp::loadSettings() ui->prefSaveTransaction->onRestore(); ui->prefDiscardTransaction->onRestore(); ui->prefSaveThumbnail->onRestore(); + ui->prefThumbnailSize->onRestore(); ui->prefAddLogo->onRestore(); ui->prefSaveBackupFiles->onRestore(); ui->prefCountBackupFiles->onRestore();