@@ -100,12 +100,27 @@ class GUI_EXPORT QgsPropertyColorAssistantWidget : public QgsPropertyAbstractTra
100100
101101// /@endcond PRIVATE
102102
103+
104+
105+ /* *
106+ * \class QgsPropertyAssistantWidget
107+ * \ingroup gui
108+ * Shows a user-friendly assistant guiding users through the creation of QgsProperty overrides.
109+ * \note added in QGIS 3.0
110+ */
103111class GUI_EXPORT QgsPropertyAssistantWidget : public QgsPanelWidget, private Ui::PropertyAssistantBase
104112{
105113 Q_OBJECT
106114
107115 public:
108116
117+ /* *
118+ * Constructor for QgsPropertyAssistantWidget. Aside from a \a parent widget, the constructor accepts a
119+ * corresponding property \a definition from which it customises the displayed options (eg a color based
120+ * property definition will show an assistant to allow creation of color based properties).
121+ * The \a initialState dictates the initial state to show in the widget. A corresponding \a layer
122+ * can also be set to allow population of GUI widgets such as field selectors.
123+ */
109124 QgsPropertyAssistantWidget ( QWidget* parent = nullptr , const QgsPropertyDefinition& definition = QgsPropertyDefinition(),
110125 const QgsProperty& initialState = QgsProperty(),
111126 const QgsVectorLayer* layer = nullptr );
@@ -116,8 +131,16 @@ class GUI_EXPORT QgsPropertyAssistantWidget : public QgsPanelWidget, private Ui:
116131 */
117132 void registerExpressionContextGenerator ( QgsExpressionContextGenerator* generator );
118133
134+ /* *
135+ * Updates a \a property in place to corresponding to the current settings shown
136+ * in the widget.
137+ */
119138 void updateProperty ( QgsProperty& property );
120139
140+ /* *
141+ * Sets a symbol which can be used for previews inside the widget. If not specified, default
142+ * created symbols will be used instead.
143+ */
121144 void setSymbol ( std::shared_ptr< QgsSymbol > symbol ) { mSymbol = symbol; updatePreview (); }
122145
123146 void setDockMode ( bool dockMode ) override ;
0 commit comments