1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-08-14 23:43:43 -04:00

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

This commit is contained in:
f4exb
2022-04-21 19:24:40 +02:00
parent 90d331675a
commit f3f504c88d
39 changed files with 312 additions and 94 deletions
@@ -18,6 +18,7 @@
#include <stdio.h>
#include <QDebug>
#include <QMessageBox>
#include <QResizeEvent>
#include "dsp/dspengine.h"
#include "dsp/dspcommands.h"
@@ -48,6 +49,7 @@ PlutoSDROutputGUI::PlutoSDROutputGUI(DeviceUISet *deviceUISet, QWidget* parent)
m_sampleSink = (PlutoSDROutput*) m_deviceUISet->m_deviceAPI->getSampleSink();
ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#PlutoSDROutputGUI { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name())));
m_helpURL = "plugins/samplesink/plutosdroutput/readme.md";
@@ -120,6 +122,12 @@ bool PlutoSDROutputGUI::deserialize(const QByteArray& data)
}
}
void PlutoSDROutputGUI::resizeEvent(QResizeEvent* size)
{
adjustSize();
size->accept();
}
bool PlutoSDROutputGUI::handleMessage(const Message& message)
{
(void) message;