diff options
Diffstat (limited to 'Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene')
5 files changed, 0 insertions, 145 deletions
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/Cell.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/Cell.qml deleted file mode 100644 index 998a49242..000000000 --- a/Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/Cell.qml +++ /dev/null @@ -1,20 +0,0 @@ -import QtQuick 2.0 - -Item { - id: container - property alias cellColor: rectangle.color - signal clicked(color cellColor) - - width: 40; height: 25 - - Rectangle { - id: rectangle - border.color: "white" - anchors.fill: parent - } - - MouseArea { - anchors.fill: parent - onClicked: container.clicked(container.cellColor) - } -} diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/qmlscene.go b/Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/qmlscene.go deleted file mode 100644 index 6124ac568..000000000 --- a/Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/qmlscene.go +++ /dev/null @@ -1,33 +0,0 @@ -package main - -import ( - "fmt" - "gopkg.in/qml.v1" - "os" -) - -func main() { - if len(os.Args) != 2 { - fmt.Fprintf(os.Stderr, "usage: %s <qml file>\n", os.Args[0]) - os.Exit(1) - } - if err := qml.Run(run); err != nil { - fmt.Fprintf(os.Stderr, "error: %v\n", err) - os.Exit(1) - } -} - -func run() error { - engine := qml.NewEngine() - - engine.On("quit", func() { os.Exit(0) }) - - component, err := engine.LoadFile(os.Args[1]) - if err != nil { - return err - } - window := component.CreateWindow(nil) - window.Show() - window.Wait() - return nil -} diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/tutorial1.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/tutorial1.qml deleted file mode 100644 index e42216e6a..000000000 --- a/Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/tutorial1.qml +++ /dev/null @@ -1,17 +0,0 @@ -// See http://qt-project.org/doc/qt-5.1/qtquick/qml-tutorial1.html - -import QtQuick 2.0 - -Rectangle { - id: page - width: 320; height: 480 - color: "lightgray" - - Text { - id: helloText - text: "Hello world!" - y: 30 - anchors.horizontalCenter: page.horizontalCenter - font.pointSize: 24; font.bold: true - } -} diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/tutorial2.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/tutorial2.qml deleted file mode 100644 index aa64bc1aa..000000000 --- a/Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/tutorial2.qml +++ /dev/null @@ -1,30 +0,0 @@ -// See http://qt-project.org/doc/qt-5.1/qtquick/qml-tutorial2.html - -import QtQuick 2.0 - -Rectangle { - id: page - width: 320; height: 480 - color: "lightgray" - - Text { - id: helloText - text: "Hello world!" - y: 30 - anchors.horizontalCenter: page.horizontalCenter - font.pointSize: 24; font.bold: true - } - - Grid { - id: colorPicker - x: 4; anchors.bottom: page.bottom; anchors.bottomMargin: 4 - rows: 2; columns: 3; spacing: 3 - - Cell { cellColor: "red"; onClicked: helloText.color = cellColor } - Cell { cellColor: "green"; onClicked: helloText.color = cellColor } - Cell { cellColor: "blue"; onClicked: helloText.color = cellColor } - Cell { cellColor: "yellow"; onClicked: helloText.color = cellColor } - Cell { cellColor: "steelblue"; onClicked: helloText.color = cellColor } - Cell { cellColor: "black"; onClicked: helloText.color = cellColor } - } -} diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/tutorial3.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/tutorial3.qml deleted file mode 100644 index e5eabab10..000000000 --- a/Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/tutorial3.qml +++ /dev/null @@ -1,45 +0,0 @@ -// See http://qt-project.org/doc/qt-5.1/qtquick/qml-tutorial3.html - -import QtQuick 2.0 - -Rectangle { - id: page - width: 320; height: 480 - color: "lightgray" - - Text { - id: helloText - text: "Hello world!" - y: 30 - anchors.horizontalCenter: page.horizontalCenter - font.pointSize: 24; font.bold: true - - MouseArea { id: mouseArea; anchors.fill: parent } - - states: State { - name: "down"; when: mouseArea.pressed == true - PropertyChanges { target: helloText; y: 160; rotation: 180; color: "red" } - } - - transitions: Transition { - from: ""; to: "down"; reversible: true - ParallelAnimation { - NumberAnimation { properties: "y,rotation"; duration: 500; easing.type: Easing.InOutQuad } - ColorAnimation { duration: 500 } - } - } - } - - Grid { - id: colorPicker - x: 4; anchors.bottom: page.bottom; anchors.bottomMargin: 4 - rows: 2; columns: 3; spacing: 3 - - Cell { cellColor: "red"; onClicked: helloText.color = cellColor } - Cell { cellColor: "green"; onClicked: helloText.color = cellColor } - Cell { cellColor: "blue"; onClicked: helloText.color = cellColor } - Cell { cellColor: "yellow"; onClicked: helloText.color = cellColor } - Cell { cellColor: "steelblue"; onClicked: helloText.color = cellColor } - Cell { cellColor: "black"; onClicked: helloText.color = cellColor } - } -} |