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
@@ -21,7 +21,6 @@
#include <QDebug>
#include <QMessageBox>
#include <QFileDialog>
#include <QResizeEvent>
#include <algorithm>
@@ -51,7 +50,7 @@ USRPInputGUI::USRPInputGUI(DeviceUISet *deviceUISet, QWidget* parent) :
m_usrpInput = (USRPInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
sizeToContents();
getContents()->setStyleSheet("#USRPInputGUI { background-color: rgb(64, 64, 64); }");
m_helpURL = "plugins/samplesource/usrpinput/readme.md";
@@ -157,12 +156,6 @@ bool USRPInputGUI::deserialize(const QByteArray& data)
}
}
void USRPInputGUI::resizeEvent(QResizeEvent* size)
{
adjustSize();
size->accept();
}
bool USRPInputGUI::handleMessage(const Message& message)
{
if (USRPInput::MsgConfigureUSRP::match(message))