Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add copy function to disassembly views #509

Merged
merged 2 commits into from
Sep 29, 2023
Merged

add copy function to disassembly views #509

merged 2 commits into from
Sep 29, 2023

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
src/copyabletreeview.h Outdated Show resolved Hide resolved
src/models/codedelegate.cpp Show resolved Hide resolved
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
23 checks passed
@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.

None yet

2 participants