Skip to content

Commit

Permalink
set margins in code instead of .ui file
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Feb 9, 2017
1 parent 2d06cf0 commit 552b6b8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
1 change: 1 addition & 0 deletions src/gui/symbology-ng/qgssymbolselectordialog.cpp
Expand Up @@ -230,6 +230,7 @@ QgsSymbolSelectorWidget::QgsSymbolSelectorWidget( QgsSymbol* symbol, QgsStyle* s
mPresentWidget = nullptr; mPresentWidget = nullptr;


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


// setup icons // setup icons
btnAddLayer->setIcon( QIcon( QgsApplication::iconPath( "symbologyAdd.svg" ) ) ); btnAddLayer->setIcon( QIcon( QgsApplication::iconPath( "symbologyAdd.svg" ) ) );
Expand Down
23 changes: 10 additions & 13 deletions src/ui/qgssymbolselectordialogbase.ui
Expand Up @@ -14,18 +14,6 @@
<string>Form</string> <string>Form</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout_2"> <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"> <item row="1" column="0">
<layout class="QHBoxLayout" name="pushBtnBox"> <layout class="QHBoxLayout" name="pushBtnBox">
<property name="spacing"> <property name="spacing">
Expand Down Expand Up @@ -148,7 +136,16 @@
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
</property> </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> <number>0</number>
</property> </property>
<item> <item>
Expand Down

0 comments on commit 552b6b8

Please sign in to comment.