Skip to content
Permalink
Browse files
Ensure New Mesh layer GUI behaves correctly when it's resized
and remember latest geometry
  • Loading branch information
DelazJ authored and nyalldawson committed Jul 19, 2021
1 parent 6639d73 commit 776592f34ed9d4d084a1035f2c42651a8ebaf6f4
Showing with 11 additions and 16 deletions.
  1. +2 −0 src/app/mesh/qgsnewmeshlayerdialog.cpp
  2. +9 −16 src/ui/mesh/qgsnewmeshlayerdialogbase.ui
@@ -24,6 +24,7 @@
#include "qgsproject.h"
#include "qgsmeshlayer.h"
#include "qgsapplication.h"
#include "qgsgui.h"


QgsNewMeshLayerDialog::QgsNewMeshLayerDialog( QWidget *parent, Qt::WindowFlags fl ) : QDialog( parent, fl )
@@ -38,6 +39,7 @@ QgsNewMeshLayerDialog::QgsNewMeshLayerDialog( QWidget *parent, Qt::WindowFlags f
}

setupUi( this );
QgsGui::enableAutoGeometryRestore( this );
const QList<QgsMeshDriverMetadata> driverList = meta->meshDriversMetadata();

for ( const QgsMeshDriverMetadata &driverMeta : driverList )
@@ -7,13 +7,13 @@
<x>0</x>
<y>0</y>
<width>477</width>
<height>479</height>
<height>450</height>
</rect>
</property>
<property name="windowTitle">
<string>New Mesh Layer</string>
</property>
<layout class="QFormLayout" name="formLayout">
<layout class="QGridLayout" name="gridLayout1">
<item row="0" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
@@ -53,6 +53,12 @@
</item>
<item row="4" column="0" colspan="2">
<widget class="QGroupBox" name="groupBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>Initialize Mesh Using</string>
</property>
@@ -105,7 +111,7 @@
</layout>
</widget>
</item>
<item row="6" column="1">
<item row="5" column="0" colspan="2">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
@@ -115,19 +121,6 @@
</property>
</widget>
</item>
<item row="5" column="1">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<customwidgets>

0 comments on commit 776592f

Please sign in to comment.