Different policy for scrolling to reveal tree item for different ways of opening a document
This commit is contained in:
+1
-1
@@ -120,7 +120,7 @@ class GuiDocMerge(QDialog):
|
||||
self.theParent.treeView.revealTreeItem(nHandle)
|
||||
theDoc.openDocument(nHandle, False)
|
||||
theDoc.saveDocument(theText)
|
||||
self.theParent.openDocument(nHandle)
|
||||
self.theParent.openDocument(nHandle, doScroll=True)
|
||||
|
||||
self.close()
|
||||
|
||||
|
||||
+1
-1
@@ -196,7 +196,7 @@ class GuiOutline(QTreeWidget):
|
||||
except:
|
||||
tLine = 1
|
||||
logger.verbose("User selected entry with handle %s on line %s" % (tHandle, tLine))
|
||||
self.theParent.openDocument(tHandle, tLine - 1)
|
||||
self.theParent.openDocument(tHandle, tLine=tLine-1, doScroll=True)
|
||||
return
|
||||
|
||||
def _itemSelected(self):
|
||||
|
||||
+1
-1
@@ -929,7 +929,7 @@ class GuiProjectTreeMenu(QMenu):
|
||||
"""Forward the open document call to the main GUI window.
|
||||
"""
|
||||
if self.theItem is not None:
|
||||
self.theTree.theParent.openDocument(self.theItem.itemHandle)
|
||||
self.theTree.theParent.openDocument(self.theItem.itemHandle, doScroll=False)
|
||||
return
|
||||
|
||||
def _doViewItem(self):
|
||||
|
||||
Reference in New Issue
Block a user