1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-15 12:51:49 -05:00

Adjust some plugin window constraints so they work better with stack layout

This commit is contained in:
Jon Beniston 2022-04-26 18:20:23 +01:00
parent bc38ca8487
commit 00b72891dd
7 changed files with 64 additions and 32 deletions

View File

@ -487,7 +487,7 @@
<widget class="QComboBox" name="udpFormat">
<property name="minimumSize">
<size>
<width>60</width>
<width>66</width>
<height>0</height>
</size>
</property>

View File

@ -6,25 +6,25 @@
<rect>
<x>0</x>
<y>0</y>
<width>374</width>
<width>360</width>
<height>584</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>374</width>
<width>360</width>
<height>584</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>374</width>
<width>560</width>
<height>584</height>
</size>
</property>
@ -59,7 +59,7 @@
<string>Calculators</string>
</property>
<property name="currentIndex">
<number>1</number>
<number>0</number>
</property>
<widget class="QWidget" name="dipoleTab">
<attribute name="title">
@ -70,7 +70,7 @@
<widget class="QComboBox" name="dipoleFrequencySelect">
<property name="minimumSize">
<size>
<width>94</width>
<width>90</width>
<height>0</height>
</size>
</property>
@ -266,7 +266,7 @@
</property>
<property name="minimumSize">
<size>
<width>94</width>
<width>90</width>
<height>0</height>
</size>
</property>

View File

@ -668,10 +668,6 @@ void APRSGUI::resizeEvent(QResizeEvent* size)
plotWeather();
plotTelemetry();
plotMotion();
int maxWidth = getRollupContents()->maximumWidth();
int minHeight = getRollupContents()->minimumHeight() + getAdditionalHeight();
resize(width() < maxWidth ? width() : maxWidth, minHeight);
size->accept();
}
void APRSGUI::onMenuDialogCalled(const QPoint &p)

View File

@ -11,7 +11,7 @@
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
@ -22,12 +22,6 @@
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>700</width>
<height>16777215</height>
</size>
</property>
<property name="font">
<font>
<family>Liberation Sans</family>
@ -154,7 +148,7 @@
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
@ -187,6 +181,12 @@
<number>0</number>
</property>
<widget class="QWidget" name="stationTab">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<attribute name="title">
<string>Stations and Objects</string>
</attribute>
@ -568,6 +568,12 @@
</layout>
</widget>
<widget class="QWidget" name="weatherTab">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<attribute name="title">
<string>Weather</string>
</attribute>
@ -840,6 +846,12 @@
</layout>
</widget>
<widget class="QWidget" name="motionTab">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<attribute name="title">
<string>Motion</string>
</attribute>
@ -1007,6 +1019,12 @@
</layout>
</widget>
<widget class="QWidget" name="telemetryTab">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<attribute name="title">
<string>Telemetry</string>
</attribute>
@ -1271,6 +1289,12 @@
</layout>
</widget>
<widget class="QWidget" name="statusTab">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<attribute name="title">
<string>Status</string>
</attribute>
@ -1323,6 +1347,12 @@
</layout>
</widget>
<widget class="QWidget" name="packetsTab">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<attribute name="title">
<string>Packets</string>
</attribute>
@ -1374,6 +1404,12 @@
</layout>
</widget>
<widget class="QWidget" name="messagesTab">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<attribute name="title">
<string>Messages</string>
</attribute>
@ -1453,17 +1489,17 @@
</widget>
</widget>
<customwidgets>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget>
<class>RollupContents</class>
<extends>QWidget</extends>
<header>gui/rollupcontents.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget>
<class>QChartView</class>
<extends>QGraphicsView</extends>

View File

@ -24,7 +24,7 @@
</property>
<property name="maximumSize">
<size>
<width>360</width>
<width>560</width>
<height>155</height>
</size>
</property>

View File

@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>410</width>
<width>360</width>
<height>234</height>
</rect>
</property>
@ -18,13 +18,13 @@
</property>
<property name="minimumSize">
<size>
<width>410</width>
<width>360</width>
<height>234</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>410</width>
<width>360</width>
<height>234</height>
</size>
</property>

View File

@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>381</width>
<width>360</width>
<height>331</height>
</rect>
</property>
@ -18,13 +18,13 @@
</property>
<property name="minimumSize">
<size>
<width>381</width>
<width>360</width>
<height>331</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>381</width>
<width>360</width>
<height>331</height>
</size>
</property>