import QtQuick 2.0 import QtQuick.Controls 1.4 import QtQuick.Layouts 1.3 import QtGraphicalEffects 1.0 import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.components 2.0 as PlasmaComponents import org.kde.plasma.plasmoid 2.0 import org.kde.latte 0.1 as Latte PlasmaComponents.Page{ width: dialog.width - 2*dialog.windowSpace Column{ spacing: 1.5*theme.defaultFont.pointSize width: parent.width Column{ width:parent.width spacing: 0.8*theme.defaultFont.pointSize Header{ text: i18n("Location") } Flow{ width: parent.width spacing: 2 property bool inStartup: true property int dockLocation: dock.location onDockLocationChanged: updateDockLocationVisual(); Component.onCompleted: { lockReservedEdges(); updateDockLocationVisual(); inStartup = false; } function lockReservedEdges() { var edges = dock.freeEdges(); firstLocation.enabled = false; secondLocation.enabled = false; thirdLocation.enabled = false; fourthLocation.enabled = false; for (var i=0; i