~nskaggs/ubuntu-ui-toolkit/add-popover-object-support

« back to all changes in this revision

Viewing changes to modules/Ubuntu/Components/ListItems/Empty.qml

  • Committer: CI bot
  • Author(s): Zsombor Egri, Tarmac, Zoltán Balogh
  • Date: 2014-06-18 17:10:31 UTC
  • mfrom: (1000.76.9 landing_04-06)
  • Revision ID: ps-jenkins@lists.canonical.com-20140618171031-1s026ulaxymh2e9f
  [Leo Arias ]
  * On the autopilot helper for the header, fix the swipe to show
    when hidden.
  * Added a fixture for autopilot tests to use a fake home directory.
    Fixes: https://bugs.launchpad.net/bugs/1317639
  * Cleaned the containers in unity test using the alternate
    launcher.

  [ Christian Dywan ]   
  * Add a launcher with a switch for the QQMLEngine.

  [ Tim Peeters ]
  * Anchor the internal PageTreeNode of PageStack to fill its parent.
    Fixes: https://bugs.launchpad.net/bugs/1322527
 

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
    /*!
106
106
      \preliminary
107
107
      \qmlproperty string swipingState
108
 
      The current swiping state ("SwipingLeft", "SwipingRight", "")
 
108
      The current swiping state ("SwipingRight" or "")
109
109
     */
110
110
    readonly property alias swipingState: backgroundIndicator.state
111
111
 
228
228
            __mouseArea.drag.target = body
229
229
            held = true
230
230
            __mouseArea.drag.maximumX = parent.width
231
 
            __mouseArea.drag.minimumX = (parent.width * -1)
 
231
            __mouseArea.drag.minimumX = 0
232
232
            backgroundIndicator.visible = true
233
233
        }
234
234
 
334
334
            onXChanged: {
335
335
                if (x > 0) {
336
336
                    backgroundIndicator.state = "SwipingRight"
337
 
                } else if (x === 0) {
 
337
                } else {
338
338
                    backgroundIndicator.state = ""
339
 
                } else {
340
 
                    backgroundIndicator.state = "SwipingLeft"
341
339
                }
342
340
            }
343
341
        }
427
425
                        target: confirmRemovalDialog
428
426
                        x: body.x - confirmRemovalDialog.width - units.gu(2)
429
427
                    }
430
 
                },
431
 
                State {
432
 
                    name: "SwipingLeft"
433
 
                    AnchorChanges {
434
 
                        target: backgroundIndicator
435
 
                        anchors.left: body.right
436
 
                        anchors.right: parent.right
437
 
                    }
438
 
 
439
 
                    PropertyChanges {
440
 
                        target: backgroundIndicator
441
 
                        opacity: 1.0
442
 
                    }
443
 
 
444
 
                    PropertyChanges {
445
 
                        target: confirmRemovalDialog
446
 
                        x: units.gu(2)
447
 
                    }
448
428
                }
449
429
            ]
450
430
        }