Ubuntu Pastebin

Paste from DanChapman at Thu, 18 Jun 2015 10:43:38 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import QtQuick 2.4
import Ubuntu.Components 1.2

MainView {
    objectName: "mainView"
    id: mainView

    applicationName: "testPanelOverlay.dpniel"

    width: units.gu(50)
    height: units.gu(75)

    Component {
        id: sidePanel
        Panel {
            id: panel
            anchors {
                left: parent.left
                bottom: parent.bottom
            }
            width: parent.width / 2
            height: mainView.height
            align: Qt.AlignLeft

            Rectangle {
                anchors.fill: parent
                color: "white"
            }
        }
    }

    Page {
        title: i18n.tr("Panel Overlay Header")

        Component.onCompleted: {
            var p = sidePanel.createObject(mainView);
        }
    }
}
Download as text