Skip to content
Permalink
Browse files
Set focus to expression text box after double clicking lists in expre…
…ssion builder widget
  • Loading branch information
nyalldawson committed Jul 24, 2013
1 parent b464dc6 commit 0e55d55e18614a392bd023d3d5fdc9c2c57ebf1e
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/gui/qgsexpressionbuilderwidget.cpp
@@ -156,6 +156,7 @@ void QgsExpressionBuilderWidget::on_expressionTree_doubleClicked( const QModelIn

// Insert the expression text.
txtExpressionString->insertPlainText( item->getExpressionText() );
txtExpressionString->setFocus();
}

void QgsExpressionBuilderWidget::loadFieldNames()
@@ -353,12 +354,14 @@ void QgsExpressionBuilderWidget::on_lblPreview_linkActivated( QString link )
void QgsExpressionBuilderWidget::on_mValueListWidget_itemDoubleClicked( QListWidgetItem *item )
{
txtExpressionString->insertPlainText( " " + item->text() + " " );
txtExpressionString->setFocus();
}

void QgsExpressionBuilderWidget::operatorButtonClicked()
{
QPushButton* button = dynamic_cast<QPushButton*>( sender() );
txtExpressionString->insertPlainText( " " + button->text() + " " );
txtExpressionString->setFocus();
}

void QgsExpressionBuilderWidget::showContextMenu( const QPoint & pt )

0 comments on commit 0e55d55

Please sign in to comment.