Commit ed68e92c authored by Aleksi Suomalainen's avatar Aleksi Suomalainen

[statusbar] Introduce Layouts module to dynamically contain the statusbar items.

parent f5bb4ef5
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
** **
****************************************************************************************/ ****************************************************************************************/
import QtQuick 2.1 import QtQuick 2.1
import QtQuick.Layouts 1.0
import QtQuick.Controls.Nemo 1.0 import QtQuick.Controls.Nemo 1.0
import QtQuick.Controls.Styles.Nemo 1.0 import QtQuick.Controls.Styles.Nemo 1.0
import org.freedesktop.contextkit 1.0 import org.freedesktop.contextkit 1.0
...@@ -109,7 +110,8 @@ Item { ...@@ -109,7 +110,8 @@ Item {
visible: false visible: false
} }
Row { RowLayout {
anchors.fill: statusbar
spacing: 16 spacing: 16
StatusbarItem { StatusbarItem {
source: (cellularSignalBars.value > 0) ? "image://theme/icon_cell" + cellularSignalBars.value : "image://theme/icon_cell1" source: (cellularSignalBars.value > 0) ? "image://theme/icon_cell" + cellularSignalBars.value : "image://theme/icon_cell1"
...@@ -175,8 +177,6 @@ Item { ...@@ -175,8 +177,6 @@ Item {
source: "image://theme/icon_play_pause" source: "image://theme/icon_play_pause"
} }
StatusbarItem { StatusbarItem {
width: 30
height: 48
Label { Label {
id: hours id: hours
width: 16 width: 16
......
import QtQuick 2.0 import QtQuick 2.0
import QtQuick.Layouts 1.0
Item { Item {
height: 48
width: 48
property alias source: icon.source property alias source: icon.source
property string panel_source property string panel_source
property Component panel property Component panel
Layout.fillWidth: true
Layout.fillHeight: true
Image { Image {
id: icon id: icon
anchors.centerIn: parent anchors.centerIn: parent
......
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