| 874 | } |
| 875 | |
| 876 | bool |
| 877 | ViewerTab::notifyOverlaysKeyRepeat(const RenderScale & renderScale, |
| 878 | QKeyEvent* e) |
| 879 | { |
| 880 | if ( !getGui()->getApp() || getGui()->getApp()->isClosing() ) { |
| 881 | return false; |
| 882 | } |
| 883 | |
| 884 | Qt::Key qKey = (Qt::Key)e->key(); |
| 885 | Qt::KeyboardModifiers qMods = e->modifiers(); |
| 886 | Key natronKey = QtEnumConvert::fromQtKey( qKey); |
| 887 | KeyboardModifiers natronMod = QtEnumConvert::fromQtModifiers( qMods ); |
| 888 | NodesList nodes; |
| 889 | |
| 890 | for (NodesList::const_iterator it = nodes.begin(); it != nodes.end(); ++it) { |
| 891 | if ( notifyOverlaysKeyRepeat_internal(*it, renderScale, natronKey, natronMod, qKey, qMods) ) { |
| 892 | return true; |
| 893 | } |
| 894 | } |
| 895 | |
| 896 | if (getGui()->getApp()->getOverlayRedrawRequestsCount() > 0) { |
| 897 | getGui()->getApp()->redrawAllViewers(); |
| 898 | } |
| 899 | getGui()->getApp()->clearOverlayRedrawRequests(); |
| 900 | |
| 901 | |
| 902 | return false; |
| 903 | } |
| 904 | |
| 905 | bool |
| 906 | ViewerTab::notifyOverlaysFocusGained(const RenderScale & renderScale) |
nothing calls this directly
no test coverage detected