~nick-dedekind/unity8/side-stage-redesign-tutorial

« back to all changes in this revision

Viewing changes to qml/Stages/TabletStage.qml

  • Committer: Nick Dedekind
  • Date: 2015-12-14 18:06:18 UTC
  • mfrom: (1998.1.101 unity8)
  • Revision ID: nick.dedekind@canonical.com-20151214180618-men18zbauv1r153m
merged with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
671
671
 
672
672
                    readonly property string appId: model.appId
673
673
                    readonly property bool isDash: appId == "unity8-dash"
674
 
                    readonly property bool canSuspend: model.isTouchApp
675
 
                            && !isExemptFromLifecycle(appId)
 
674
 
 
675
                    Binding {
 
676
                        target: spreadTile.application
 
677
                        property: "exemptFromLifecycle"
 
678
                        value: !model.isTouchApp || isExemptFromLifecycle(model.appId)
 
679
                    }
676
680
 
677
681
                    Binding {
678
682
                        target: spreadTile.application
679
683
                        property: "requestedState"
680
 
                        value: !canSuspend
681
 
                                   || (isDash && root.keepDashRunning)
682
 
                                   || (!root.suspended && (appId == priv.mainStageAppId
683
 
                                                           || appId == priv.sideStageAppId))
 
684
                        value: (isDash && root.keepDashRunning)
 
685
                                   || (!root.suspended && (model.appId == priv.mainStageAppId
 
686
                                                           || model.appId == priv.sideStageAppId))
684
687
                               ? ApplicationInfoInterface.RequestedRunning
685
688
                               : ApplicationInfoInterface.RequestedSuspended
686
689
                    }
699
702
                        enabled: spreadView.closingIndex >= 0
700
703
                        UbuntuNumberAnimation {}
701
704
                    }
702
 
 
703
705
                    Connections {
704
706
                        target: priv
705
707
                        onSideStageEnabledChanged: refreshStage()