Skip to content

Commit

Permalink
fix xenial (Qt <5.7) build
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Mar 8, 2018
1 parent 5710709 commit ad22499
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/core/processing/qgsprocessingparametertypeimpl.h
Expand Up @@ -393,7 +393,11 @@ class CORE_EXPORT QgsProcessingParameterTypeVectorDestination : public QgsProces
{
ParameterFlags flags = QgsProcessingParameterType::flags();

#if QT_VERSION >= 0x50700
flags.setFlag( ParameterFlag::ExposeToModeler, false );
#else
flags &= ~ParameterFlag::ExposeToModeler;
#endif

return flags;
}
Expand Down Expand Up @@ -435,7 +439,11 @@ class CORE_EXPORT QgsProcessingParameterTypeFileDestination : public QgsProcessi
{
ParameterFlags flags = QgsProcessingParameterType::flags();

#if QT_VERSION >= 0x50700
flags.setFlag( ParameterFlag::ExposeToModeler, false );
#else
flags &= ~ParameterFlag::ExposeToModeler;
#endif

return flags;
}
Expand Down Expand Up @@ -478,7 +486,11 @@ class CORE_EXPORT QgsProcessingParameterTypeFolderDestination : public QgsProces
{
ParameterFlags flags = QgsProcessingParameterType::flags();

#if QT_VERSION >= 0x50700
flags.setFlag( ParameterFlag::ExposeToModeler, false );
#else
flags &= ~ParameterFlag::ExposeToModeler;
#endif

return flags;
}
Expand Down Expand Up @@ -520,7 +532,11 @@ class CORE_EXPORT QgsProcessingParameterTypeRasterDestination : public QgsProces
{
ParameterFlags flags = QgsProcessingParameterType::flags();

#if QT_VERSION >= 0x50700
flags.setFlag( ParameterFlag::ExposeToModeler, false );
#else
flags &= ~ParameterFlag::ExposeToModeler;
#endif

return flags;
}
Expand Down

0 comments on commit ad22499

Please sign in to comment.