Skip to content
Permalink
Browse files

never hide static dataset widget

  • Loading branch information
vcloarec authored and nyalldawson committed Jun 2, 2020
1 parent 8fb8e45 commit 7cc27af6ef5ba3d4836702edbf83f0656509d974
@@ -80,7 +80,6 @@ QgsMeshLayerProperties::QgsMeshLayerProperties( QgsMapLayer *lyr, QgsMapCanvas *

connect( mTemporalReloadButton, &QPushButton::clicked, this, &QgsMeshLayerProperties::reloadTemporalProperties );
connect( mTemporalDateTimeReference, &QDateTimeEdit::dateTimeChanged, this, &QgsMeshLayerProperties::onTimeReferenceChange );
connect( mTemporalStaticDatasetCheckBox, &QCheckBox::toggled, this, &QgsMeshLayerProperties::onStaticDatasetCheckBoxChanged );
connect( mMeshLayer, &QgsMeshLayer::activeScalarDatasetGroupChanged, mStaticScalarWidget, &QgsMeshStaticDatasetWidget::setScalarDatasetGroup );
connect( mMeshLayer, &QgsMeshLayer::activeVectorDatasetGroupChanged, mStaticScalarWidget, &QgsMeshStaticDatasetWidget::setVectorDatasetGroup );

@@ -218,7 +217,6 @@ void QgsMeshLayerProperties::syncToLayer()
mComboBoxTemporalDatasetMatchingMethod->findData( temporalProperties->matchingMethod() ) );

mStaticScalarWidget->syncToLayer();
mStaticScalarWidget->setVisible( !mMeshLayer->temporalProperties()->isActive() );
mTemporalStaticDatasetCheckBox->setChecked( !mMeshLayer->temporalProperties()->isActive() );
}

@@ -463,8 +461,3 @@ void QgsMeshLayerProperties::onTimeReferenceChange()
mTemporalDateTimeStart->setDateTime( timeExtent.begin() );
mTemporalDateTimeEnd->setDateTime( timeExtent.end() );
}

void QgsMeshLayerProperties::onStaticDatasetCheckBoxChanged()
{
mStaticScalarWidget->setVisible( mTemporalStaticDatasetCheckBox->isChecked() );
}
@@ -74,7 +74,6 @@ class APP_EXPORT QgsMeshLayerProperties : public QgsOptionsDialogBase, private U

void onTimeReferenceChange();

void onStaticDatasetCheckBoxChanged();
private:
//! Pointer to the mesh styling widget
QgsRendererMeshPropertiesWidget *mRendererMeshPropertiesWidget = nullptr;
@@ -417,7 +417,6 @@ QgsMeshDatasetValue QgsMeshLayer::dataset1dValue( const QgsMeshDatasetIndex &ind
}
}


return value;
}

@@ -342,20 +342,32 @@ border-radius: 2px;</string>
<widget class="QgsMeshDatasetGroupTreeWidget" name="mDatasetGroupTreeWidget" native="true"/>
</item>
<item>
<widget class="QCheckBox" name="mTemporalStaticDatasetCheckBox">
<property name="text">
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>Static Dataset</string>
</property>
</widget>
</item>
<item>
<widget class="QgsMeshStaticDatasetWidget" name="mStaticScalarWidget" native="true">
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<layout class="QVBoxLayout" name="verticalLayout_7">
<item>
<widget class="QgsMeshStaticDatasetWidget" name="mStaticScalarWidget" native="true">
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="mTemporalStaticDatasetCheckBox">
<property name="toolTip">
<string>Static dataset even if the temporal navigation is on</string>
</property>
<property name="text">
<string>Force Static Dataset with Temporal Navigation</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>

0 comments on commit 7cc27af

Please sign in to comment.
You can’t perform that action at this time.