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 sinks. Part of #1209
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
|
||||
#include <QDebug>
|
||||
#include <QMessageBox>
|
||||
#include <QResizeEvent>
|
||||
|
||||
#include "ui_usrpoutputgui.h"
|
||||
#include "gui/colormapper.h"
|
||||
@@ -46,6 +47,7 @@ USRPOutputGUI::USRPOutputGUI(DeviceUISet *deviceUISet, QWidget* parent) :
|
||||
m_usrpOutput = (USRPOutput*) m_deviceUISet->m_deviceAPI->getSampleSink();
|
||||
|
||||
ui->setupUi(getContents());
|
||||
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
getContents()->setStyleSheet(QString(tr("#USRPOutputGUI { border: 1px solid %1 }")
|
||||
.arg(palette().highlight().color().darker(115).name())));
|
||||
m_helpURL = "plugins/samplesink/usrpoutput/readme.md";
|
||||
@@ -151,6 +153,12 @@ bool USRPOutputGUI::deserialize(const QByteArray& data)
|
||||
}
|
||||
}
|
||||
|
||||
void USRPOutputGUI::resizeEvent(QResizeEvent* size)
|
||||
{
|
||||
adjustSize();
|
||||
size->accept();
|
||||
}
|
||||
|
||||
void USRPOutputGUI::updateFrequencyLimits()
|
||||
{
|
||||
// values in kHz
|
||||
|
||||
Reference in New Issue
Block a user