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:
@@ -18,7 +18,6 @@
|
||||
|
||||
#include <QDebug>
|
||||
#include <QMessageBox>
|
||||
#include <QResizeEvent>
|
||||
|
||||
#include "ui_usrpoutputgui.h"
|
||||
#include "gui/colormapper.h"
|
||||
@@ -47,7 +46,7 @@ USRPOutputGUI::USRPOutputGUI(DeviceUISet *deviceUISet, QWidget* parent) :
|
||||
m_usrpOutput = (USRPOutput*) m_deviceUISet->m_deviceAPI->getSampleSink();
|
||||
|
||||
ui->setupUi(getContents());
|
||||
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
sizeToContents();
|
||||
getContents()->setStyleSheet("#USRPOutputGUI { background-color: rgb(64, 64, 64); }");
|
||||
m_helpURL = "plugins/samplesink/usrpoutput/readme.md";
|
||||
|
||||
@@ -154,12 +153,6 @@ bool USRPOutputGUI::deserialize(const QByteArray& data)
|
||||
}
|
||||
}
|
||||
|
||||
void USRPOutputGUI::resizeEvent(QResizeEvent* size)
|
||||
{
|
||||
adjustSize();
|
||||
size->accept();
|
||||
}
|
||||
|
||||
void USRPOutputGUI::updateFrequencyLimits()
|
||||
{
|
||||
// values in kHz
|
||||
|
||||
Reference in New Issue
Block a user