mainwindow: improved panel organization

This commit is contained in:
itsmattkc
2023-02-08 18:18:06 -08:00
parent aa5c2f0541
commit d1a7bd29aa
24 changed files with 336 additions and 265 deletions
+11
View File
@@ -78,6 +78,17 @@ PanelWidget *PanelManager::CurrentlyHovered() const
return nullptr;
}
PanelWidget *PanelManager::GetPanelWithName(const QString &name) const
{
foreach (PanelWidget* panel, focus_history_) {
if (panel->objectName() == name) {
return panel;
}
}
return nullptr;
}
bool PanelManager::ArePanelsLocked()
{
return locked_;