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 }