mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 13:24:54 +01:00
15 lines
458 B
Python
15 lines
458 B
Python
from Qt import QtWidgets, QtCore
|
|
|
|
|
|
class FilesView(QtWidgets.QTreeView):
|
|
doubleClickedLeft = QtCore.Signal()
|
|
doubleClickedRight = QtCore.Signal()
|
|
|
|
def mouseDoubleClickEvent(self, event):
|
|
if event.button() == QtCore.Qt.LeftButton:
|
|
self.doubleClickedLeft.emit()
|
|
|
|
elif event.button() == QtCore.Qt.RightButton:
|
|
self.doubleClickedRight.emit()
|
|
|
|
return super(FilesView, self).mouseDoubleClickEvent(event)
|