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:
@@ -17,6 +17,7 @@
|
||||
|
||||
#include <QMessageBox>
|
||||
#include <QFileDialog>
|
||||
#include <QResizeEvent>
|
||||
|
||||
#include "ui_fcdprogui.h"
|
||||
#include "gui/colormapper.h"
|
||||
@@ -44,6 +45,7 @@ FCDProGui::FCDProGui(DeviceUISet *deviceUISet, QWidget* parent) :
|
||||
m_sampleSource = (FCDProInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
|
||||
|
||||
ui->setupUi(getContents());
|
||||
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
getContents()->setStyleSheet(QString(tr("#FCDProGui { border: 1px solid %1 }")
|
||||
.arg(palette().highlight().color().darker(115).name())));
|
||||
m_helpURL = "plugins/samplesource/fcdpro/readme.md";
|
||||
@@ -197,6 +199,12 @@ bool FCDProGui::deserialize(const QByteArray& data)
|
||||
}
|
||||
}
|
||||
|
||||
void FCDProGui::resizeEvent(QResizeEvent* size)
|
||||
{
|
||||
adjustSize();
|
||||
size->accept();
|
||||
}
|
||||
|
||||
bool FCDProGui::handleMessage(const Message& message)
|
||||
{
|
||||
if (FCDProInput::MsgConfigureFCDPro::match(message))
|
||||
|
||||
Reference in New Issue
Block a user