fix: search for the lowest possible location
This commit is contained in:
parent
4b49b743dc
commit
74b994dc03
|
@ -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…
Reference in New Issue