mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-01 13:47:01 -04:00
Massive UI revamping (v7): fixed widget size handling: sample sinks. Part of #1209
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
|
||||
#include <QDebug>
|
||||
#include <QMessageBox>
|
||||
#include <QResizeEvent>
|
||||
|
||||
#include <libhackrf/hackrf.h>
|
||||
|
||||
@@ -48,6 +49,7 @@ HackRFOutputGui::HackRFOutputGui(DeviceUISet *deviceUISet, QWidget* parent) :
|
||||
m_deviceSampleSink = (HackRFOutput*) m_deviceUISet->m_deviceAPI->getSampleSink();
|
||||
|
||||
ui->setupUi(getContents());
|
||||
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
getContents()->setStyleSheet(QString(tr("#HackRFOutputGui { border: 1px solid %1 }")
|
||||
.arg(palette().highlight().color().darker(115).name())));
|
||||
m_helpURL = "plugins/samplesink/hackrfoutput/readme.md";
|
||||
@@ -109,6 +111,12 @@ bool HackRFOutputGui::deserialize(const QByteArray& data)
|
||||
}
|
||||
}
|
||||
|
||||
void HackRFOutputGui::resizeEvent(QResizeEvent* size)
|
||||
{
|
||||
adjustSize();
|
||||
size->accept();
|
||||
}
|
||||
|
||||
void HackRFOutputGui::blockApplySettings(bool block)
|
||||
{
|
||||
m_doApplySettings = !block;
|
||||
|
||||
Reference in New Issue
Block a user