1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 06:04:39 -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
@@ -20,7 +20,6 @@
#include <QDebug>
#include <QMessageBox>
#include <QFileDialog>
#include <QResizeEvent>
#include <libhackrf/hackrf.h>
@@ -50,7 +49,7 @@ HackRFInputGui::HackRFInputGui(DeviceUISet *deviceUISet, QWidget* parent) :
m_sampleSource = (HackRFInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
sizeToContents();
getContents()->setStyleSheet("#HackRFInputGui { background-color: rgb(64, 64, 64); }");
m_helpURL = "plugins/samplesource/hackrfinput/readme.md";
ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
@@ -118,12 +117,6 @@ bool HackRFInputGui::deserialize(const QByteArray& data)
}
}
void HackRFInputGui::resizeEvent(QResizeEvent* size)
{
adjustSize();
size->accept();
}
bool HackRFInputGui::handleMessage(const Message& message)
{
if (HackRFInput::MsgConfigureHackRF::match(message))