~ubuntu-branches/ubuntu/vivid/qtcreator-plugin-ubuntu/vivid

« back to all changes in this revision

Viewing changes to share/qtcreator/ubuntu/qml/Components/ScrollableView.qml

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Benjamin Zeller
  • Date: 2015-01-30 06:05:59 UTC
  • mfrom: (1.1.81)
  • Revision ID: package-import@ubuntu.com-20150130060559-1kirdtmm6bl6eb26
Tags: 3.1.1+15.04.20150130-0ubuntu1
[ Benjamin Zeller ]
Refactoring of the publish Tab

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2013 Canonical Ltd.
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or modify
 
5
 * it under the terms of the GNU Lesser General Public License as published by
 
6
 * the Free Software Foundation; version 3.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful,
 
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
 * GNU Lesser General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU Lesser General Public License
 
14
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
 */
 
16
 
 
17
import QtQuick 2.0
 
18
import Ubuntu.Components 1.0
 
19
 
 
20
Item {
 
21
    id: template
 
22
 
 
23
    width: units.gu(40)
 
24
    height: units.gu(75)
 
25
 
 
26
    default property alias content: layout.children
 
27
    property alias spacing: layout.spacing
 
28
    property Item tools: null
 
29
    property Flickable flickable: flickable
 
30
 
 
31
    Flickable {
 
32
        id: flickable
 
33
        objectName: "TemplateFlickable"
 
34
        anchors.fill: parent
 
35
        anchors.topMargin: units.gu(2)
 
36
        anchors.bottomMargin: units.gu(2)
 
37
        contentHeight: layout.height
 
38
        interactive: contentHeight > height
 
39
 
 
40
        Column {
 
41
            id: layout
 
42
            spacing: units.gu(6)
 
43
            anchors.left: parent.left
 
44
            anchors.right: parent.right
 
45
            anchors.margins: units.gu(2)
 
46
        }
 
47
    }
 
48
 
 
49
    Scrollbar {
 
50
        id: sb
 
51
        objectName: "TemplateScrollbar"
 
52
        flickableItem: flickable
 
53
        property alias interactive: sb.__interactive
 
54
    }
 
55
}