fix layout of the QgsHistogram widget to prevent histogram collapsing on

resizing (fix #25197)
This commit is contained in:
Alexander Bruy 2020-05-26 11:03:04 +03:00 committed by Nyall Dawson
parent 1a7f25c0f1
commit abe8481a1e

View File

@ -2,58 +2,31 @@
<ui version="4.0"> <ui version="4.0">
<class>QgsHistogramWidgetBase</class> <class>QgsHistogramWidgetBase</class>
<widget class="QWidget" name="QgsHistogramWidgetBase"> <widget class="QWidget" name="QgsHistogramWidgetBase">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>285</width>
<height>245</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>60</height>
</size>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string notr="true">Form</string> <string notr="true">Form</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout" stretch="0,1,0"> <layout class="QGridLayout" name="gridLayout">
<item> <item row="0" column="0">
<layout class="QHBoxLayout" name="horizontalLayout"> <widget class="QPushButton" name="mLoadValuesButton">
<property name="topMargin"> <property name="text">
<number>0</number> <string>Load Values</string>
</property> </property>
<item> </widget>
<widget class="QPushButton" name="mLoadValuesButton">
<property name="text">
<string>Load Values</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item> </item>
<item> <item row="0" column="1" colspan="2">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>182</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="0" colspan="3">
<widget class="QwtPlot" name="mpPlot"> <widget class="QwtPlot" name="mpPlot">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding"> <sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding">
@ -64,51 +37,44 @@
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>30</height> <height>120</height>
</size> </size>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="2" column="0" colspan="2">
<layout class="QFormLayout" name="formLayout"> <widget class="QLabel" name="label_12">
<property name="fieldGrowthPolicy"> <property name="text">
<enum>QFormLayout::AllNonFixedFieldsGrow</enum> <string>Histogram bins</string>
</property> </property>
<item row="0" column="0"> </widget>
<widget class="QLabel" name="label_12"> </item>
<property name="text"> <item row="2" column="2">
<string>Histogram bins</string> <widget class="QSpinBox" name="mBinsSpinBox">
</property> <property name="minimum">
</widget> <number>1</number>
</item> </property>
<item row="0" column="1"> <property name="maximum">
<widget class="QSpinBox" name="mBinsSpinBox"> <number>999</number>
<property name="minimum"> </property>
<number>1</number> <property name="value">
</property> <number>50</number>
<property name="maximum"> </property>
<number>999</number> </widget>
</property> </item>
<property name="value"> <item row="3" column="2">
<number>50</number> <widget class="QCheckBox" name="mMeanCheckBox">
</property> <property name="text">
</widget> <string>Show mean value</string>
</item> </property>
<item row="1" column="1"> </widget>
<widget class="QCheckBox" name="mMeanCheckBox"> </item>
<property name="text"> <item row="4" column="2">
<string>Show mean value</string> <widget class="QCheckBox" name="mStdevCheckBox">
</property> <property name="text">
</widget> <string>Show standard deviation</string>
</item> </property>
<item row="2" column="1"> </widget>
<widget class="QCheckBox" name="mStdevCheckBox">
<property name="text">
<string>Show standard deviation</string>
</property>
</widget>
</item>
</layout>
</item> </item>
</layout> </layout>
</widget> </widget>