1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-03 06:24:48 -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:
Jon Beniston
2022-11-09 15:53:44 +00:00
parent b551a20302
commit ee8b8ade88
88 changed files with 102 additions and 436 deletions
+1 -8
View File
@@ -23,7 +23,6 @@
#include <QString>
#include <QMessageBox>
#include <QFileDialog>
#include <QResizeEvent>
#include "ui_kiwisdrgui.h"
#include "plugin/pluginapi.h"
@@ -68,7 +67,7 @@ KiwiSDRGui::KiwiSDRGui(DeviceUISet *deviceUISet, QWidget* parent) :
m_statusColors.push_back("rgb(232, 85, 232)"); // Disconnected (magenta)
ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
sizeToContents();
getContents()->setStyleSheet("#KiwiSDRGui { background-color: rgb(64, 64, 64); }");
m_helpURL = "plugins/samplesource/kiwisdr/readme.md";
ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
@@ -123,12 +122,6 @@ bool KiwiSDRGui::deserialize(const QByteArray& data)
}
}
void KiwiSDRGui::resizeEvent(QResizeEvent* size)
{
adjustSize();
size->accept();
}
void KiwiSDRGui::on_startStop_toggled(bool checked)
{
if (m_doApplySettings)