mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-02 06:04:39 -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:
@@ -19,7 +19,6 @@
|
||||
|
||||
#include <QDebug>
|
||||
#include <QMessageBox>
|
||||
#include <QResizeEvent>
|
||||
|
||||
#include "ui_xtrxoutputgui.h"
|
||||
#include "gui/colormapper.h"
|
||||
@@ -48,7 +47,7 @@ XTRXOutputGUI::XTRXOutputGUI(DeviceUISet *deviceUISet, QWidget* parent) :
|
||||
m_XTRXOutput = (XTRXOutput*) m_deviceUISet->m_deviceAPI->getSampleSink();
|
||||
|
||||
ui->setupUi(getContents());
|
||||
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
sizeToContents();
|
||||
getContents()->setStyleSheet("#XTRXOutputGUI { background-color: rgb(64, 64, 64); }");
|
||||
m_helpURL = "plugins/samplesink/xtrxoutput/readme.md";
|
||||
|
||||
@@ -123,12 +122,6 @@ bool XTRXOutputGUI::deserialize(const QByteArray& data)
|
||||
}
|
||||
}
|
||||
|
||||
void XTRXOutputGUI::resizeEvent(QResizeEvent* size)
|
||||
{
|
||||
adjustSize();
|
||||
size->accept();
|
||||
}
|
||||
|
||||
bool XTRXOutputGUI::handleMessage(const Message& message)
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user