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 PlasmaCore.FrameSvgItem { imagePath: "dialogs/background" width: Math.max(420,noneShadow.width + lockedAppletsShadow.width + allAppletsShadow.width) height: mainColumn.height+10 property bool panelIsVertical: plasmoid.formFactor === PlasmaCore.Types.Vertical signal updateThickness(); Column{ id:mainColumn anchors.horizontalCenter: parent.horizontalCenter spacing: 1.5*theme.defaultFont.pointSize width: parent.width - 10 //////////// Location //////////////// Column{ width:parent.width spacing: 0.8*theme.defaultFont.pointSize PlasmaComponents.Label{ text: i18n("Location") font.pointSize: 1.5 * theme.defaultFont.pointSize } 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