| 152 | } |
| 153 | |
| 154 | bool DockManager::switchToLayoutWithCPU(BreakPointCpu cpu, bool blink_tab) |
| 155 | { |
| 156 | // Don't interrupt the user if the current layout already has the right CPU. |
| 157 | if (m_current_layout != DockLayout::INVALID_INDEX && m_layouts.at(m_current_layout).cpu() == cpu) |
| 158 | { |
| 159 | switchToLayout(m_current_layout, blink_tab); |
| 160 | return true; |
| 161 | } |
| 162 | |
| 163 | for (DockLayout::Index i = 0; i < m_layouts.size(); i++) |
| 164 | { |
| 165 | if (m_layouts[i].cpu() == cpu) |
| 166 | { |
| 167 | switchToLayout(i, blink_tab); |
| 168 | return true; |
| 169 | } |
| 170 | } |
| 171 | |
| 172 | return false; |
| 173 | } |
| 174 | |
| 175 | void DockManager::loadLayouts() |
| 176 | { |
no test coverage detected