From d6275f4f6f0a15e67fdf1d5d88d8c311b580612a Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Thu, 11 Jan 2018 14:12:28 +0500 Subject: [PATCH] UI: Refactor H/VSeparator controls. --- src/ui/qml/controls/HSeparator.qml | 7 ++++--- src/ui/qml/controls/VSeparator.qml | 9 +++------ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/ui/qml/controls/HSeparator.qml b/src/ui/qml/controls/HSeparator.qml index 0984df7e..27adcbe5 100644 --- a/src/ui/qml/controls/HSeparator.qml +++ b/src/ui/qml/controls/HSeparator.qml @@ -3,9 +3,10 @@ import QtQuick.Controls 2.2 import QtQuick.Layouts 1.3 Rectangle { - Layout.fillWidth: true - Layout.maximumWidth: parent.implicitWidth - Layout.preferredHeight: 1 + width: parent.width + height: 1 + Layout.preferredWidth: width + Layout.preferredHeight: height color: palette.mid } diff --git a/src/ui/qml/controls/VSeparator.qml b/src/ui/qml/controls/VSeparator.qml index af0b8a71..30920e9a 100644 --- a/src/ui/qml/controls/VSeparator.qml +++ b/src/ui/qml/controls/VSeparator.qml @@ -2,10 +2,7 @@ import QtQuick 2.9 import QtQuick.Controls 2.2 import QtQuick.Layouts 1.3 -Rectangle { - Layout.preferredWidth: 1 - Layout.fillHeight: true - Layout.maximumHeight: parent.implicitHeight - - color: palette.mid +HSeparator { + width: 1 + height: parent.height }