fix: search for the lowest possible location
This commit is contained in:
@@ -97,7 +97,12 @@ class MyTreeWidget(QTreeWidget):
|
|||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
return
|
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)
|
self.connect(self, SIGNAL('itemActivated(QTreeWidgetItem*, int)'), ddfr)
|
||||||
|
|
||||||
class StatusBarButton(QPushButton):
|
class StatusBarButton(QPushButton):
|
||||||
|
|||||||
Reference in New Issue
Block a user