Commit Graph

5 Commits

Author SHA1 Message Date
Steve Lawrence
8ecedcdf9c Override copy() and cut() functions for custom tree/table widgets
The Ctrl-C and Ctrl-X shortcuts are handled by the copy() and cut()
functions in the ApolMainWindow, which just get the currently focused
widget and call its function of the same name.

However, the custom SEToolsTableView and SEToolsTreeView widgets do not
use these functions to implement Ctrl-C/X, but instead override the
event() function and check if each received event is a copy/cut key
sequence. Functionally this is the same as copy() and cut(), but this
leads to an abort in newer versions for Fedora and/or PyQT5 (the reason
is not obvious).

To avoid the abort, and arguably make things a little more clear, this
overrides the copy() and cut() functions in these widgets, moves the
specialize copy logic into them, and removes the event() function.

Closes #77

Signed-off-by: Steve Lawrence <slawrence@owlcyberdefense.com>
2022-11-29 13:19:05 -05:00
Chris PeBenito
8e082f70cf Replace license text in sources with SPDX license indentifiers.
Signed-off-by: Chris PeBenito <pebenito@ieee.org>
2021-11-20 14:12:15 -05:00
Chris PeBenito
ec0c2da337 SEToolsTableView: Change copy operation to use lists rather than string concatenation. 2016-07-14 21:44:35 -04:00
Chris PeBenito
fb3e14849d apol: Implement CSV export of SEToolsTableView.
Closes #54
2016-07-14 21:24:13 -04:00
Chris PeBenito
adfb31f518 apol: Implement copy from table results.
Closes #123
2016-07-09 18:18:47 -04:00