2016-07-15 12:11:43 +02:00
|
|
|
/** \ingroup core
|
|
|
|
* Holder for the widget type and its configuration for a field.
|
|
|
|
*/
|
|
|
|
class QgsEditorWidgetSetup
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgseditorwidgetsetup.h>
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* Constructor
|
|
|
|
*/
|
2016-12-05 11:24:30 +01:00
|
|
|
QgsEditorWidgetSetup( const QString& type, const QVariantMap& config );
|
2016-07-15 12:11:43 +02:00
|
|
|
QgsEditorWidgetSetup();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return the widget type to use
|
|
|
|
*/
|
|
|
|
QString type() const;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return the widget configuration to used
|
|
|
|
*/
|
2016-12-05 11:24:30 +01:00
|
|
|
QVariantMap config() const;
|
2016-07-15 12:11:43 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @return true if there is no widget configured.
|
|
|
|
*/
|
|
|
|
bool isNull() const;
|
|
|
|
};
|
|
|
|
|
|
|
|
|