Remove close button from Peripheral dock widget
MODIFY
src/iotab.cpp
src/iotab.cpp
@@ -82,6 +82,7 @@ void IOTab::createPeripheral(IOType type) {
auto* mw = new QMainWindow(this);
m_ui->dockArea->addWidget(mw); // Shouldn't be needed, but MDI windows aren't created without this?
auto* dw = new QDockWidget(IOTypeTitles.at(type));
+ dw->setFeatures(dw->features() & ~QDockWidget::DockWidgetClosable);
dw->setWidget(peripheral);
dw->setAllowedAreas(Qt::AllDockWidgetAreas);
mw->addDockWidget(Qt::TopDockWidgetArea, dw);

MODIFY
src/iotab.ui
src/iotab.ui
</attribute>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="1">
- <layout class="QVBoxLayout" name="verticalLayout" stretch="0,1">
+ <layout class="QVBoxLayout" name="verticalLayout" stretch="0,0">
<item>
<widget class="QTableWidget" name="peripheralsTable"/>
</item>

Remove close button from Peripheral dock widget