mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-18 21:58:37 -04:00
Massive UI revamping (v7): created configurations with just Features for now
This commit is contained in:
@@ -37,6 +37,7 @@ Workspace::Workspace(int index, QWidget *parent, Qt::WindowFlags flags) :
|
||||
setWidget(m_mdi);
|
||||
|
||||
setWindowTitle(tr("W%1").arg(m_index));
|
||||
setObjectName(tr("W%1").arg(m_index));
|
||||
|
||||
m_titleBar = new QWidget();
|
||||
m_titleBarLayout = new QHBoxLayout();
|
||||
@@ -105,7 +106,7 @@ Workspace::Workspace(int index, QWidget *parent, Qt::WindowFlags flags) :
|
||||
m_normalButton->setFixedSize(20, 20);
|
||||
|
||||
m_closeButton = new QPushButton();
|
||||
QIcon closeIcon(":/cross.png");
|
||||
QIcon closeIcon(":/hide.png");
|
||||
m_closeButton->setIcon(closeIcon);
|
||||
m_closeButton->setToolTip("Hide workspace");
|
||||
m_closeButton->setFixedSize(20, 20);
|
||||
@@ -269,3 +270,18 @@ void Workspace::removeFromMdiArea(QMdiSubWindow *sub)
|
||||
{
|
||||
m_mdi->removeSubWindow(sub);
|
||||
}
|
||||
|
||||
int Workspace::getNumberOfSubWindows() const
|
||||
{
|
||||
return m_mdi->subWindowList().size();
|
||||
}
|
||||
|
||||
QByteArray Workspace::saveMdiGeometry()
|
||||
{
|
||||
return qCompress(m_mdi->saveGeometry());
|
||||
}
|
||||
|
||||
void Workspace::restoreMdiGeometry(const QByteArray& blob)
|
||||
{
|
||||
m_mdi->restoreGeometry(qUncompress(blob));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user