mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -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() );
|
settings.setValue( "/Windows/QueryBuilder/geometry", saveGeometry() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void QgsQueryBuilder::showEvent( QShowEvent *event )
|
||||||
|
{
|
||||||
|
txtSQL->setFocus();
|
||||||
|
QDialog::showEvent( event );
|
||||||
|
}
|
||||||
|
|
||||||
void QgsQueryBuilder::populateFields()
|
void QgsQueryBuilder::populateFields()
|
||||||
{
|
{
|
||||||
const QgsFields& fields = mLayer->pendingFields();
|
const QgsFields& fields = mLayer->pendingFields();
|
||||||
|
@ -52,6 +52,8 @@ class GUI_EXPORT QgsQueryBuilder : public QDialog, private Ui::QgsQueryBuilderBa
|
|||||||
|
|
||||||
~QgsQueryBuilder();
|
~QgsQueryBuilder();
|
||||||
|
|
||||||
|
void showEvent( QShowEvent *event );
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void accept();
|
void accept();
|
||||||
void reject();
|
void reject();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user