Commit 82772aba authored by Laurent Montel's avatar Laurent Montel 😁

Remove deprecated method

parent 14cc6fb3
......@@ -71,7 +71,7 @@ void KCMKScreen::configReady(ConfigOperation* op)
{
delete mMainLayout;
mMainLayout = new QHBoxLayout(this);
mMainLayout->setMargin(0);
mMainLayout->setContentsMargins(0, 0, 0, 0);
if (op->hasError()) {
mKScreenWidget = nullptr;
......
......@@ -79,7 +79,7 @@ void ResolutionSlider::init()
QGridLayout *layout = new QGridLayout(this);
int margin = layout->margin();
// Avoid double margins
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
if (mModes.count() > 15) {
std::reverse(mModes.begin(), mModes.end());
......
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