mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-02 06:04:39 -04:00
Massive UI revamping (v7): fixed widget size handling: sample sources. Part ofs #1209
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
#include <QNetworkReply>
|
||||
#include <QJsonParseError>
|
||||
#include <QJsonObject>
|
||||
#include <QResizeEvent>
|
||||
|
||||
#include "ui_localinputgui.h"
|
||||
#include "gui/colormapper.h"
|
||||
@@ -75,6 +76,7 @@ LocalInputGui::LocalInputGui(DeviceUISet *deviceUISet, QWidget* parent) :
|
||||
|
||||
m_startingTimeStampms = 0;
|
||||
ui->setupUi(getContents());
|
||||
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
getContents()->setStyleSheet(QString(tr("#LocalInputGui { border: 1px solid %1 }")
|
||||
.arg(palette().highlight().color().darker(115).name())));
|
||||
m_helpURL = "plugins/samplesource/localinput/readme.md";
|
||||
@@ -143,6 +145,12 @@ bool LocalInputGui::deserialize(const QByteArray& data)
|
||||
}
|
||||
}
|
||||
|
||||
void LocalInputGui::resizeEvent(QResizeEvent* size)
|
||||
{
|
||||
adjustSize();
|
||||
size->accept();
|
||||
}
|
||||
|
||||
bool LocalInputGui::handleMessage(const Message& message)
|
||||
{
|
||||
if (LocalInput::MsgConfigureLocalInput::match(message))
|
||||
|
||||
Reference in New Issue
Block a user