Skip to content
Permalink
Browse files

Fix: Server WMS Dimension time fields filters extension

Only String and DateTime fields could be choose as WMS Dimension time fields.

Extend the filetr by adding Int, LongLOng and Date.
  • Loading branch information
rldhont authored and nyalldawson committed Jan 12, 2021
1 parent 8b13ca6 commit 1f5b9b40886805c32dfa466851b521361c70f160
Showing with 7 additions and 2 deletions.
  1. +7 −2 src/gui/vector/qgswmsdimensiondialog.cpp
@@ -147,8 +147,13 @@ void QgsWmsDimensionDialog::nameChanged( const QString &name )
int data = mNameComboBox->currentData().toInt();
if ( data == QgsVectorLayerServerProperties::TIME )
{
mFieldComboBox->setFilters( QgsFieldProxyModel::String | QgsFieldProxyModel::DateTime );
mEndFieldComboBox->setFilters( QgsFieldProxyModel::String | QgsFieldProxyModel::DateTime );
const QgsFieldProxyModel::Filters filters = QgsFieldProxyModel::String |
QgsFieldProxyModel::Int |
QgsFieldProxyModel::LongLong |
QgsFieldProxyModel::Date |
QgsFieldProxyModel::DateTime;
mFieldComboBox->setFilters( filters );
mEndFieldComboBox->setFilters( filters );
mUnitsLineEdit->setText( QStringLiteral( "ISO8601" ) );
mUnitsLabel->setEnabled( false );
mUnitsLineEdit->setEnabled( false );

0 comments on commit 1f5b9b4

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