We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9af3c49 commit fc4c579Copy full SHA for fc4c579
src/app/mesh/qgsmeshrendereractivedatasetwidget.cpp
@@ -251,8 +251,14 @@ void QgsMeshRendererActiveDatasetWidget::updateMetadata()
251
QString QgsMeshRendererActiveDatasetWidget::timeToString( double val )
252
{
253
// time val should be in hours
254
+#if QT_VERSION >= 0x050800
255
qint64 seconds = static_cast<qint64>( val * 3600.0 );
256
return QDateTime::fromSecsSinceEpoch( seconds ).toString( "hh:mm:ss" );
257
+#else
258
+ QDateTime t;
259
+ t.setTime_t( static_cast<uint>( val * 3600.0 ) );
260
+ return t.toString( "hh:mm:ss" );
261
+#endif
262
}
263
264
QString QgsMeshRendererActiveDatasetWidget::metadata( QgsMeshDatasetIndex datasetIndex )
0 commit comments