Skip to content
Permalink
Browse files
fix build on Qt <5.8
  • Loading branch information
jef-n committed Oct 1, 2018
1 parent 9af3c49 commit fc4c5794d230a37c46d24273b31b0e055f880b5c
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/app/mesh/qgsmeshrendereractivedatasetwidget.cpp
@@ -251,8 +251,14 @@ void QgsMeshRendererActiveDatasetWidget::updateMetadata()
QString QgsMeshRendererActiveDatasetWidget::timeToString( double val )
{
// time val should be in hours
#if QT_VERSION >= 0x050800
qint64 seconds = static_cast<qint64>( val * 3600.0 );
return QDateTime::fromSecsSinceEpoch( seconds ).toString( "hh:mm:ss" );
#else
QDateTime t;
t.setTime_t( static_cast<uint>( val * 3600.0 ) );
return t.toString( "hh:mm:ss" );
#endif
}

QString QgsMeshRendererActiveDatasetWidget::metadata( QgsMeshDatasetIndex datasetIndex )

0 comments on commit fc4c579

Please sign in to comment.