Implemented proper updating of floating widget title

This commit is contained in:
Uwe Kindler
2018-10-30 23:45:59 +01:00
parent 81523b0346
commit 6617cf6f19
11 changed files with 67 additions and 31 deletions

View File

@@ -500,6 +500,20 @@ void CFloatingDockContainer::onDockAreasAddedOrRemoved()
}
//============================================================================
void CFloatingDockContainer::updateWindowTitle(const QString& Title)
{
if (Title.isEmpty())
{
this->setWindowTitle(qApp->applicationDisplayName());
}
else
{
this->setWindowTitle(Title);
}
}
//============================================================================
void CFloatingDockContainer::onDockAreaCurrentChanged(int Index)
{