From 7230e313ec77e23b510e6292a1cce9a1405b5d2b Mon Sep 17 00:00:00 2001 From: mappu Date: Sat, 7 Sep 2024 15:31:11 +1200 Subject: [PATCH] examples/mdoutliner: switch triggered1->triggered --- examples/mdoutliner/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/mdoutliner/main.go b/examples/mdoutliner/main.go index 2a2dcdbd..e119729f 100644 --- a/examples/mdoutliner/main.go +++ b/examples/mdoutliner/main.go @@ -71,19 +71,19 @@ func NewAppWindow() *AppWindow { newtab := fileMenu.AddAction("New Tab") newtab.SetShortcut(qt.NewQKeySequence2("Ctrl+N")) newtab.SetIcon(qt.QIcon_FromTheme("document-new")) - newtab.OnTriggered1(func() { + newtab.OnTriggered(func() { ret.createTabWithContents("New Document", "") }) open := fileMenu.AddAction("Open...") open.SetShortcut(qt.NewQKeySequence2("Ctrl+O")) open.SetIcon(qt.QIcon_FromTheme("document-open")) - open.OnTriggered1(ret.handleFileOpen) + open.OnTriggered(ret.handleFileOpen) fileMenu.AddSeparator() exit := fileMenu.AddAction("Exit") exit.SetIcon(qt.QIcon_FromTheme("application-exit")) - exit.OnTriggered1(func() { + exit.OnTriggered(func() { os.Exit(0) }) @@ -91,7 +91,7 @@ func NewAppWindow() *AppWindow { aboutQt := helpMenu.AddAction("About Qt") aboutQt.SetIcon(qt.QIcon_FromTheme("help-about")) aboutQt.SetShortcut(qt.NewQKeySequence2("F1")) - aboutQt.OnTriggered1(func() { + aboutQt.OnTriggered(func() { qt.QApplication_AboutQt() }) ret.w.SetMenuBar(mnu)