1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 06:04:39 -04:00

Massive UI revamping (v7): fixed widget size handling: sample sources. Part ofs #1209

This commit is contained in:
f4exb
2022-04-21 07:53:36 +02:00
parent 62ca8f8b29
commit 90d331675a
69 changed files with 695 additions and 225 deletions
@@ -18,6 +18,7 @@
#include <QMessageBox>
#include <QCheckBox>
#include <QFileDialog>
#include <QResizeEvent>
#include "dsp/dspengine.h"
#include "dsp/dspcommands.h"
@@ -61,6 +62,7 @@ SoapySDRInputGui::SoapySDRInputGui(DeviceUISet *deviceUISet, QWidget* parent) :
setAttribute(Qt::WA_DeleteOnClose, true);
m_sampleSource = (SoapySDRInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding);
getContents()->setStyleSheet(QString(tr("#SoapySDRInputGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name())));
m_helpURL = "plugins/samplesource/soapysdrinput/readme.md";
@@ -447,6 +449,12 @@ bool SoapySDRInputGui::deserialize(const QByteArray& data)
}
}
void SoapySDRInputGui::resizeEvent(QResizeEvent* size)
{
resize(360, height());
size->accept();
}
bool SoapySDRInputGui::handleMessage(const Message& message)
{
if (SoapySDRInput::MsgConfigureSoapySDRInput::match(message))