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

layout row fix

parent a7d3c9c2
...@@ -23,12 +23,11 @@ import QtQuick.Layouts 1.2 ...@@ -23,12 +23,11 @@ import QtQuick.Layouts 1.2
import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 2.0 as PlasmaComponents import org.kde.plasma.components 2.0 as PlasmaComponents
import org.kde.plasma.networkmanagement 0.2 as PlasmaNM 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 { Kirigami.SwipeListItem {
id: listitem id: listitem
width: parent.width
height: units.gridUnit * 3 height: units.gridUnit * 3
enabled: true enabled: true
backgroundColor: theme.backgroundColor backgroundColor: theme.backgroundColor
...@@ -45,16 +44,17 @@ Kirigami.SwipeListItem { ...@@ -45,16 +44,17 @@ Kirigami.SwipeListItem {
Item { Item {
height: connectionSvgIcon.height height: parent.height
width: parent.width width: parent.width
anchors.centerIn: parent anchors.fill: parent
PlasmaCore.SvgItem { PlasmaCore.SvgItem {
id: connectionSvgIcon id: connectionSvgIcon
anchors { anchors {
left: parent.left left: parent.left
rightMargin: 10 leftMargin: units.gridUnit
verticalCenter: parent.verticalCenter
} }
height: units.iconSizes.big; height: units.iconSizes.big;
width: height width: height
...@@ -100,6 +100,7 @@ Kirigami.SwipeListItem { ...@@ -100,6 +100,7 @@ Kirigami.SwipeListItem {
id: connectionPasswordField id: connectionPasswordField
anchors.left: connectionNameLabel.left anchors.left: connectionNameLabel.left
anchors.verticalCenter: parent.verticalCenter
height: units.gridUnit * 1.5 height: units.gridUnit * 1.5
visible: false visible: false
...@@ -109,6 +110,7 @@ Kirigami.SwipeListItem { ...@@ -109,6 +110,7 @@ Kirigami.SwipeListItem {
PasswordField{ PasswordField{
id: connectionPasswordFieldField id: connectionPasswordFieldField
securityType: SecurityType
height: parent.height height: parent.height
} }
......
...@@ -25,7 +25,7 @@ import org.kde.plasma.extras 2.0 as PlasmaExtras ...@@ -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.plasma.networkmanagement 0.2 as PlasmaNM
import org.kde.kirigami 2.2 as Kirigami import org.kde.kirigami 2.2 as Kirigami
Item { Kirigami.Page {
id: main id: main
objectName: "wifiMain" objectName: "wifiMain"
width: units.gridUnit * 30 width: units.gridUnit * 30
...@@ -83,7 +83,6 @@ Item { ...@@ -83,7 +83,6 @@ Item {
Rectangle { Rectangle {
id: separator id: separator
anchors.top: layoutrow.bottom anchors.top: layoutrow.bottom
anchors.topMargin: 10
width: parent.width width: parent.width
height: units.gridUnit / 8 height: units.gridUnit / 8
border.color: "grey" border.color: "grey"
...@@ -94,18 +93,18 @@ Item { ...@@ -94,18 +93,18 @@ Item {
anchors { anchors {
left: parent.left left: parent.left
top: separator.bottom top: separator.bottom
bottomMargin: 10 topMargin: units.gridUnit
} }
text: i18n("Available wifi networks") text: i18n("Available wifi networks")
font.bold: true font.bold: true
Layout.fillWidth: true Layout.fillWidth: true
} }
PlasmaExtras.ScrollArea { Kirigami.ScrollablePage {
id: wifiarea id: wifiarea
anchors { anchors {
top: label.bottom top: label.bottom
bottomMargin: units.gridUnit*2 bottomMargin: units.gridUnit * 2
bottom: parent.bottom bottom: parent.bottom
left: parent.left left: parent.left
right: parent.right 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