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:
@@ -25,6 +25,7 @@
|
||||
#include <QTime>
|
||||
#include <QDateTime>
|
||||
#include <QString>
|
||||
#include <QResizeEvent>
|
||||
|
||||
#include "ui_remoteinputgui.h"
|
||||
#include "gui/colormapper.h"
|
||||
@@ -72,6 +73,7 @@ RemoteInputGui::RemoteInputGui(DeviceUISet *deviceUISet, QWidget* parent) :
|
||||
|
||||
m_startingTimeStampms = 0;
|
||||
ui->setupUi(getContents());
|
||||
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
getContents()->setStyleSheet(QString(tr("#RemoteInputGui { border: 1px solid %1 }")
|
||||
.arg(palette().highlight().color().darker(115).name())));
|
||||
m_helpURL = "plugins/samplesource/remoteinput/readme.md";
|
||||
@@ -148,6 +150,12 @@ bool RemoteInputGui::deserialize(const QByteArray& data)
|
||||
}
|
||||
}
|
||||
|
||||
void RemoteInputGui::resizeEvent(QResizeEvent* size)
|
||||
{
|
||||
adjustSize();
|
||||
size->accept();
|
||||
}
|
||||
|
||||
bool RemoteInputGui::handleMessage(const Message& message)
|
||||
{
|
||||
if (RemoteInput::MsgConfigureRemoteInput::match(message))
|
||||
|
||||
Reference in New Issue
Block a user