aboutsummaryrefslogtreecommitdiffstats
path: root/Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/qmlscene.go
diff options
context:
space:
mode:
Diffstat (limited to 'Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/qmlscene.go')
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/qmlscene.go33
1 files changed, 0 insertions, 33 deletions
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
-}