| 154 | ToolWindowManager::ToolWindowProperty properties) |
| 155 | { |
| 156 | foreach(QWidget *toolWindow, toolWindows) |
| 157 | { |
| 158 | if(!toolWindow) |
| 159 | { |
| 160 | qWarning("cannot add null widget"); |
| 161 | continue; |
| 162 | } |
| 163 | if(m_toolWindows.contains(toolWindow)) |
| 164 | { |
| 165 | qWarning() << "this tool window has already been added" << toolWindow->objectName(); |
| 166 | continue; |
| 167 | } |
| 168 | toolWindow->hide(); |
| 169 | toolWindow->setParent(0); |
| 170 | m_toolWindows << toolWindow; |
| 171 | m_toolWindowProperties[toolWindow] = properties; |
| 172 | QObject::connect(toolWindow, &QWidget::windowTitleChanged, this, |
| 173 | &ToolWindowManager::windowTitleChanged); |
| 174 | } |
| 175 | moveToolWindows(toolWindows, area); |
| 176 | } |
| 177 |
nothing calls this directly
no test coverage detected