Skip to content
Permalink
Browse files

set margins in code instead of .ui file

  • Loading branch information
alexbruy committed Feb 9, 2017
1 parent 2d06cf0 commit 552b6b893733d9f15f3317e6e1ec5f259f73d4ba
Showing with 11 additions and 13 deletions.
  1. +1 −0 src/gui/symbology-ng/qgssymbolselectordialog.cpp
  2. +10 −13 src/ui/qgssymbolselectordialogbase.ui
@@ -230,6 +230,7 @@ QgsSymbolSelectorWidget::QgsSymbolSelectorWidget( QgsSymbol* symbol, QgsStyle* s
mPresentWidget = nullptr;

setupUi( this );
this->layout()->setContentsMargins( 0, 0, 0, 0 );

// setup icons
btnAddLayer->setIcon( QIcon( QgsApplication::iconPath( "symbologyAdd.svg" ) ) );
@@ -14,18 +14,6 @@
<string>Form</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>9</number>
</property>
<item row="1" column="0">
<layout class="QHBoxLayout" name="pushBtnBox">
<property name="spacing">
@@ -148,7 +136,16 @@
<property name="spacing">
<number>0</number>
</property>
<property name="margin">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>

0 comments on commit 552b6b8

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