From 5c48332b0e321ddbb7aca570b73f0e2a94aee57c Mon Sep 17 00:00:00 2001 From: Jakub Date: Tue, 27 Oct 2020 10:12:04 +0100 Subject: [PATCH] change rectangle to column in global settings GODT-677 --- Changelog.md | 1 + .../qml/ImportExportUI/DialogImport.qml | 132 ++++++++---------- 2 files changed, 63 insertions(+), 70 deletions(-) diff --git a/Changelog.md b/Changelog.md index f875dfd3..2ec68d4f 100644 --- a/Changelog.md +++ b/Changelog.md @@ -9,6 +9,7 @@ Changelog [format](http://keepachangelog.com/en/1.0.0/) * GODT-834 Info about tags in BUILDS.md and link to Import-Export page in README.md. ### Fixed +* GODT-677 Windows IE: global import settings not fit in window * GODT-749 Don't force PGP/Inline when sending plaintext messages. * GODT-764 Fix deadlock in integration tests for Import-Export. * GODT-662 Do not resume paused transfer progress after dismissing cancel popup. diff --git a/internal/frontend/qml/ImportExportUI/DialogImport.qml b/internal/frontend/qml/ImportExportUI/DialogImport.qml index 7910db9d..170aed3a 100644 --- a/internal/frontend/qml/ImportExportUI/DialogImport.qml +++ b/internal/frontend/qml/ImportExportUI/DialogImport.qml @@ -279,9 +279,8 @@ Dialog { titleTo : root.address } - Rectangle { + Column { id: masterImportSettings - height: 150 // fixme anchors { right : parent.right left : parent.left @@ -291,45 +290,47 @@ Dialog { rightMargin : Style.main.leftMargin bottomMargin : Style.main.bottomMargin } - color: Style.dialog.background - Text { - id: labelMasterImportSettings - text: qsTr("Master import settings:") + spacing: Style.main.bottomMargin - font { - bold: true - family: Style.fontawesome.name - pointSize: Style.main.fontSize * Style.pt - } - color: Style.main.text + Row { + spacing: masterImportSettings.width - labelMasterImportSettings.width - resetSourceButton.width - InfoToolTip { - info: qsTr( - "If master import date range is selected only emails within this range will be imported, unless it is specified differently in folder date range.", - "Text in master import settings tooltip." - ) - anchors { - left: parent.right - bottom: parent.bottom - leftMargin : Style.dialog.leftMargin + Text { + id: labelMasterImportSettings + text: qsTr("Master import settings:") + + font { + bold: true + family: Style.fontawesome.name + pointSize: Style.main.fontSize * Style.pt + } + color: Style.main.text + + InfoToolTip { + anchors { + left: parent.right + bottom: parent.bottom + leftMargin : Style.dialog.leftMargin + } + info: qsTr( + "If master import date range is selected only emails within this range will be imported, unless it is specified differently in folder date range.", + "Text in master import settings tooltip." + ) } } - } - // Reset all to default - ClickIconText { - anchors { - right: parent.right - bottom: labelMasterImportSettings.bottom - } - text:qsTr("Reset all settings to default") - iconText: Style.fa.refresh - textColor: Style.main.textBlue - onClicked: { - go.resetSource() - root.decrementCurrentIndex() - timer.start() + // Reset all to default + ClickIconText { + id: resetSourceButton + text:qsTr("Reset all settings to default") + iconText: Style.fa.refresh + textColor: Style.main.textBlue + onClicked: { + go.resetSource() + root.decrementCurrentIndex() + timer.start() + } } } @@ -348,49 +349,40 @@ Dialog { InlineDateRange { id: globalDateRange - anchors { - left : parent.left - top : line.bottom - topMargin : Style.dialog.topMargin - } } // Add global label (inline) InlineLabelSelect { id: globalLabels - anchors { - left : parent.left - top : globalDateRange.bottom - topMargin : Style.dialog.topMargin - } - //labelWidth : globalDateRange.labelWidth + } + } + + // Buttons + Row { + spacing: Style.dialog.spacing + anchors { + right: parent.right + bottom: parent.bottom + rightMargin: Style.main.leftMargin + bottomMargin: Style.main.bottomMargin } - // Buttons - Row { - spacing: Style.dialog.spacing - anchors{ - bottom : parent.bottom - right : parent.right - } + ButtonRounded { + id: buttonCancelThree + fa_icon : Style.fa.times + text : qsTr("Cancel", "todo") + color_main : Style.dialog.textBlue + onClicked : root.cancel() + } - ButtonRounded { - id: buttonCancelThree - fa_icon : Style.fa.times - text : qsTr("Cancel", "todo") - color_main : Style.dialog.textBlue - onClicked : root.cancel() - } - - ButtonRounded { - id: buttonNextThree - fa_icon : Style.fa.check - text : qsTr("Import", "todo") - color_main : Style.dialog.background - color_minor : Style.dialog.textBlue - isOpaque : true - onClicked : root.okay() - } + ButtonRounded { + id: buttonNextThree + fa_icon : Style.fa.check + text : qsTr("Import", "todo") + color_main : Style.dialog.background + color_minor : Style.dialog.textBlue + isOpaque : true + onClicked : root.okay() } } }