mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-01 21:54:55 -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 <QFileDialog>
|
||||
#include <QResizeEvent>
|
||||
|
||||
#include "ui_fcdproplusgui.h"
|
||||
#include "gui/colormapper.h"
|
||||
@@ -46,7 +45,7 @@ FCDProPlusGui::FCDProPlusGui(DeviceUISet *deviceUISet, QWidget* parent) :
|
||||
m_sampleSource = (FCDProPlusInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
|
||||
|
||||
ui->setupUi(getContents());
|
||||
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
sizeToContents();
|
||||
getContents()->setStyleSheet("#FCDProPlusGui { background-color: rgb(64, 64, 64); }");
|
||||
m_helpURL = "plugins/samplesource/fcdproplus/readme.md";
|
||||
|
||||
@@ -119,12 +118,6 @@ bool FCDProPlusGui::deserialize(const QByteArray& data)
|
||||
}
|
||||
}
|
||||
|
||||
void FCDProPlusGui::resizeEvent(QResizeEvent* size)
|
||||
{
|
||||
adjustSize();
|
||||
size->accept();
|
||||
}
|
||||
|
||||
bool FCDProPlusGui::handleMessage(const Message& message)
|
||||
{
|
||||
if (FCDProPlusInput::MsgConfigureFCDProPlus::match(message))
|
||||
|
||||
@@ -69,9 +69,6 @@ private:
|
||||
bool handleMessage(const Message& message);
|
||||
void makeUIConnections();
|
||||
|
||||
protected:
|
||||
void resizeEvent(QResizeEvent* size);
|
||||
|
||||
private slots:
|
||||
void handleInputMessages();
|
||||
void on_centerFrequency_changed(quint64 value);
|
||||
|
||||
Reference in New Issue
Block a user