mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-19 06:03:59 +00:00
ElidedLabel: If text is elided set full text as a tooltip
This commit is contained in:
@@ -47,6 +47,10 @@ class ElidedLabel(QtWidgets.QLabel):
|
||||
QtCore.Qt.ElideRight,
|
||||
self.width() - 2)
|
||||
super().setText(elided_label)
|
||||
if self._full_label and elided_label != self._full_label:
|
||||
self.setToolTip(self._full_label)
|
||||
else:
|
||||
self.setToolTip("")
|
||||
|
||||
|
||||
class ClickableSlider(QtWidgets.QSlider):
|
||||
|
||||
Reference in New Issue
Block a user