Skip to content

Commit

Permalink
Set focus to expression text box after double clicking lists in expre…
Browse files Browse the repository at this point in the history
…ssion builder widget
  • Loading branch information
nyalldawson committed Jul 24, 2013
1 parent b464dc6 commit 0e55d55
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/qgsexpressionbuilderwidget.cpp
Expand Up @@ -156,6 +156,7 @@ void QgsExpressionBuilderWidget::on_expressionTree_doubleClicked( const QModelIn

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

void QgsExpressionBuilderWidget::loadFieldNames()
Expand Down Expand Up @@ -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 )
Expand Down

0 comments on commit 0e55d55

Please sign in to comment.