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

Commit 96f3e96d authored by Alexander Volkov's avatar Alexander Volkov

Get rid of extra margins

Reviewers: #plasma, davidedmundson

Reviewed By: #plasma, davidedmundson

Subscribers: mart, davidedmundson, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D5888
parent dea0864f
......@@ -70,6 +70,7 @@ KCMKScreen::KCMKScreen(QWidget* parent, const QVariantList& args)
void KCMKScreen::configReady(ConfigOperation* op)
{
QHBoxLayout *layout = new QHBoxLayout(this);
layout->setMargin(0);
if (op->hasError()) {
mKScreenWidget = 0;
......
......@@ -79,6 +79,8 @@ Widget::Widget(QWidget *parent):
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;
......
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