File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -202,6 +202,7 @@ void QgsExpressionBuilderWidget::on_txtExpressionString_textChanged()
202202 // we don't show the user an error as it will be confusing.
203203 if ( text.isEmpty () )
204204 {
205+ this ->lblPreview ->setText (" " );
205206 this ->lblPreview ->setStyleSheet (" " );
206207 this ->txtExpressionString ->setToolTip (" " );
207208 this ->lblPreview ->setToolTip (" " );
@@ -264,6 +265,11 @@ void QgsExpressionBuilderWidget::on_lblPreview_linkActivated(QString link)
264265 mv->exec ();
265266}
266267
268+ void QgsExpressionBuilderWidget::on_mValueListWidget_itemDoubleClicked (QListWidgetItem *item)
269+ {
270+ txtExpressionString->insertPlainText ( " " + item->text () + " " );
271+ }
272+
267273void QgsExpressionBuilderWidget::operatorButtonClicked ()
268274{
269275 QPushButton* button = dynamic_cast <QPushButton*>( sender () );
Original file line number Diff line number Diff line change @@ -136,6 +136,7 @@ public slots:
136136 void on_txtExpressionString_textChanged ();
137137 void on_txtSearchEdit_textChanged ();
138138 void on_lblPreview_linkActivated (QString link);
139+ void on_mValueListWidget_itemDoubleClicked (QListWidgetItem* item);
139140 void operatorButtonClicked ();
140141 void showContextMenu ( const QPoint & );
141142 void loadSampleValues ();
You can’t perform that action at this time.
0 commit comments