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.

(cherry picked from commit 1f5b9b4)
  • Loading branch information
rldhont authored and nyalldawson committed Jan 12, 2021
1 parent 7b210fa commit 3de1b346b89afcb4ab729f8e7ca13da46624ee7f
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 3de1b34

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