UI: Refactor H/VSeparator controls.

This commit is contained in:
Nodir Temirkhodjaev 2018-01-11 14:12:28 +05:00
parent bb453b3394
commit d6275f4f6f
2 changed files with 7 additions and 9 deletions

View File

@ -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
}

View File

@ -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
}