()
| 18 | } |
| 19 | |
| 20 | func run() error { |
| 21 | engine := qml.NewEngine() |
| 22 | |
| 23 | engine.On("quit", func() { os.Exit(0) }) |
| 24 | |
| 25 | component, err := engine.LoadFile(os.Args[1]) |
| 26 | if err != nil { |
| 27 | return err |
| 28 | } |
| 29 | window := component.CreateWindow(nil) |
| 30 | window.Show() |
| 31 | window.Wait() |
| 32 | return nil |
| 33 | } |
nothing calls this directly
no test coverage detected