on xenial help sign in
Use the the properties margin and fullHeight also in the qmltest.
commit4d8996897aafeaf2c44e99b6cad767337367c15e authorMirco Müller <mirco.mueller@ubuntu.com> dateWed 30 Oct 2013, 12:12 (13 years ago) parent3e6b250
3 files changed+8−3
Notifications/Notifications.qml+3 Shell.qml+2−2 tests/qmltests/Notifications/tst_Notifications.qml+3−1
Notifications/Notifications.qml+3
@@ -24,6 +24,9 @@ ListView {
2424 objectName: "notificationList"
2525 interactive: false
2626
27+ property real margin
28+ property real fullHeight
29+
2730 delegate: Notification {
2831 objectName: "notification" + index
2932 anchors {
Shell.qml+2−2
@@ -688,8 +688,8 @@ FocusScope {
688688 id: notifications
689689
690690 model: NotificationBackend.Model
691− property real margin: units.gu(1)
692− property real fullHeight: parent.height
691+ margin: units.gu(1)
692+ fullHeight: parent.height
693693
694694 anchors {
695695 top: parent.top
tests/qmltests/Notifications/tst_Notifications.qml+3−1
@@ -126,8 +126,10 @@ Row {
126126 Notifications {
127127 id: notifications
128128
129+ margin: units.gu(1)
130+ fullHeight: parent.height
131+
129132 anchors.fill: parent
130− anchors.margins: units.gu(1)
131133 model: mockModel
132134 }
133135 }