Skip to content
Permalink
Browse files

query builder: give focus to the SQL text area when shown

  • Loading branch information
3nids committed May 1, 2014
1 parent 2d7cd38 commit 7ab5e0aa42d367d2798d7222baa331e114280a03
Showing with 8 additions and 0 deletions.
  1. +6 −0 src/gui/qgsquerybuilder.cpp
  2. +2 −0 src/gui/qgsquerybuilder.h
@@ -61,6 +61,12 @@ QgsQueryBuilder::~QgsQueryBuilder()
settings.setValue( "/Windows/QueryBuilder/geometry", saveGeometry() );
}

void QgsQueryBuilder::showEvent( QShowEvent *event )
{
txtSQL->setFocus();
QDialog::showEvent( event );
}

void QgsQueryBuilder::populateFields()
{
const QgsFields& fields = mLayer->pendingFields();
@@ -52,6 +52,8 @@ class GUI_EXPORT QgsQueryBuilder : public QDialog, private Ui::QgsQueryBuilderBa

~QgsQueryBuilder();

void showEvent( QShowEvent *event );

public slots:
void accept();
void reject();

0 comments on commit 7ab5e0a

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