Skip to content

Commit

Permalink
Copy frame name to middle click clipboard
Browse files Browse the repository at this point in the history
User workflow requires single click frame name selection
in the FrameMonitorTree to copy to the QtGui clipboard,
updated to allow users this capability.
  • Loading branch information
roulaoregan-spi committed May 18, 2021
1 parent 9037dcb commit 97d96f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cuegui/cuegui/FrameMonitorTree.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,8 @@ def __itemSingleClickedCopy(self, item, col):
selected = [
frame.data.name for frame in self.selectedObjects() if cuegui.Utils.isFrame(frame)]
if selected:
QtWidgets.QApplication.clipboard().setText(" ".join(selected))
QtWidgets.QApplication.clipboard().setText(" ".join(selected),
QtGui.QClipboard.Selection)

def __itemSingleClickedViewLog(self, item, col):
"""Called when an item is clicked on. Views the log file contents
Expand Down

0 comments on commit 97d96f3

Please sign in to comment.