diff options
author | Arno <arno@disconnect.de> | 2018-04-02 21:36:19 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2018-04-02 21:37:47 +0200 |
commit | 3afe6efd51edaa02a989418c825182f41b7c8ab6 (patch) | |
tree | bf0eaa5456d759609c5ce2ef57b77bb84d467bbb /shemov.cpp | |
parent | 096cf7474907cbdd7ab2c67ea57f19ebdab805d4 (diff) | |
download | SheMov-3afe6efd51edaa02a989418c825182f41b7c8ab6.tar.gz SheMov-3afe6efd51edaa02a989418c825182f41b7c8ab6.tar.bz2 SheMov-3afe6efd51edaa02a989418c825182f41b7c8ab6.zip |
FSWidget: Implement select and deselect files
Select files by CTRL+k, deselect everything with CTRL+k (for kill).
Select all with the global shortcut CTRL+a.
Learned some interesting things: First, QAction shortcuts won't work if
you don't add them to any actions(), even if it has a parent. So
subclass QTreeView for the context menu and add an InvisibleAction enum.
Don't show the QAction if it has that flag in data(). This has a nice
side effect: the context menu isn't shown any more when you right-click
outside the FSView.
Second: The debugger was quite confused with equal SLOT names in
different classes when using the new connect syntax. It dropped me off
in totally wrong classes, confusing me at first, too :(
Diffstat (limited to 'shemov.cpp')
0 files changed, 0 insertions, 0 deletions