~paulliu/unity8/reboot

« back to all changes in this revision

Viewing changes to qml/Dash/Dash.qml

  • Committer: Ying-Chun Liu
  • Date: 2014-07-11 14:34:39 UTC
  • mfrom: (833.1.204 unity8)
  • Revision ID: paul.liu@canonical.com-20140711143439-ae3s9b4r6yals3fr
Merge trunk
[ Michal Hruby ]
* Fix FTBFS when using latest unity-api.
[ Michał Sawicz ]
* Refactor carousel item activation.
* Refactor ScopeItem into GenericScopeView.
* Add initial support for scope customizations.
* Make rating stars in PreviewReviewDisplay.qml non-interactive. (LP:
  #1337508)
[ Nick Dedekind ]
* Added active call hint A hint is displayed in the indicator panel
  when an call is active on the Telephony Serivce
[ Albert Astals ]
* We need to boostrap height also when we have 1 item ^_^ (LP:
  #1337408)
* Add initial support for scope customizations.
* CardCreator: Give a correct implicitHeight if we only have art The
  hasSubtitle change is really unrelated and not needed here, just
  sneaking it in to not create yet another review. (LP: #1330899)
* Fake Scopes Plugin: Register PreviewModelInterface
[ Michael Zanetti ]
* make the launcher's drag'n'drop indicator more prominent (LP:
  #1332042)
* make launcher items live having them non-live is not really required
  and reveals an issue in combination with UbuntuShape (LP: #1302761)
* Fade out launcher in place instead of moving it to the left on long
  left edge swipes. (LP: #1332096)
* update launcher icon glow as requested by design (LP: #1336725)
* update header in dash to use the new header from the SDK (LP:
  #1335491)
* fix testPreview with larger GRID_UNIT_PX values
* clip the corner of pinned icons in the launcher as per new design
* update launcher background according to latest design (LP: #1336314)
* Update Launcher's home button design according to new spec. (LP:
  #1329331)
[ CI bot ]
* make launcher items live having them non-live is not really required
  and reveals an issue in combination with UbuntuShape (LP: #1302761)

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
    visible: shown
28
28
 
29
 
    property ListModel searchHistory: SearchHistoryModel {}
30
 
    property bool searchable: !dashContent.previewOpen && !scopeItem.previewOpen
31
 
 
32
29
    property string showScopeOnLoaded: "clickscope"
33
30
    property real contentScale: 1.0
34
31
 
76
73
        height: parent.height
77
74
        model: filteredScopes
78
75
        scopes: scopes
79
 
        searchHistory: dash.searchHistory
80
76
        visible: x != -width
81
77
        onGotoScope: {
82
78
            dash.setCurrentScope(scopeId, true, false);
105
101
        }
106
102
    }
107
103
 
108
 
    ScopeItem {
 
104
    GenericScopeView {
109
105
        id: scopeItem
110
106
        anchors.left: dashContent.right
111
107
        width: parent.width
112
108
        height: parent.height
113
 
        searchHistory: dash.searchHistory
114
109
        scale: dash.contentScale
115
110
        clip: scale != 1.0
116
111
        visible: scope != null
117
 
        onBack: {
 
112
        hasBackAction: true
 
113
        isCurrent: visible
 
114
        onBackClicked: {
118
115
            closeOverlayScope();
119
 
        }
120
 
        onGotoScope: {
121
 
            // TODO
122
 
            console.log("gotoScope from an openScope scope is not implemented");
123
 
        }
124
 
        onOpenScope: {
125
 
            // TODO
126
 
            console.log("openScope from an openScope scope is not implemented");
 
116
            closePreview();
127
117
        }
128
118
 
 
119
        Connections {
 
120
            target: scopeItem.scope
 
121
            onGotoScope: {
 
122
                dashContent.gotoScope(scopeId);
 
123
            }
 
124
            onOpenScope: {
 
125
                dashContent.openScope(scope);
 
126
            }
 
127
        }
129
128
    }
130
129
}