Expose the item as well as the source component for the BreezeBlock

This way we can access the items, it can be needed to extract data
from them
wilder-5.14
Aleix Pol 12 years ago
parent 9e7a160ce6
commit 90bf9f6e58
  1. 4
      lookandfeel/contents/components/BreezeBlock.qml
  2. 2
      lookandfeel/contents/components/LogoutScreen.qml
  3. 2
      lookandfeel/contents/lockscreen/LockScreen.qml

@ -25,8 +25,10 @@ import QtQuick.Controls 1.1
import org.kde.plasma.core 2.0 as PlasmaCore
Item {
property alias mainItem: view.sourceComponent
property alias main: view.sourceComponent
property alias controls: controlsLayout.sourceComponent
readonly property alias mainItem: view.item
readonly property alias controlsItem: controlsLayout.item
property bool canShutdown: false
property bool canReboot: false

@ -56,7 +56,7 @@ BreezeBlock {
onTriggered: remainingTime--
}
mainItem: ColumnLayout {
main: ColumnLayout {
spacing: 0
BreezeHeading {
id: actionLabel

@ -62,7 +62,7 @@ Image {
}
initialItem: BreezeBlock {
mainItem: UserSelect {
main: UserSelect {
id: usersSelection
model: ListModel {
id: users

Loading…
Cancel
Save