Skip to content

Commit d86cf14

Browse files
author
Ahmad Samir
committed
Port away from deprecated QLayout API
1 parent 833ca9d commit d86cf14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PopupMenu.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ PopupMenu::PopupMenu(bool showAlphaChannel, QWidget *parent) :
2828
mColorDialogButton(new ColorDialogButton(QIcon(QLatin1String(":/icons/ellipsis")), showAlphaChannel))
2929
{
3030
mLayout->setSpacing(0);
31-
mLayout->setMargin(5);
31+
mLayout->setContentsMargins(5, 5, 5, 5);
3232
setLayout(mLayout);
3333

3434
connect(mColorDialogButton, &AbstractPopupMenuButton::colorSelected, this, &PopupMenu::colorSelected);
@@ -136,4 +136,4 @@ QSize PopupMenu::sizeHint() const
136136
return mLayout->sizeHint();
137137
}
138138

139-
} // namespace kColorPicker
139+
} // namespace kColorPicker

0 commit comments

Comments
 (0)