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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user