1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 14:04:46 -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
@@ -18,7 +18,6 @@
#include <QDebug>
#include <QMessageBox>
#include <QResizeEvent>
#include "sdrplayv3gui.h"
#include "sdrplayv3input.h"
@@ -44,7 +43,7 @@ SDRPlayV3Gui::SDRPlayV3Gui(DeviceUISet *deviceUISet, QWidget* parent) :
m_sdrPlayV3Input = (SDRPlayV3Input*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
sizeToContents();
getContents()->setStyleSheet("#SDRPlayV3Gui { background-color: rgb(64, 64, 64); }");
m_helpURL = "plugins/samplesource/sdrplayv3/readme.md";
ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
@@ -164,12 +163,6 @@ bool SDRPlayV3Gui::deserialize(const QByteArray& data)
}
}
void SDRPlayV3Gui::resizeEvent(QResizeEvent* size)
{
adjustSize();
size->accept();
}
bool SDRPlayV3Gui::handleMessage(const Message& message)
{
if (SDRPlayV3Input::MsgConfigureSDRPlayV3::match(message))