mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
Now the widgets factories can give a score on how good they could handle a widget. Additionaly, plugins can be added to choose a widget factory in function of an external information. One of them uses a table in PostgresQL to allow specification of the widget type and configuration. I took the opportunity to remove a few deprecated method in relation to this.
33 lines
619 B
Plaintext
33 lines
619 B
Plaintext
/** \ingroup core
|
|
* Holder for the widget type and its configuration for a field.
|
|
*/
|
|
class QgsEditorWidgetSetup
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgseditorwidgetsetup.h>
|
|
%End
|
|
public:
|
|
/**
|
|
* Constructor
|
|
*/
|
|
QgsEditorWidgetSetup( const QString& type, const QgsEditorWidgetConfig& config );
|
|
QgsEditorWidgetSetup();
|
|
|
|
/**
|
|
* @return the widget type to use
|
|
*/
|
|
QString type() const;
|
|
|
|
/**
|
|
* @return the widget configuration to used
|
|
*/
|
|
QgsEditorWidgetConfig config() const;
|
|
|
|
/**
|
|
* @return true if there is no widget configured.
|
|
*/
|
|
bool isNull() const;
|
|
};
|
|
|
|
|