From f158e6587357c89f5fd39713bb0eeff390b2f0f2 Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 9 Jan 2020 16:03:28 +0100 Subject: [PATCH] Gui: [skip ci] reduce size of image settings dialog --- src/Gui/DlgSettingsImage.ui | 369 +++++++++++++++----------------- src/Gui/DlgSettingsImageImp.cpp | 4 +- 2 files changed, 169 insertions(+), 204 deletions(-) diff --git a/src/Gui/DlgSettingsImage.ui b/src/Gui/DlgSettingsImage.ui index d47dd263bd..a06837cf41 100644 --- a/src/Gui/DlgSettingsImage.ui +++ b/src/Gui/DlgSettingsImage.ui @@ -6,8 +6,8 @@ 0 0 - 459 - 552 + 291 + 498 @@ -29,122 +29,6 @@ 6 - - - - false - - - Image comment - - - - 9 - - - 9 - - - 9 - - - 9 - - - 6 - - - - - Insert MIBA - - - true - - - - - - - false - - - - - - - Insert comment - - - - - - - Add watermark - - - - - - - - - - Image properties - - - - 9 - - - 9 - - - 9 - - - 9 - - - 6 - - - - - Back&ground: - - - comboBackground - - - - - - - - Current - - - - - White - - - - - Black - - - - - Transparent - - - - - - - @@ -183,57 +67,14 @@ 6 - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - 1 - - - 32767 - - - - - - - 1 - - - 32767 - - - - - + + - Pixel + Standard sizes: - - - - &Width: - - - spinWidth - - - - + @@ -352,46 +193,33 @@ - - + + - Standard sizes: + &Width: + + + spinWidth - - - - Qt::Horizontal + + + + 1 - - - 40 - 20 - + + 32767 - + - - + + Pixel - - - - Qt::Horizontal - - - - 40 - 20 - - - - @@ -402,6 +230,23 @@ + + + + 1 + + + 32767 + + + + + + + Pixel + + + @@ -429,7 +274,7 @@ - + &Screen @@ -439,7 +284,7 @@ - + &4:3 @@ -449,7 +294,7 @@ - + 1&6:9 @@ -459,7 +304,7 @@ - + &1:1 @@ -473,25 +318,144 @@ - - + + - Method + Image properties - + + + 9 + + + 9 + + + 9 + + + 9 + + + 6 + + + + Back&ground: + + + comboBackground + + + + + + + + Current + + + + + White + + + + + Black + + + + + Transparent + + + + + Creation method: - + + + + + false + + + Image comment + + + + 9 + + + 9 + + + 9 + + + 9 + + + 6 + + + + + Insert MIBA + + + true + + + + + + + Insert comment + + + + + + + false + + + + 0 + 0 + + + + + 0 + 70 + + + + + + + + Add watermark + + + + + + @@ -504,6 +468,7 @@ buttonRatio16x9 buttonRatio1x1 comboBackground + comboMethod radioButtonMiba radioButtonComment textEditComment diff --git a/src/Gui/DlgSettingsImageImp.cpp b/src/Gui/DlgSettingsImageImp.cpp index 1e981e9a19..126c4f5f03 100644 --- a/src/Gui/DlgSettingsImageImp.cpp +++ b/src/Gui/DlgSettingsImageImp.cpp @@ -252,10 +252,10 @@ void DlgSettingsImageImp::on_comboMethod_activated(int index) { QByteArray data = ui->comboMethod->itemData(index).toByteArray(); if (data == QByteArray("GrabFramebuffer")) { - ui->groupBoxProp->setEnabled(false); + ui->comboBackground->setEnabled(false); } else { - ui->groupBoxProp->setEnabled(true); + ui->comboBackground->setEnabled(true); } }