sign: Restore Defaults - Stream Stats docks as tabs

This commit is contained in:
Srivats P 2016-11-27 13:07:06 +05:30
parent 3d7a459b5f
commit 8fa9ac2295

View File

@ -278,6 +278,16 @@ void MainWindow::on_actionViewRestoreDefaults_triggered()
setGeometry(defaultGeometry_);
restoreState(defaultLayout_, 0);
// Add streamStats as tabs
QList<QDockWidget*> streamStatsDocks
= findChildren<QDockWidget*>("streamStatsDock");
foreach(QDockWidget *dock, streamStatsDocks) {
dock->setFloating(false);
tabifyDockWidget(statsDock, dock);
}
statsDock->show();
statsDock->raise();
actionViewShowMyReservedPortsOnly->setChecked(false);
}