mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
show settings icon only on hover
This commit is contained in:
parent
b61d36867a
commit
6effd68891
1 changed files with 9 additions and 1 deletions
|
|
@ -77,14 +77,22 @@ class ActionOverlayWidget(QtWidgets.QFrame):
|
|||
|
||||
settings_icon = LauncherSettingsLabel(self)
|
||||
settings_icon.setToolTip("Right click for options")
|
||||
settings_icon.setVisible(False)
|
||||
|
||||
main_layout = QtWidgets.QGridLayout(self)
|
||||
main_layout.setContentsMargins(5, 5, 0, 0)
|
||||
main_layout.addWidget(settings_icon, 0, 0)
|
||||
main_layout.setColumnStretch(1, 1)
|
||||
main_layout.setRowStretch(1, 1)
|
||||
self.setAttribute(QtCore.Qt.WA_TranslucentBackground, True)
|
||||
|
||||
self.setAttribute(QtCore.Qt.WA_TranslucentBackground)
|
||||
def enterEvent(self, event):
|
||||
super().enterEvent(event)
|
||||
self._settings_icon.setVisible(True)
|
||||
|
||||
def leaveEvent(self, event):
|
||||
super().leaveEvent(event)
|
||||
self._settings_icon.setVisible(False)
|
||||
|
||||
|
||||
class ActionsQtModel(QtGui.QStandardItemModel):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue