mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-05 15:34:57 -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:
@@ -18,7 +18,6 @@
|
||||
#include <QDebug>
|
||||
#include <QMessageBox>
|
||||
#include <QFileDialog>
|
||||
#include <QResizeEvent>
|
||||
|
||||
#include <libairspyhf/airspyhf.h>
|
||||
|
||||
@@ -47,7 +46,7 @@ AirspyHFGui::AirspyHFGui(DeviceUISet *deviceUISet, QWidget* parent) :
|
||||
m_sampleSource = (AirspyHFInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
|
||||
|
||||
ui->setupUi(getContents());
|
||||
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
sizeToContents();
|
||||
getContents()->setStyleSheet("#AirspyHFGui { background-color: rgb(64, 64, 64); }");
|
||||
m_helpURL = "plugins/samplesource/airspyhf/readme.md";
|
||||
ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
|
||||
@@ -108,12 +107,6 @@ bool AirspyHFGui::deserialize(const QByteArray& data)
|
||||
}
|
||||
}
|
||||
|
||||
void AirspyHFGui::resizeEvent(QResizeEvent* size)
|
||||
{
|
||||
adjustSize();
|
||||
size->accept();
|
||||
}
|
||||
|
||||
bool AirspyHFGui::handleMessage(const Message& message)
|
||||
{
|
||||
if (AirspyHFInput::MsgConfigureAirspyHF::match(message))
|
||||
|
||||
Reference in New Issue
Block a user