Skip to content

Commit

Permalink
[ui] Fix data source selection dialog icon size
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Apr 17, 2019
1 parent 9cb58a8 commit d87c0a2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/gui/qgsdatasourceselectdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@

#include "qgsdatasourceselectdialog.h"
#include "ui_qgsdatasourceselectdialog.h"
#include "qgssettings.h"
#include "qgsgui.h"

#include "qgis.h"
#include "qgsbrowsermodel.h"
#include "qgsgui.h"
#include "qgsguiutils.h"
#include "qgssettings.h"

#include <QPushButton>
#include <QMenu>
Expand Down Expand Up @@ -105,6 +107,8 @@ QgsDataSourceSelectDialog::QgsDataSourceSelectDialog(
connect( mLeFilter, &QgsFilterLineEdit::textChanged, this, &QgsDataSourceSelectDialog::setFilter );
connect( group, &QActionGroup::triggered, this, &QgsDataSourceSelectDialog::setFilterSyntax );

mBrowserToolbar->setIconSize( QgsGuiUtils::iconSize( true ) );

if ( QgsSettings().value( QStringLiteral( "datasourceSelectFilterVisible" ), false, QgsSettings::Section::Gui ).toBool() )
{
mActionShowFilter->trigger();
Expand Down
17 changes: 16 additions & 1 deletion src/ui/qgsdatasourceselectdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,26 @@
<string>Dialog</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing">
<number>4</number>
</property>
<property name="leftMargin">
<number>4</number>
</property>
<property name="topMargin">
<number>4</number>
</property>
<property name="rightMargin">
<number>4</number>
</property>
<property name="bottomMargin">
<number>4</number>
</property>
<item>
<widget class="QWidget" name="mContents">
<layout class="QVBoxLayout" name="verticalLayout_2">
<property name="spacing">
<number>6</number>
<number>3</number>
</property>
<property name="leftMargin">
<number>0</number>
Expand Down

0 comments on commit d87c0a2

Please sign in to comment.