Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport release-3_10] fix layout of the QgsHistogram widget to prevent histogram collapsing (fix #25197) #36749

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
140 changes: 53 additions & 87 deletions src/ui/qgshistogramwidgetbase.ui
Original file line number Diff line number Diff line change
Expand Up @@ -2,58 +2,31 @@
<ui version="4.0">
<class>QgsHistogramWidgetBase</class>
<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">
<string>Form</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout" stretch="0,1,0">
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="topMargin">
<number>0</number>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QPushButton" name="mLoadValuesButton">
<property name="text">
<string>Load Values</string>
</property>
<item>
<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>
</widget>
</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">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding">
Expand All @@ -64,51 +37,44 @@
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
<height>120</height>
</size>
</property>
</widget>
</item>
<item>
<layout class="QFormLayout" name="formLayout">
<property name="fieldGrowthPolicy">
<enum>QFormLayout::AllNonFixedFieldsGrow</enum>
<item row="2" column="0" colspan="2">
<widget class="QLabel" name="label_12">
<property name="text">
<string>Histogram bins</string>
</property>
<item row="0" column="0">
<widget class="QLabel" name="label_12">
<property name="text">
<string>Histogram bins</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QSpinBox" name="mBinsSpinBox">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>999</number>
</property>
<property name="value">
<number>50</number>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QCheckBox" name="mMeanCheckBox">
<property name="text">
<string>Show mean value</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QCheckBox" name="mStdevCheckBox">
<property name="text">
<string>Show standard deviation</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="2" column="2">
<widget class="QSpinBox" name="mBinsSpinBox">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>999</number>
</property>
<property name="value">
<number>50</number>
</property>
</widget>
</item>
<item row="3" column="2">
<widget class="QCheckBox" name="mMeanCheckBox">
<property name="text">
<string>Show mean value</string>
</property>
</widget>
</item>
<item row="4" column="2">
<widget class="QCheckBox" name="mStdevCheckBox">
<property name="text">
<string>Show standard deviation</string>
</property>
</widget>
</item>
</layout>
</widget>
Expand Down