Skip to content
Permalink
Browse files

Fix some warnings

  • Loading branch information
nyalldawson committed Sep 4, 2018
1 parent d563034 commit 918be1f2a98f09273f03e6055a886a7e6fe6f3ed
@@ -17,6 +17,7 @@

#include "qgsprocessingwidgetwrapperimpl.h"
#include "qgsprocessingparameters.h"
#include "qgsprocessingoutputs.h"
#include <QLabel>
#include <QHBoxLayout>
#include <QCheckBox>
@@ -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
@@ -29,6 +29,8 @@ class QComboBox;

class GUI_EXPORT QgsProcessingBooleanWidgetWrapper : public QgsAbstractProcessingParameterWidgetWrapper, public QgsProcessingParameterWidgetFactoryInterface
{
Q_OBJECT

public:

QgsProcessingBooleanWidgetWrapper( const QgsProcessingParameterDefinition *parameter = nullptr,

0 comments on commit 918be1f

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