1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-01 21:54:55 -04:00

Massive UI revamping (v7): fixed widget size handling: features. Part of #1209

This commit is contained in:
f4exb
2022-04-21 23:31:01 +02:00
parent 5a265d7fe3
commit 90386842ca
21 changed files with 152 additions and 69 deletions
@@ -19,6 +19,7 @@
#include <cmath>
#include <QMessageBox>
#include <QSerialPortInfo>
#include <QResizeEvent>
#include "SWGTargetAzimuthElevation.h"
@@ -70,6 +71,12 @@ bool GS232ControllerGUI::deserialize(const QByteArray& data)
}
}
void GS232ControllerGUI::resizeEvent(QResizeEvent* size)
{
adjustSize();
size->accept();
}
bool GS232ControllerGUI::handleMessage(const Message& message)
{
if (GS232Controller::MsgConfigureGS232Controller::match(message))
@@ -141,6 +148,7 @@ GS232ControllerGUI::GS232ControllerGUI(PluginAPI* pluginAPI, FeatureUISet *featu
m_lastOnTarget(false)
{
ui->setupUi(getRollupContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getRollupContents()->arrangeRollups();
m_helpURL = "plugins/feature/gs232controller/readme.md";
setAttribute(Qt::WA_DeleteOnClose, true);