Browse Source

fix: search for the lowest possible location

283 0.57c
ThomasV 13 years ago
parent
commit
74b994dc03
  1. 7
      lib/gui_qt.py

7
lib/gui_qt.py

@ -97,7 +97,12 @@ class MyTreeWidget(QTreeWidget):
break
else:
return
self.emit(SIGNAL('customContextMenuRequested(const QPoint&)'), QPoint(50, 15 + i*5))
for j in range(0,30):
if self.itemAt(QPoint(0,i*5 + j)) != item:
break
self.emit(SIGNAL('customContextMenuRequested(const QPoint&)'), QPoint(50, i*5 + j - 1))
self.connect(self, SIGNAL('itemActivated(QTreeWidgetItem*, int)'), ddfr)
class StatusBarButton(QPushButton):

Loading…
Cancel
Save