1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-01 21:54:55 -04:00

Device GUIs: Constain window size via minimumSize/maximumSize, rather than handling resizeEvent. Add maximum button. Hide size buttons when window size is fixed

This commit is contained in:
Jon Beniston
2022-11-09 15:53:44 +00:00
parent b551a20302
commit ee8b8ade88
88 changed files with 102 additions and 436 deletions
+1 -8
View File
@@ -22,7 +22,6 @@
#include <QString>
#include <QMessageBox>
#include <QFileDialog>
#include <QResizeEvent>
#include "plugin/pluginapi.h"
#include "device/deviceapi.h"
@@ -57,7 +56,7 @@ TestMIGui::TestMIGui(DeviceUISet *deviceUISet, QWidget* parent) :
setAttribute(Qt::WA_DeleteOnClose, true);
m_helpURL = "plugins/samplemimo/testmi/readme.md";
ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
sizeToContents();
getContents()->setStyleSheet("#TestMIGui { background-color: rgb(64, 64, 64); }");
m_sampleMIMO = m_deviceUISet->m_deviceAPI->getSampleMIMO();
@@ -126,12 +125,6 @@ bool TestMIGui::deserialize(const QByteArray& data)
}
}
void TestMIGui::resizeEvent(QResizeEvent* size)
{
adjustSize();
size->accept();
}
void TestMIGui::on_startStop_toggled(bool checked)
{
if (m_doApplySettings)