mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +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 = 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
|
||||||
|
Loading…
Reference in New Issue
Block a user