|
25 | 25 | #include "qgsdoublespinboxplugin.h" |
26 | 26 | #include "qgsfieldcomboboxplugin.h" |
27 | 27 | #include "qgsfieldexpressionwidgetplugin.h" |
| 28 | +#include "qgsfilterlineeditplugin.h" |
28 | 29 | #include "qgsmaplayercomboboxplugin.h" |
29 | 30 | #include "qgsprojectionselectionwidgetplugin.h" |
30 | 31 | #include "qgsrelationeditorwidgetplugin.h" |
|
36 | 37 | QgisCustomWidgets::QgisCustomWidgets( QObject *parent ) |
37 | 38 | : QObject( parent ) |
38 | 39 | { |
39 | | - mWidgets.append( new QgsCollapsibleGroupBoxPlugin ); |
40 | | - mWidgets.append( new QgsColorButtonPlugin ); |
41 | | - mWidgets.append( new QgsColorButtonV2Plugin ); |
42 | | - mWidgets.append( new QgsDataDefinedButtonPlugin ); |
43 | | - mWidgets.append( new QgsDateTimeEditPlugin ); |
44 | | - mWidgets.append( new QgsDoubleSpinBoxPlugin ); |
45 | | - mWidgets.append( new QgsFieldComboBoxPlugin ); |
46 | | - mWidgets.append( new QgsFieldExpressionWidgetPlugin ); |
47 | | - mWidgets.append( new QgsMapLayerComboBoxPlugin ); |
48 | | - mWidgets.append( new QgsProjectionSelectionWidgetPlugin ); |
49 | | - mWidgets.append( new QgsRelationEditorWidgetPlugin ); |
50 | | - mWidgets.append( new QgsRelationReferenceWidgetPlugin ); |
51 | | - mWidgets.append( new QgsScaleRangeWidgetPlugin ); |
52 | | - mWidgets.append( new QgsSpinBoxPlugin ); |
| 40 | + mWidgets.append( new QgsCollapsibleGroupBoxPlugin(this) ); |
| 41 | + mWidgets.append( new QgsColorButtonPlugin(this) ); |
| 42 | + mWidgets.append( new QgsColorButtonV2Plugin(this) ); |
| 43 | + mWidgets.append( new QgsDataDefinedButtonPlugin(this) ); |
| 44 | + mWidgets.append( new QgsDateTimeEditPlugin(this) ); |
| 45 | + mWidgets.append( new QgsDoubleSpinBoxPlugin(this) ); |
| 46 | + mWidgets.append( new QgsFieldComboBoxPlugin(this) ); |
| 47 | + mWidgets.append( new QgsFieldExpressionWidgetPlugin(this) ); |
| 48 | + mWidgets.append( new QgsFilterLineEditPlugin(this) ); |
| 49 | + mWidgets.append( new QgsMapLayerComboBoxPlugin(this) ); |
| 50 | + mWidgets.append( new QgsProjectionSelectionWidgetPlugin(this) ); |
| 51 | + mWidgets.append( new QgsRelationEditorWidgetPlugin(this) ); |
| 52 | + mWidgets.append( new QgsRelationReferenceWidgetPlugin(this) ); |
| 53 | + mWidgets.append( new QgsScaleRangeWidgetPlugin(this) ); |
| 54 | + mWidgets.append( new QgsSpinBoxPlugin(this) ); |
53 | 55 | } |
54 | 56 |
|
55 | 57 | QList<QDesignerCustomWidgetInterface*> QgisCustomWidgets::customWidgets() const |
56 | 58 | { |
57 | 59 | return mWidgets; |
58 | 60 | } |
59 | 61 |
|
60 | | -Q_EXPORT_PLUGIN2( customwidgetsplugin, QgisCustomWidgets ) |
| 62 | +#if QT_VERSION < 0x050000 |
| 63 | + Q_EXPORT_PLUGIN2( customwidgetsplugin, QgisCustomWidgets ) |
| 64 | +#endif |
0 commit comments