1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-08 00:44:48 -04:00

Massive UI revamping (v7): Renumerate workspaces and workspace index in sub windows after empty workspace trimmin. Fixes #1212

This commit is contained in:
f4exb
2022-04-25 23:48:14 +02:00
parent 1855e9afe7
commit dc303cdd7d
3 changed files with 42 additions and 0 deletions
+13
View File
@@ -215,6 +215,19 @@ Workspace::~Workspace()
qDebug("Workspace::~Workspace: end");
}
void Workspace::setIndex(int index)
{
m_index = index;
setWindowTitle(tr("W%1").arg(m_index));
setObjectName(tr("W%1").arg(m_index));
m_titleLabel->setText(windowTitle());
}
QList<QMdiSubWindow *> Workspace::getSubWindowList() const
{
return m_mdi->subWindowList();
}
void Workspace::toggleFloating()
{
setFloating(!isFloating());