mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-02 14:04:46 -04:00
Device GUIs: Constain window size via minimumSize/maximumSize, rather than handling resizeEvent. Add maximum button. Hide size buttons when window size is fixed
This commit is contained in:
@@ -29,7 +29,6 @@
|
||||
#include <QNetworkReply>
|
||||
#include <QJsonParseError>
|
||||
#include <QJsonObject>
|
||||
#include <QResizeEvent>
|
||||
|
||||
#include "ui_localinputgui.h"
|
||||
#include "gui/colormapper.h"
|
||||
@@ -76,7 +75,7 @@ LocalInputGui::LocalInputGui(DeviceUISet *deviceUISet, QWidget* parent) :
|
||||
|
||||
m_startingTimeStampms = 0;
|
||||
ui->setupUi(getContents());
|
||||
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
sizeToContents();
|
||||
getContents()->setStyleSheet("#LocalInputGui { background-color: rgb(64, 64, 64); }");
|
||||
m_helpURL = "plugins/samplesource/localinput/readme.md";
|
||||
|
||||
@@ -146,12 +145,6 @@ 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))
|
||||
|
||||
@@ -47,9 +47,6 @@ public:
|
||||
bool deserialize(const QByteArray& data);
|
||||
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||
|
||||
protected:
|
||||
void resizeEvent(QResizeEvent* size);
|
||||
|
||||
private:
|
||||
Ui::LocalInputGui* ui;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user