| 844 | } |
| 845 | |
| 846 | void LightscreenWindow::connectHotkeys() |
| 847 | { |
| 848 | const QStringList actions = {"screen", "window", "area", "windowPicker", "open", "directory"}; |
| 849 | QStringList failed; |
| 850 | size_t id = Screenshot::WholeScreen; |
| 851 | |
| 852 | for (auto action : actions) { |
| 853 | if (settings()->value("actions/" + action + "/enabled").toBool()) { |
| 854 | if (!mGlobalHotkeys->registerHotkey(settings()->value("actions/" + action + "/hotkey").toString(), id)) { |
| 855 | failed << action; |
| 856 | } |
| 857 | } |
| 858 | |
| 859 | id++; |
| 860 | } |
| 861 | |
| 862 | if (!failed.isEmpty()) { |
| 863 | showHotkeyError(failed); |
| 864 | } |
| 865 | } |
| 866 | |
| 867 | void LightscreenWindow::createTrayIcon() |
| 868 | { |
nothing calls this directly
no outgoing calls
no test coverage detected