From f71dc1c30320d793f3508ffdc347b42649d93e2e Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 29 Dec 2024 18:25:07 +1300 Subject: [PATCH] goroutine6: use simpler downcasts --- examples/goroutine6/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/goroutine6/main.go b/examples/goroutine6/main.go index 3f3ecf0b..f5e79b13 100644 --- a/examples/goroutine6/main.go +++ b/examples/goroutine6/main.go @@ -20,7 +20,7 @@ func main() { widget := qt.NewQWidget(window.QWidget) var layout = qt.NewQVBoxLayout2() - widget.SetLayout(layout.QBoxLayout.QLayout) + widget.SetLayout(layout.QLayout) window.SetCentralWidget(widget) labels := make([]*qt.QLabel, threadcount) @@ -45,7 +45,7 @@ func main() { }(i, label) } }) - widget.Layout().AddWidget(button.QAbstractButton.QWidget) + widget.Layout().AddWidget(button.QWidget) window.Show()