mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 00:48:38 +00:00
examples/mdoutliner: update for new signal arguments
This commit is contained in:
parent
41d390a4ef
commit
4e7c20ac81
@ -100,8 +100,8 @@ func NewAppWindow() *AppWindow {
|
||||
|
||||
ret.tabs = qt.NewQTabWidget2(ret.w.QWidget)
|
||||
ret.tabs.SetTabsClosable(true)
|
||||
ret.tabs.OnTabCloseRequested(func() {
|
||||
ret.handleTabClose(ret.tabs.CurrentIndex()) // FIXME need to get this from the signal
|
||||
ret.tabs.OnTabCloseRequested(func(index int) {
|
||||
ret.handleTabClose(index)
|
||||
})
|
||||
|
||||
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()
|
||||
if itm == nil {
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user