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

Method closePanel

Gui/DockablePanel.cpp:1138–1157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1136} // DockablePanel::setClosedInternal
1137
1138void
1139DockablePanel::closePanel()
1140{
1141 close();
1142 setClosedInternal(true);
1143
1144 ///Closing a panel always gives focus to some line-edit in the application which is quite annoying
1145 QWidget* hasFocus = qApp->focusWidget();
1146 if (hasFocus) {
1147 hasFocus->clearFocus();
1148 }
1149
1150 Gui* gui = getGui();
1151 if (gui) {
1152 const std::list<ViewerTab*>& viewers = gui->getViewersList();
1153 for (std::list<ViewerTab*>::const_iterator it = viewers.begin(); it != viewers.end(); ++it) {
1154 (*it)->getViewer()->redraw();
1155 }
1156 }
1157}
1158
1159void
1160DockablePanel::minimizeOrMaximize(bool toggled)

Callers 3

keyPressEventMethod · 0.80

Calls 5

getGuiFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
redrawMethod · 0.45
getViewerMethod · 0.45

Tested by

no test coverage detected