Skip to content

Commit

Permalink
Tentatives to move Navigator tab on top, FLTD-227
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniele Paganelli committed Nov 16, 2016
1 parent 4aca8f9 commit d6555da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion misura/client/acquisition/measureinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ def set_results(self, results):
if i >= 0:
self.removeTab(i)
else:
i = self.count()
i = self.statusView is not False
i += self.thermalCycleView.isVisible()
i += 1
print 'BBBBBBBBBBBBB', i
self.results = results
self.insertTab(i, self.results, _('Navigator'))

Expand Down Expand Up @@ -178,6 +181,7 @@ def show_menu(self, pos):
return
menu = QtGui.QMenu(self)
self.results.navigator.buildContextMenu(node, menu=menu)
self.results.navigator.selectionModel().clear()
self.results.navigator.expand_node_path(node, select=True)
menu.exec_(self.tabBar().mapToGlobal(pos))

Expand Down
1 change: 0 additions & 1 deletion misura/client/navigator/domains.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ def configure(self, node):
configuration_proxy = node.linked.conf
if '/' in path:
configuration_proxy = configuration_proxy.toPath(path)

win = conf.TreePanel(configuration_proxy, select=configuration_proxy)
win.setWindowTitle('Configuration tree from: %s' % configuration_proxy['name'])
win.show()
Expand Down

0 comments on commit d6555da

Please sign in to comment.