Skip to content
Permalink
Browse files

Make it work with Qt5 < 5.6

  • Loading branch information
wonder-sk committed Aug 11, 2016
1 parent 46f7c64 commit be3c780f16a18b7670667d08e5ba8400ce154c21
Showing with 11 additions and 0 deletions.
  1. +11 −0 src/providers/postgres/qgspostgresprovider.cpp
@@ -403,6 +403,17 @@ static bool operator<( const QVariant &a, const QVariant &b )
}
#endif

#if QT_VERSION >= 0x050000 && QT_VERSION < 0x050600
#include <algorithm>
template <typename T>
bool operator<( const QList<T> &lhs, const QList<T> &rhs )
{
return std::lexicographical_compare( lhs.begin(), lhs.end(),
rhs.begin(), rhs.end() );
}
#endif


QgsFeatureIterator QgsPostgresProvider::getFeatures( const QgsFeatureRequest& request ) const
{
if ( !mValid )

0 comments on commit be3c780

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