Commit 4b27a019 authored by Martin Kacej's avatar Martin Kacej

layout row fix

parent a7d3c9c2
......@@ -23,12 +23,11 @@ import QtQuick.Layouts 1.2
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 2.0 as PlasmaComponents
import org.kde.plasma.networkmanagement 0.2 as PlasmaNM
import org.kde.kirigami 1.0 as Kirigami
import org.kde.kirigami 2.2 as Kirigami
Kirigami.SwipeListItem {
id: listitem
width: parent.width
height: units.gridUnit * 3
enabled: true
backgroundColor: theme.backgroundColor
......@@ -45,16 +44,17 @@ Kirigami.SwipeListItem {
Item {
height: connectionSvgIcon.height
height: parent.height
width: parent.width
anchors.centerIn: parent
anchors.fill: parent
PlasmaCore.SvgItem {
id: connectionSvgIcon
anchors {
left: parent.left
rightMargin: 10
leftMargin: units.gridUnit
verticalCenter: parent.verticalCenter
}
height: units.iconSizes.big;
width: height
......@@ -100,6 +100,7 @@ Kirigami.SwipeListItem {
id: connectionPasswordField
anchors.left: connectionNameLabel.left
anchors.verticalCenter: parent.verticalCenter
height: units.gridUnit * 1.5
visible: false
......@@ -109,6 +110,7 @@ Kirigami.SwipeListItem {
PasswordField{
id: connectionPasswordFieldField
securityType: SecurityType
height: parent.height
}
......
......@@ -25,7 +25,7 @@ import org.kde.plasma.extras 2.0 as PlasmaExtras
import org.kde.plasma.networkmanagement 0.2 as PlasmaNM
import org.kde.kirigami 2.2 as Kirigami
Item {
Kirigami.Page {
id: main
objectName: "wifiMain"
width: units.gridUnit * 30
......@@ -83,7 +83,6 @@ Item {
Rectangle {
id: separator
anchors.top: layoutrow.bottom
anchors.topMargin: 10
width: parent.width
height: units.gridUnit / 8
border.color: "grey"
......@@ -94,18 +93,18 @@ Item {
anchors {
left: parent.left
top: separator.bottom
bottomMargin: 10
topMargin: units.gridUnit
}
text: i18n("Available wifi networks")
font.bold: true
Layout.fillWidth: true
}
PlasmaExtras.ScrollArea {
Kirigami.ScrollablePage {
id: wifiarea
anchors {
top: label.bottom
bottomMargin: units.gridUnit*2
bottomMargin: units.gridUnit * 2
bottom: parent.bottom
left: parent.left
right: parent.right
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment