diff --git a/kcm/src/kcm_kscreen.cpp b/kcm/src/kcm_kscreen.cpp --- a/kcm/src/kcm_kscreen.cpp +++ b/kcm/src/kcm_kscreen.cpp @@ -70,6 +70,7 @@ void KCMKScreen::configReady(ConfigOperation* op) { QHBoxLayout *layout = new QHBoxLayout(this); + layout->setMargin(0); if (op->hasError()) { mKScreenWidget = 0; diff --git a/kcm/src/widget.cpp b/kcm/src/widget.cpp --- a/kcm/src/widget.cpp +++ b/kcm/src/widget.cpp @@ -79,6 +79,8 @@ widget->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::MinimumExpanding); QVBoxLayout *vbox = new QVBoxLayout(widget); + const int topMargin = style()->pixelMetric(QStyle::PM_LayoutTopMargin, 0, this); + vbox->setContentsMargins(0, topMargin, 0, 0); widget->setLayout(vbox); QHBoxLayout *hbox = new QHBoxLayout;