Skip to content

Commit

Permalink
Fix dialog spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 25, 2025
1 parent 090e9fb commit 2254c71
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/gui/qgsqueryresultwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ QgsQueryResultWidget::QgsQueryResultWidget( QWidget *parent, QgsAbstractDatabase
// mSqlEditor->setLineNumbersVisible( true );

mToolBar->setIconSize( QgsGuiUtils::iconSize( false ) );
// explicitly needed for some reason (Qt 5.15)
mainLayout->setSpacing( 6 );
progressLayout->setSpacing( 6 );

mQueryResultsTableView->hide();
mQueryResultsTableView->setItemDelegate( new QgsQueryResultItemDelegate( mQueryResultsTableView ) );
Expand Down
4 changes: 2 additions & 2 deletions src/ui/qgsqueryresultwidgetbase.ui
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_3">
<layout class="QVBoxLayout" name="mainLayout">
<property name="leftMargin">
<number>6</number>
</property>
Expand All @@ -78,7 +78,7 @@
<widget class="QWidget" name="mSqlEditorContainer" native="true"/>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout" stretch="0,0,0,1,0">
<layout class="QHBoxLayout" name="progressLayout" stretch="0,0,0,1,0">
<item>
<widget class="QPushButton" name="mExecuteButton">
<property name="enabled">
Expand Down

0 comments on commit 2254c71

Please sign in to comment.