Skip to content

Commit

Permalink
Merge pull request #4115 from alexbruy/vector-style-layout
Browse files Browse the repository at this point in the history
reduce margings main layout in the Style tab of the vector properties dialog
  • Loading branch information
alexbruy authored Feb 9, 2017
2 parents 71f1d28 + af519ba commit 452641b
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/symbology-ng/qgs25drendererwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Qgs25DRendererWidget::Qgs25DRendererWidget( QgsVectorLayer* layer, QgsStyle* sty
}

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

mWallColorButton->setColorDialogTitle( tr( "Select wall color" ) );
mWallColorButton->setAllowAlpha( true );
Expand Down
1 change: 1 addition & 0 deletions src/gui/symbology-ng/qgsarrowsymbollayerwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ QgsArrowSymbolLayerWidget::QgsArrowSymbolLayerWidget( const QgsVectorLayer* vl,
, mLayer( nullptr )
{
setupUi( this );
this->layout()->setContentsMargins( 0, 0, 0, 0 );

mArrowWidthUnitWidget->setUnits( QgsUnitTypes::RenderUnitList() << QgsUnitTypes::RenderMillimeters << QgsUnitTypes::RenderMapUnits << QgsUnitTypes::RenderPixels
<< QgsUnitTypes::RenderPoints << QgsUnitTypes::RenderInches );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ QgsCategorizedSymbolRendererWidget::QgsCategorizedSymbolRendererWidget( QgsVecto

// setup user interface
setupUi( this );
this->layout()->setContentsMargins( 0, 0, 0, 0 );

mExpressionWidget->setLayer( mLayer );

Expand Down
1 change: 1 addition & 0 deletions src/gui/symbology-ng/qgsgraduatedsymbolrendererwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ QgsGraduatedSymbolRendererWidget::QgsGraduatedSymbolRendererWidget( QgsVectorLay

// setup user interface
setupUi( this );
this->layout()->setContentsMargins( 0, 0, 0, 0 );

mModel = new QgsGraduatedSymbolRendererModel( this );

Expand Down
1 change: 1 addition & 0 deletions src/gui/symbology-ng/qgsheatmaprendererwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ QgsHeatmapRendererWidget::QgsHeatmapRendererWidget( QgsVectorLayer* layer, QgsSt
}

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

mRadiusUnitWidget->setUnits( QgsUnitTypes::RenderUnitList() << QgsUnitTypes::RenderMillimeters << QgsUnitTypes::RenderPixels << QgsUnitTypes::RenderMapUnits
<< QgsUnitTypes::RenderPoints << QgsUnitTypes::RenderInches );
Expand Down
2 changes: 2 additions & 0 deletions src/gui/symbology-ng/qgspointclusterrendererwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ QgsPointClusterRendererWidget::QgsPointClusterRendererWidget( QgsVectorLayer* la
return;
}
setupUi( this );
this->layout()->setContentsMargins( 0, 0, 0, 0 );

mDistanceUnitWidget->setUnits( QgsUnitTypes::RenderUnitList() << QgsUnitTypes::RenderMillimeters << QgsUnitTypes::RenderMapUnits << QgsUnitTypes::RenderPixels
<< QgsUnitTypes::RenderPoints << QgsUnitTypes::RenderInches );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ QgsPointDisplacementRendererWidget::QgsPointDisplacementRendererWidget( QgsVecto
return;
}
setupUi( this );
this->layout()->setContentsMargins( 0, 0, 0, 0 );

mDistanceUnitWidget->setUnits( QgsUnitTypes::RenderUnitList() << QgsUnitTypes::RenderMillimeters << QgsUnitTypes::RenderMapUnits << QgsUnitTypes::RenderPixels
<< QgsUnitTypes::RenderPoints << QgsUnitTypes::RenderInches );
Expand Down
1 change: 1 addition & 0 deletions src/gui/symbology-ng/qgsrulebasedrendererwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ QgsRuleBasedRendererWidget::QgsRuleBasedRendererWidget( QgsVectorLayer* layer, Q
}

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

mModel = new QgsRuleBasedRendererModel( mRenderer );
#ifdef ENABLE_MODELTEST
Expand Down

0 comments on commit 452641b

Please sign in to comment.