1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-01 21:54:55 -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 <QDebug>
#include <QMessageBox>
#include <QFileDialog>
#include <QResizeEvent>
#include <libbladeRF.h>
@@ -48,6 +49,7 @@ Bladerf1InputGui::Bladerf1InputGui(DeviceUISet *deviceUISet, QWidget* parent) :
m_sampleSource = (Bladerf1Input*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#Bladerf1InputGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name())));
m_helpURL = "plugins/samplesource/bladerf1input/readme.md";
@@ -114,6 +116,12 @@ bool Bladerf1InputGui::deserialize(const QByteArray& data)
}
}
void Bladerf1InputGui::resizeEvent(QResizeEvent* size)
{
adjustSize();
size->accept();
}
bool Bladerf1InputGui::handleMessage(const Message& message)
{
if (Bladerf1Input::MsgConfigureBladerf1::match(message))