Skip to content
Permalink
Browse files

Add item from value list on double click

  • Loading branch information
NathanW2 committed Oct 16, 2011
1 parent 5797360 commit 17d326ee94f83a91cb8b91480e0b60e84afddab1
Showing with 7 additions and 0 deletions.
  1. +6 −0 src/gui/qgsexpressionbuilder.cpp
  2. +1 −0 src/gui/qgsexpressionbuilder.h
@@ -202,6 +202,7 @@ void QgsExpressionBuilderWidget::on_txtExpressionString_textChanged()
// we don't show the user an error as it will be confusing.
if ( text.isEmpty() )
{
this->lblPreview->setText("");
this->lblPreview->setStyleSheet("");
this->txtExpressionString->setToolTip("");
this->lblPreview->setToolTip("");
@@ -264,6 +265,11 @@ void QgsExpressionBuilderWidget::on_lblPreview_linkActivated(QString link)
mv->exec();
}

void QgsExpressionBuilderWidget::on_mValueListWidget_itemDoubleClicked(QListWidgetItem *item)
{
txtExpressionString->insertPlainText( " " + item->text() + " " );
}

void QgsExpressionBuilderWidget::operatorButtonClicked()
{
QPushButton* button = dynamic_cast<QPushButton*>( sender() );
@@ -136,6 +136,7 @@ public slots:
void on_txtExpressionString_textChanged();
void on_txtSearchEdit_textChanged();
void on_lblPreview_linkActivated(QString link);
void on_mValueListWidget_itemDoubleClicked(QListWidgetItem* item);
void operatorButtonClicked();
void showContextMenu( const QPoint & );
void loadSampleValues();

0 comments on commit 17d326e

Please sign in to comment.
You can’t perform that action at this time.