| 1136 | } // DockablePanel::setClosedInternal |
| 1137 | |
| 1138 | void |
| 1139 | DockablePanel::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 | |
| 1159 | void |
| 1160 | DockablePanel::minimizeOrMaximize(bool toggled) |
no test coverage detected