Skip to content

add copy function to disassembly views#509

Merged
milianw merged 2 commits intomasterfrom
select-codedelegate
Sep 29, 2023
Merged

add copy function to disassembly views#509
milianw merged 2 commits intomasterfrom
select-codedelegate

Conversation

@lievenhey
Copy link
Contributor

This allows the user to copy text from the sourcecodeview and the disassembly view. This is done by reimplementing QTreeView with a custom keyPressEvent function that copies everything from selectionModel() to the clipboard and not just currentIndex like the default implementation does.

@lievenhey
Copy link
Contributor Author

This makes hotspot behave like the user expects. I would be confused if I select multiple cells and only get the last one into my clipboard.

@lievenhey lievenhey force-pushed the select-codedelegate branch 2 times, most recently from 9ccb7ad to 23f3f65 Compare September 21, 2023 15:56
This allows the user to copy text from the sourcecodeview and the
disassembly view. This is done by reimplementing QTreeView with a custom
keyPressEvent function that copies everything from selectionModel() to
the clipboard and not just currentIndex like the default implementation
does.
Only the Q_DECLARE_METATYPE part of the headers is used. So there is no
need to include them.
@milianw milianw merged commit b99ffe0 into master Sep 29, 2023
@milianw milianw deleted the select-codedelegate branch September 29, 2023 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants