Skip to content

Commit

Permalink
Replace deprecated QLayout::setMargin
Browse files Browse the repository at this point in the history
  • Loading branch information
lmoureaux committed Nov 13, 2022
1 parent 9eba166 commit 21d0ba0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/chatline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ chat_widget::chat_widget(QWidget *parent)

gl = new QGridLayout;
gl->setVerticalSpacing(0);
gl->setMargin(0);
gl->setContentsMargins(QMargins());
setLayout(gl);

cb = new QPushButton();
Expand Down
2 changes: 1 addition & 1 deletion client/messagewin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ message_widget::message_widget(QWidget *parent)
setParent(parent);
setMinimumSize(200, 100);
layout = new QGridLayout;
layout->setMargin(2);
layout->setContentsMargins(2, 2, 2, 2);
setLayout(layout);
setResizable(Qt::LeftEdge | Qt::BottomEdge);

Expand Down

0 comments on commit 21d0ba0

Please sign in to comment.