The new TriStateAction class is an improvement of the old one in the
sense that:
1. Have public method to set states.
2. Can connect to the usual Qt slots.
3. Draws checkbox at the correct offset (where QAction draws) in menu
and better handling of mouse clicking and keyboard navigating.
* Add copy options to webui context menu
Add Copy Hash to gui (closes#6964)
* Use switch statement
* Use camel case, switch from signal to qaction.
* Rename variable
* Change variable name
To maintain consistency with the actual English menu item, the variable
names and method name have been changed to reflect the menu item text.
Per comments in PR qbittorrent#2493
Signed-off-by: ADTC <send2adtc@gmail.com>
Implementation of feature request #2452https://github.com/qbittorrent/qBittorrent/issues/2452
Adds a new option in the right-click menu of the torrent list to copy
the name(s) of selected torrent(s) to the clipboard. This is similar to
the existing option to copy the magnet links to the clipboard.
This patch was originally authored by Chris Hirst (ciaobaby). I changed
the item name from "Copy caption" to "Copy name" (the torrent list
column header says "Name"), and I added the missing line in the header
file.
Note: Translations are not updated for the English menu item "Copy
name".
Signed-off-by: ADTC <send2adtc@gmail.com>
Change project directory structure according to application structure.
Change 'nox' configuration option to something more meaningful 'nogui'.
Rename 'Icons' folder to 'icons' (similar to other folders).
Partially add 'nowebui' option support.
Remove QConf project file.
I thought merging all 3 sort-filter proxy models into one should
speedup dataChanged() signal. As turned out this is not the case. The
time difference is within inaccuracy range, so this doesn't affect
performance.
But I still think it is good to merge them into one proxy model as it
simplifies code.