mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
disable project time use in wmst if it is invalid
This commit is contained in:
parent
65bf008478
commit
5cc0a224af
@ -1374,6 +1374,17 @@ void QgsRasterLayerProperties::setSourceStaticTimeState()
|
||||
mWmstOptionsLabel->setText( tr( "The static temporal options below are disabled because the layer "
|
||||
"temporal properties are active, to enable them disable temporal properties "
|
||||
"in the temporal tab. " ) );
|
||||
QgsDateTimeRange range;
|
||||
if ( QgsProject::instance()->timeSettings() )
|
||||
range = QgsProject::instance()->timeSettings()->temporalRange();
|
||||
|
||||
if ( !range.begin().isValid() || !range.end().isValid() )
|
||||
{
|
||||
mProjectTemporalRange->setEnabled( false );
|
||||
mProjectTemporalRangeLabel->setText( tr( "The option below is disabled because the project temporal range "
|
||||
"is not valid, update the project temporal range in the project properties "
|
||||
"with valid values in order to use it here." ) );
|
||||
}
|
||||
|
||||
mWmstGroup->setChecked( uri.contains( QStringLiteral( "allowTemporalUpdates" ) ) &&
|
||||
uri.value( QStringLiteral( "allowTemporalUpdates" ), true ).toBool() );
|
||||
|
@ -430,7 +430,7 @@ border-radius: 2px;</string>
|
||||
<widget class="QgsDateTimeEdit" name="mReferenceDateTimeEdit">
|
||||
<property name="dateTime">
|
||||
<datetime>
|
||||
<hour>13</hour>
|
||||
<hour>12</hour>
|
||||
<minute>20</minute>
|
||||
<second>36</second>
|
||||
<year>2020</year>
|
||||
@ -560,7 +560,7 @@ border-radius: 2px;</string>
|
||||
<widget class="QgsDateTimeEdit" name="mStartStaticDateTimeEdit">
|
||||
<property name="dateTime">
|
||||
<datetime>
|
||||
<hour>20</hour>
|
||||
<hour>18</hour>
|
||||
<minute>3</minute>
|
||||
<second>57</second>
|
||||
<year>2020</year>
|
||||
@ -595,6 +595,16 @@ border-radius: 2px;</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="mProjectTemporalRangeLabel">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QRadioButton" name="mProjectTemporalRange">
|
||||
<property name="text">
|
||||
|
Loading…
x
Reference in New Issue
Block a user