Skip to content
Permalink
Browse files

fix windows build and some warnings

  • Loading branch information
jef-n committed Nov 19, 2020
1 parent d984d3a commit a5ac126ae492496ae02bb718ed4a7b4522fb167d
@@ -26,7 +26,7 @@
#include <QObject>

class QgsPointCloudLayer;
class QgsPointCloud3DSymbol;
#include "qgspointcloud3dsymbol.h"

#ifndef SIP_RUN

@@ -59,12 +59,12 @@ class _3D_EXPORT QgsTerrainDownloader
~QgsTerrainDownloader();

//! Definition of data source for terrain tiles (assuming "terrarium" data encoding with usual XYZ tiling scheme)
typedef struct
struct DataSource
{
QString uri; //!< HTTP(S) template for XYZ tiles requests (e.g. http://example.com/{z}/{x}/{y}.png)
int zMin = 0; //!< Minimum zoom level (Z) with valid data
int zMax = 0; //!< Maximum zoom level (Z) with valid data
} DataSource;
};

//! Returns the data source used by default
static DataSource defaultDataSource();
@@ -122,11 +122,11 @@ QVariant QgsDatabaseTableModel::data( const QModelIndex &index, int role ) const
{
return QgsLayerItem::iconPoint();
}
case QgsWkbTypes::PolygonGeometry :
case QgsWkbTypes::PolygonGeometry:
{
return QgsLayerItem::iconPolygon();
}
case QgsWkbTypes::LineGeometry :
case QgsWkbTypes::LineGeometry:
{
return QgsLayerItem::iconLine();
}
@@ -452,8 +452,6 @@ QDateTime QgsWmsSettings::parseWmstDateTimes( QString item )
// Standard item will have YYYY-MM-DDTHH:mm:ss.SSSZ
// format a Qt::ISODateWithMs

QString format = "yyyy-MM-ddTHH:mm:ss.SSSZ";

// Check if it does not have time part
if ( !item.contains( 'T' ) )
return QDateTime::fromString( item, "yyyy-MM-dd" );

0 comments on commit a5ac126

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