From 3d7090bdbaaaa8706f4bb7bae10de237743f1fc7 Mon Sep 17 00:00:00 2001 From: Sander Ferdinand Date: Sun, 5 Aug 2018 19:36:17 +0200 Subject: [PATCH] Fixes a layout bug for SettingsLog.qml --- pages/settings/SettingsLog.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pages/settings/SettingsLog.qml b/pages/settings/SettingsLog.qml index 99ba0b95..099a07f9 100644 --- a/pages/settings/SettingsLog.qml +++ b/pages/settings/SettingsLog.qml @@ -41,6 +41,7 @@ Rectangle { } GridLayout { + id: logGrid columns: appWindow.persistentSettings.logLevel === 5 ? 2 : 1 Layout.fillWidth: true columnSpacing: 32 * scaleRatio @@ -77,6 +78,7 @@ Rectangle { appWindow.persistentSettings.logLevel = currentIndex; } Layout.fillWidth: true + Layout.maximumWidth: logGrid.width / 2 shadowReleasedColor: "#FF4304" shadowPressedColor: "#B32D00" releasedColor: "#363636" @@ -88,9 +90,11 @@ Rectangle { id: logCategories visible: persistentSettings.logLevel === 5 Layout.fillWidth: true + Layout.maximumWidth: logGrid.width / 2 text: appWindow.persistentSettings.logCategories placeholderText: "(e.g. *:WARNING,net.p2p:DEBUG)" placeholderFontSize: 14 * scaleRatio + fontSize: 14 * scaleRatio enabled: logLevelDropdown.currentIndex === 5 onEditingFinished: { if(enabled) { @@ -191,7 +195,7 @@ Rectangle { id: sendCommandText Layout.fillWidth: true fontBold: false - placeholderText: qsTr("command + enter (e.g help)") + translationManager.emptyString + placeholderText: qsTr("command + enter (e.g 'help' or 'status')") + translationManager.emptyString placeholderFontSize: 16 * scaleRatio onAccepted: { if(text.length > 0) {