No need for special margin treatmeant anymore

Remove unneded code.
This commit is contained in:
dt
2010-05-21 14:29:11 +02:00
parent 7b60fd1b89
commit 070f4df485
6 changed files with 14 additions and 37 deletions

View File

@@ -210,9 +210,7 @@ void PanelsWidget::addPropertiesPanel(IPropertiesPanel *panel)
void PanelsWidget::addPanelWidget(IPropertiesPanel *panel, int row)
{
QWidget *widget = panel->widget();
int leftMargin = (panel->flags() & IPropertiesPanel::NoLeftMargin)
? 0 : Constants::PANEL_LEFT_MARGIN;
widget->setContentsMargins(leftMargin,
widget->setContentsMargins(Constants::PANEL_LEFT_MARGIN,
ABOVE_CONTENTS_MARGIN, 0,
BELOW_CONTENTS_MARGIN);
widget->setParent(m_root);