mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-07-28 13:04:17 -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:
@@ -20,7 +20,6 @@
|
||||
#include <QDateTime>
|
||||
#include <QString>
|
||||
#include <QMessageBox>
|
||||
#include <QResizeEvent>
|
||||
|
||||
#include <boost/algorithm/string.hpp>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
@@ -68,7 +67,7 @@ RemoteOutputSinkGui::RemoteOutputSinkGui(DeviceUISet *deviceUISet, QWidget* pare
|
||||
m_paletteWhiteText.setColor(QPalette::WindowText, Qt::white);
|
||||
|
||||
ui->setupUi(getContents());
|
||||
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
sizeToContents();
|
||||
getContents()->setStyleSheet("#RemoteOutputGui { background-color: rgb(64, 64, 64); }");
|
||||
m_helpURL = "plugins/samplesink/remoteoutput/readme.md";
|
||||
|
||||
@@ -145,12 +144,6 @@ bool RemoteOutputSinkGui::deserialize(const QByteArray& data)
|
||||
}
|
||||
}
|
||||
|
||||
void RemoteOutputSinkGui::resizeEvent(QResizeEvent* size)
|
||||
{
|
||||
adjustSize();
|
||||
size->accept();
|
||||
}
|
||||
|
||||
bool RemoteOutputSinkGui::handleMessage(const Message& message)
|
||||
{
|
||||
if (RemoteOutput::MsgConfigureRemoteOutput::match(message))
|
||||
|
||||
@@ -78,9 +78,6 @@ public:
|
||||
bool deserialize(const QByteArray& data);
|
||||
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||
|
||||
protected:
|
||||
void resizeEvent(QResizeEvent* size);
|
||||
|
||||
private:
|
||||
Ui::RemoteOutputGui* ui;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user