summaryrefslogtreecommitdiff
path: root/src/designer/src/lib/shared/iconselector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/designer/src/lib/shared/iconselector.cpp')
-rw-r--r--src/designer/src/lib/shared/iconselector.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/designer/src/lib/shared/iconselector.cpp b/src/designer/src/lib/shared/iconselector.cpp
index 919937dc6..139d61b90 100644
--- a/src/designer/src/lib/shared/iconselector.cpp
+++ b/src/designer/src/lib/shared/iconselector.cpp
@@ -430,7 +430,7 @@ IconSelector::IconSelector(QWidget *parent) :
d_ptr->m_iconButton->setPopupMode(QToolButton::MenuButtonPopup);
l->addWidget(d_ptr->m_stateComboBox);
l->addWidget(d_ptr->m_iconButton);
- l->setMargin(0);
+ l->setContentsMargins(QMargins());
d_ptr->m_stateToName << qMakePair(qMakePair(QIcon::Normal, QIcon::Off), tr("Normal Off") );
d_ptr->m_stateToName << qMakePair(qMakePair(QIcon::Normal, QIcon::On), tr("Normal On") );
@@ -556,14 +556,14 @@ IconThemeEditor::IconThemeEditor(QWidget *parent, bool wantResetButton) :
QWidget (parent), d(new IconThemeEditorPrivate)
{
QHBoxLayout *mainHLayout = new QHBoxLayout;
- mainHLayout->setMargin(0);
+ mainHLayout->setContentsMargins(QMargins());
// Vertically center theme preview label
d->m_themeLabel->setPixmap(d->m_emptyPixmap);
QVBoxLayout *themeLabelVLayout = new QVBoxLayout;
d->m_themeLabel->setMargin(1);
- themeLabelVLayout->setMargin(0);
+ themeLabelVLayout->setContentsMargins(QMargins());
themeLabelVLayout->addSpacerItem(new QSpacerItem(0, 0, QSizePolicy::Ignored, QSizePolicy::MinimumExpanding));
themeLabelVLayout->addWidget(d->m_themeLabel);
themeLabelVLayout->addSpacerItem(new QSpacerItem(0, 0, QSizePolicy::Ignored, QSizePolicy::MinimumExpanding));