MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / notifyOverlaysKeyRepeat

Method notifyOverlaysKeyRepeat

Gui/ViewerTab20.cpp:876–903  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

874}
875
876bool
877ViewerTab::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
905bool
906ViewerTab::notifyOverlaysFocusGained(const RenderScale & renderScale)

Callers

nothing calls this directly

Calls 9

getGuiFunction · 0.85
isClosingMethod · 0.80
keyMethod · 0.80
getAppMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
redrawAllViewersMethod · 0.45

Tested by

no test coverage detected