diff options
Diffstat (limited to 'src-qt5/core/lumina-desktop-unified/src-desktop/src-qml/Panel.qml')
-rw-r--r-- | src-qt5/core/lumina-desktop-unified/src-desktop/src-qml/Panel.qml | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/src-qt5/core/lumina-desktop-unified/src-desktop/src-qml/Panel.qml b/src-qt5/core/lumina-desktop-unified/src-desktop/src-qml/Panel.qml index 48046648..2a8579a8 100644 --- a/src-qt5/core/lumina-desktop-unified/src-desktop/src-qml/Panel.qml +++ b/src-qt5/core/lumina-desktop-unified/src-desktop/src-qml/Panel.qml @@ -27,21 +27,29 @@ Rectangle { GridLayout{ id: layout anchors.fill: parent; - columns: (object.width>object.height) ? -1 : 1 - rows: (object.width>object.height) ? 1 : -1 + columns: parent.object.isVertical ? 1 : -1 + rows: parent.object.isVertical ? -1 : 1 + + //hardcode some plugins for the moment + //PLUGINS.Spacer{} - //hardcode the "status_tray" plugin at the moment PLUGINS.StatusTray{ id: "statustray" - Layout.fillHeight: layout.parent.object.isVertical ? false : true - Layout.fillWidth: layout.parent.object.isVertical ? true : false - + vertical: layout.parent.object.isVertical + //Layout.fillWidth: layout.parent.object.isVertical ? true : false + //Layout.fillHeight: layout.parent.object.isVertical ? false : true } + + //PLUGINS.Spacer{} + PLUGINS.Clock_Digital{ id: "clock" - Layout.fillHeight: layout.parent.object.isVertical ? false : true - Layout.fillWidth: layout.parent.object.isVertical ? true : false + vertical: layout.parent.object.isVertical + //Layout.fillWidth: layout.parent.object.isVertical ? true : false + //Layout.fillHeight: layout.parent.object.isVertical ? false : true } - } + //PLUGINS.Spacer{} + + } //end of grid layout } |