Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Port away from deprecated QLayout::setMargin()

parent cfc0a2ab
......@@ -54,7 +54,7 @@ KompareConnectWidgetFrame::KompareConnectWidgetFrame(ViewSettings* settings,
bottomLine->setSizePolicy(QSizePolicy(QSizePolicy::Ignored, QSizePolicy::Fixed));
bottomLine->setFixedHeight(1);
m_layout.setSpacing(0);
m_layout.setMargin(0);
m_layout.setContentsMargins(0, 0, 0, 0);
m_layout.addWidget(&m_label);
m_layout.addWidget(bottomLine);
m_layout.addWidget(&m_wid);
......
......@@ -67,7 +67,7 @@ KompareListViewFrame::KompareListViewFrame(bool isSource,
bottomLine->setFixedHeight(1);
m_label.setMargin(3);
m_layout.setSpacing(0);
m_layout.setMargin(0);
m_layout.setContentsMargins(0, 0, 0, 0);
m_layout.addWidget(&m_label);
m_layout.addWidget(bottomLine);
m_layout.addWidget(&m_view);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment