Skip to content

Commit 73d11ae

Browse files
committedMay 6, 2014
field expression widget: better documentation
1 parent 1607396 commit 73d11ae

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎src/gui/qgsfieldexpressionwidget.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ class QgsMapLayer;
2828
class QgsVectorLayer;
2929
class QgsFieldModel;
3030

31+
/**
32+
* @brief The QgsFieldExpressionWidget class reates a widget to choose fields and edit expressions
33+
* It contains a combo boxto display the fields and expression and a button to open the expression dialog.
34+
* The combo box is editable, allowing expressions to be edited inline.
35+
* The validity of the expression is checked live on key press, invalid expressions are displayed in red.
36+
* The expression will be added to the model (and the fieldChanged signals emitted)
37+
* only when editing in the line edit is finished (focus lost, enter key pressed).
38+
*/
3139
class GUI_EXPORT QgsFieldExpressionWidget : public QWidget
3240
{
3341
Q_OBJECT

0 commit comments

Comments
 (0)
Please sign in to comment.