Skip to content

Commit 918be1f

Browse files
committedSep 4, 2018
Fix some warnings
1 parent d563034 commit 918be1f

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed
 

‎src/gui/processing/qgsprocessingwidgetwrapperimpl.cpp

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
#include "qgsprocessingwidgetwrapperimpl.h"
1919
#include "qgsprocessingparameters.h"
20+
#include "qgsprocessingoutputs.h"
2021
#include <QLabel>
2122
#include <QHBoxLayout>
2223
#include <QCheckBox>
@@ -119,12 +120,21 @@ QVariant QgsProcessingBooleanWidgetWrapper::widgetValue() const
119120

120121
QStringList QgsProcessingBooleanWidgetWrapper::compatibleParameterTypes() const
121122
{
122-
return QStringList() << "boolean" << "crs" << "layer";
123+
return QStringList() << QgsProcessingParameterBoolean::typeName()
124+
<< QgsProcessingParameterNumber::typeName()
125+
<< QgsProcessingParameterFeatureSource::typeName()
126+
<< QgsProcessingParameterMapLayer::typeName()
127+
<< QgsProcessingParameterRasterLayer::typeName()
128+
<< QgsProcessingParameterVectorLayer::typeName();
123129
}
124130

125131
QStringList QgsProcessingBooleanWidgetWrapper::compatibleOutputTypes() const
126132
{
127-
return QStringList() << "outputNumber" << "outputString" << "outputLayer" << "outputVector" << "outputRaster";
133+
return QStringList() << QgsProcessingOutputNumber::typeName()
134+
<< QgsProcessingOutputMapLayer::typeName()
135+
<< QgsProcessingOutputRasterLayer::typeName()
136+
<< QgsProcessingOutputVectorLayer::typeName()
137+
<< QgsProcessingOutputString::typeName();
128138
}
129139

130140
QList<int> QgsProcessingBooleanWidgetWrapper::compatibleDataTypes() const

‎src/gui/processing/qgsprocessingwidgetwrapperimpl.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ class QComboBox;
2929

3030
class GUI_EXPORT QgsProcessingBooleanWidgetWrapper : public QgsAbstractProcessingParameterWidgetWrapper, public QgsProcessingParameterWidgetFactoryInterface
3131
{
32+
Q_OBJECT
33+
3234
public:
3335

3436
QgsProcessingBooleanWidgetWrapper( const QgsProcessingParameterDefinition *parameter = nullptr,

0 commit comments

Comments
 (0)
Please sign in to comment.