From 42e2078cfd41396ceb6d78746f2ebbdd53b11ee8 Mon Sep 17 00:00:00 2001 From: Nate Graham Date: Fri, 18 Sep 2020 15:20:25 -0600 Subject: [PATCH] Add margins to System Activity window Right now it is deliberately setting the margins to zero, which causes all of its UI controls and framed areas to touch the window border, which looks bad and is just an incorrect thing to do in general for a thing that does not deliberately provide its own margins for content. Let's not do that anymore, so the window looks better. BUG: 426661 FIXED-IN: 5.20 --- systemmonitor/ksystemactivitydialog.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/systemmonitor/ksystemactivitydialog.cpp b/systemmonitor/ksystemactivitydialog.cpp index f13fcb16f..667f98262 100644 --- a/systemmonitor/ksystemactivitydialog.cpp +++ b/systemmonitor/ksystemactivitydialog.cpp @@ -44,8 +44,6 @@ KSystemActivityDialog::KSystemActivityDialog(QWidget *parent) m_processList.setScriptingEnabled(true); setSizeGripEnabled(true); - layout()->setContentsMargins(0,0,0,0); - // Since we kinda act like an application more than just a Window, map the usual ctrl+Q shortcut to close as well QAction *closeWindow = new QAction(this); closeWindow->setShortcut(QKeySequence::Quit);