~lukas-kde/unity8/dashboard

« back to all changes in this revision

Viewing changes to qml/Launcher/DrawerGridView.qml

  • Committer: Lukáš Tinkl
  • Date: 2017-01-26 12:13:17 UTC
  • mfrom: (2749.1.49 unity8)
  • Revision ID: lukas.tinkl@canonical.com-20170126121317-qms39s9pikclidbe
merge trunk, fix conflicts

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
import QtQuick 2.4
18
18
import "../Components"
19
19
 
20
 
Item {
 
20
FocusScope {
21
21
    id: root
22
22
 
23
23
    property int delegateWidth: units.gu(10)
25
25
    property alias delegate: gridView.delegate
26
26
    property alias model: gridView.model
27
27
    property alias interactive: gridView.interactive
 
28
    property alias currentIndex: gridView.currentIndex
28
29
 
29
30
    property alias header: gridView.header
30
31
    property alias topMargin: gridView.topMargin
37
38
        id: gridView
38
39
        anchors.fill: parent
39
40
        leftMargin: spacing
 
41
        focus: true
40
42
 
41
43
        readonly property int overflow: width - (root.columns * root.delegateWidth)
42
44
        readonly property real spacing: overflow / (root.columns)