mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-02 22:14:45 -04:00
Massive UI revamping (v7): fixed widget size handling: sample sinks. Part of #1209
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
|
||||
#include <QDebug>
|
||||
#include <QMessageBox>
|
||||
#include <QResizeEvent>
|
||||
|
||||
#include "ui_xtrxoutputgui.h"
|
||||
#include "gui/colormapper.h"
|
||||
@@ -47,6 +48,7 @@ XTRXOutputGUI::XTRXOutputGUI(DeviceUISet *deviceUISet, QWidget* parent) :
|
||||
m_XTRXOutput = (XTRXOutput*) m_deviceUISet->m_deviceAPI->getSampleSink();
|
||||
|
||||
ui->setupUi(getContents());
|
||||
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
getContents()->setStyleSheet(QString(tr("#XTRXOutputGUI { border: 1px solid %1 }")
|
||||
.arg(palette().highlight().color().darker(115).name())));
|
||||
m_helpURL = "plugins/samplesink/xtrxoutput/readme.md";
|
||||
@@ -119,6 +121,12 @@ bool XTRXOutputGUI::deserialize(const QByteArray& data)
|
||||
}
|
||||
}
|
||||
|
||||
void XTRXOutputGUI::resizeEvent(QResizeEvent* size)
|
||||
{
|
||||
adjustSize();
|
||||
size->accept();
|
||||
}
|
||||
|
||||
bool XTRXOutputGUI::handleMessage(const Message& message)
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user