~nskaggs/music-app/test-mp-for-jenkins

« back to all changes in this revision

Viewing changes to app/ui/LibraryEmptyState.qml

  • Committer: Tarmac
  • Author(s): vamrocks602 at gmail, nskaggs
  • Date: 2016-01-05 01:38:49 UTC
  • mfrom: (954.1.34 music-app)
  • Revision ID: tarmac-20160105013849-uzx3ar6aobcg3gtx
* Add test to make sure that the LibraryEmptyState page is visible when no music is detected on the device. Fixes: https://bugs.launchpad.net/bugs/1261587.

Approved by Jenkins Bot, Victor Thompson, Andrew Hayzen.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
Page {
24
24
    id: libraryEmptyPage
 
25
    objectName: "emptyLibrary"
25
26
    anchors {
26
27
        fill: parent
27
28
    }
32
33
        locked: true
33
34
    }
34
35
 
 
36
    // Hack for autopilot otherwise LibraryEmptyState appears as Page
 
37
    // due to bug 1341671 it is required that there is a property so that
 
38
    // qml doesn't optimise using the parent type
 
39
    property bool bug1341671workaround: true
 
40
 
35
41
    // Overlay to show when no tracks detected on the device
36
42
    Rectangle {
37
43
        id: libraryEmpty
105
111
 
106
112
            Label {
107
113
                color: styleMusic.libraryEmpty.labelColor
 
114
                objectName: "titleText"
108
115
                elide: Text.ElideRight
109
116
                fontSize: "x-large"
110
117
                horizontalAlignment: Text.AlignLeft
116
123
 
117
124
            Label {
118
125
                color: styleMusic.libraryEmpty.labelColor
 
126
                objectName:"descriptiveText"
119
127
                elide: Text.ElideRight
120
128
                fontSize: "large"
121
129
                horizontalAlignment: Text.AlignLeft