examples/mdoutliner: update for new signal arguments

This commit is contained in:
mappu 2024-09-15 10:31:00 +12:00
parent 41d390a4ef
commit 4e7c20ac81
1 changed files with 3 additions and 3 deletions

View File

@ -100,8 +100,8 @@ func NewAppWindow() *AppWindow {
ret.tabs = qt.NewQTabWidget2(ret.w.QWidget) ret.tabs = qt.NewQTabWidget2(ret.w.QWidget)
ret.tabs.SetTabsClosable(true) ret.tabs.SetTabsClosable(true)
ret.tabs.OnTabCloseRequested(func() { ret.tabs.OnTabCloseRequested(func(index int) {
ret.handleTabClose(ret.tabs.CurrentIndex()) // FIXME need to get this from the signal ret.handleTabClose(index)
}) })
ret.w.SetCentralWidget(ret.tabs.QWidget) ret.w.SetCentralWidget(ret.tabs.QWidget)
@ -165,7 +165,7 @@ func (t *AppTab) updateOutlineForContent(content string) {
} }
} }
func (t *AppTab) handleJumpToBookmark() { func (t *AppTab) handleJumpToBookmark(current *qt.QListWidgetItem, previous *qt.QListWidgetItem) {
itm := t.outline.CurrentItem() itm := t.outline.CurrentItem()
if itm == nil { if itm == nil {
return return