Skip to content

Commit

Permalink
Fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 4, 2018
1 parent d563034 commit 918be1f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/gui/processing/qgsprocessingwidgetwrapperimpl.cpp
Expand Up @@ -17,6 +17,7 @@

#include "qgsprocessingwidgetwrapperimpl.h"
#include "qgsprocessingparameters.h"
#include "qgsprocessingoutputs.h"
#include <QLabel>
#include <QHBoxLayout>
#include <QCheckBox>
Expand Down Expand Up @@ -119,12 +120,21 @@ QVariant QgsProcessingBooleanWidgetWrapper::widgetValue() const

QStringList QgsProcessingBooleanWidgetWrapper::compatibleParameterTypes() const
{
return QStringList() << "boolean" << "crs" << "layer";
return QStringList() << QgsProcessingParameterBoolean::typeName()
<< QgsProcessingParameterNumber::typeName()
<< QgsProcessingParameterFeatureSource::typeName()
<< QgsProcessingParameterMapLayer::typeName()
<< QgsProcessingParameterRasterLayer::typeName()
<< QgsProcessingParameterVectorLayer::typeName();
}

QStringList QgsProcessingBooleanWidgetWrapper::compatibleOutputTypes() const
{
return QStringList() << "outputNumber" << "outputString" << "outputLayer" << "outputVector" << "outputRaster";
return QStringList() << QgsProcessingOutputNumber::typeName()
<< QgsProcessingOutputMapLayer::typeName()
<< QgsProcessingOutputRasterLayer::typeName()
<< QgsProcessingOutputVectorLayer::typeName()
<< QgsProcessingOutputString::typeName();
}

QList<int> QgsProcessingBooleanWidgetWrapper::compatibleDataTypes() const
Expand Down
2 changes: 2 additions & 0 deletions src/gui/processing/qgsprocessingwidgetwrapperimpl.h
Expand Up @@ -29,6 +29,8 @@ class QComboBox;

class GUI_EXPORT QgsProcessingBooleanWidgetWrapper : public QgsAbstractProcessingParameterWidgetWrapper, public QgsProcessingParameterWidgetFactoryInterface
{
Q_OBJECT

public:

QgsProcessingBooleanWidgetWrapper( const QgsProcessingParameterDefinition *parameter = nullptr,
Expand Down

0 comments on commit 918be1f

Please sign in to comment.