1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-22 16:08:39 -05:00

Massive UI revamping (v7): sample sink and mimo: make sure it is all fixed sized

This commit is contained in:
f4exb 2022-04-23 18:48:16 +02:00
parent ee6de48402
commit f7bfd10bd7
4 changed files with 6 additions and 6 deletions

View File

@ -52,7 +52,7 @@ TestMOSyncGui::TestMOSyncGui(DeviceUISet *deviceUISet, QWidget* parent) :
{ {
setAttribute(Qt::WA_DeleteOnClose, true); setAttribute(Qt::WA_DeleteOnClose, true);
ui->setupUi(getContents()); ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#TestMOSyncGui { border: 1px solid %1 }") getContents()->setStyleSheet(QString(tr("#TestMOSyncGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name()))); .arg(palette().highlight().color().darker(115).name())));
m_helpURL = "plugins/samplemimo/testmosync/readme.md"; m_helpURL = "plugins/samplemimo/testmosync/readme.md";

View File

@ -11,7 +11,7 @@
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>

View File

@ -51,7 +51,7 @@ TestSinkGui::TestSinkGui(DeviceUISet *deviceUISet, QWidget* parent) :
{ {
setAttribute(Qt::WA_DeleteOnClose, true); setAttribute(Qt::WA_DeleteOnClose, true);
ui->setupUi(getContents()); ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
setMinimumSize(m_MinimumWidth, m_MinimumHeight); setMinimumSize(m_MinimumWidth, m_MinimumHeight);
getContents()->setStyleSheet(QString(tr("#TestSinkGui { border: 1px solid %1 }") getContents()->setStyleSheet(QString(tr("#TestSinkGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name()))); .arg(palette().highlight().color().darker(115).name())));

View File

@ -6,19 +6,19 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>360</width> <width>364</width>
<height>350</height> <height>350</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>360</width> <width>364</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>