Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
add new custom widgets to Qt Designer plugin
- Loading branch information
|
@@ -19,10 +19,12 @@ |
|
|
|
|
|
#include "qgscollapsiblegroupboxplugin.h" |
|
|
#include "qgscolorbuttonplugin.h" |
|
|
#include "qgscolorbuttonv2plugin.h" |
|
|
#include "qgsdatadefinedbuttonplugin.h" |
|
|
#include "qgsfieldcomboboxplugin.h" |
|
|
#include "qgsfieldexpressionwidgetplugin.h" |
|
|
#include "qgsmaplayercomboboxplugin.h" |
|
|
#include "qgsrelationreferencewidgetplugin.h" |
|
|
#include "qgsscalerangewidgetplugin.h" |
|
|
|
|
|
|
|
@@ -31,10 +33,12 @@ QgisCustomWidgets::QgisCustomWidgets( QObject *parent ) |
|
|
{ |
|
|
mWidgets.append( new QgsCollapsibleGroupBoxPlugin ); |
|
|
mWidgets.append( new QgsColorButtonPlugin ); |
|
|
mWidgets.append( new QgsColorButtonV2Plugin ); |
|
|
mWidgets.append( new QgsDataDefinedButtonPlugin ); |
|
|
mWidgets.append( new QgsFieldComboBoxPlugin ); |
|
|
mWidgets.append( new QgsFieldExpressionWidgetPlugin ); |
|
|
mWidgets.append( new QgsMapLayerComboBoxPlugin ); |
|
|
mWidgets.append( new QgsRelationReferenceWidgetPlugin ); |
|
|
mWidgets.append( new QgsScaleRangeWidgetPlugin ); |
|
|
} |
|
|
|
|
|
|
@@ -71,7 +71,7 @@ void QgsRelationReferenceWidgetPlugin::initialize( QDesignerFormEditorInterface |
|
|
|
|
|
QString QgsRelationReferenceWidgetPlugin::toolTip() const |
|
|
{ |
|
|
return "Select color"; |
|
|
return "Relation reference"; |
|
|
} |
|
|
|
|
|
QString QgsRelationReferenceWidgetPlugin::whatsThis() const |
|
@@ -82,7 +82,7 @@ QString QgsRelationReferenceWidgetPlugin::whatsThis() const |
|
|
QString QgsRelationReferenceWidgetPlugin::domXml() const |
|
|
{ |
|
|
return QString( "<ui language=\"c++\">\n" |
|
|
" <widget class=\"%1\" name=\"mColorButton\">\n" |
|
|
" <widget class=\"%1\" name=\"mRelationReference\">\n" |
|
|
" <property name=\"geometry\">\n" |
|
|
" <rect>\n" |
|
|
" <x>0</x>\n" |
|
|