mirror of
https://github.com/fergalmoran/picard.git
synced 2026-03-06 21:35:09 +00:00
PICARD-1782: Show a tooltip when user clicks on locked table header
This commit is contained in:
@@ -50,6 +50,10 @@ class TristateSortHeaderView(QtWidgets.QHeaderView):
|
||||
|
||||
def mouseReleaseEvent(self, event):
|
||||
if self.is_locked:
|
||||
tooltip = _(
|
||||
"The table is locked. To enable sorting and column resizing\n"
|
||||
"unlock the table in the table header's context menu.")
|
||||
QtWidgets.QToolTip.showText(event.globalPos(), tooltip, self)
|
||||
return
|
||||
|
||||
if event.button() == QtCore.Qt.LeftButton:
|
||||
|
||||
Reference in New Issue
Block a user