mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
query builder: give focus to the SQL text area when shown
This commit is contained in:
parent
2d7cd38b45
commit
7ab5e0aa42
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user