From kde-core-devel Sun Dec 23 17:19:05 2007 From: =?UTF-8?B?QXVyw6lsaWVuIEfDonRlYXU=?= Date: Sun, 23 Dec 2007 17:19:05 +0000 To: kde-core-devel Subject: [PATCH] Fix double margins for KCModules Message-Id: X-MARC-Message: https://marc.info/?l=kde-core-devel&m=119843317527470 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--nextPart59939031.qPFmgK76n5" --nextPart59939031.qPFmgK76n5 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8Bit Hello, You might getting familiar with my current obsession: removing double margins in KDE dialogs :-). Attached patch fixes most cases of double margins from KCModules based class. Is it ok to commit? Aurélien --nextPart59939031.qPFmgK76n5 Content-Type: text/x-diff; name="kdelibs_kcmoduleproxy_nodoublemargins.diff" Content-Transfer-Encoding: 8Bit Content-Disposition: attachment; filename="kdelibs_kcmoduleproxy_nodoublemargins.diff" Index: kutils/kcmoduleproxy.cpp =================================================================== --- kutils/kcmoduleproxy.cpp (révision 751500) +++ kutils/kcmoduleproxy.cpp (copie de travail) @@ -111,6 +111,9 @@ QObject::connect( kcm, SIGNAL(quickHelpChanged()), parent, SIGNAL(quickHelpChanged()) ); parent->setWhatsThis( kcm->quickHelp() ); + if ( kcm->layout() ) { + kcm->layout()->setMargin( 0 ); + } topLayout->addWidget( kcm ); QDBusConnection::sessionBus().registerObject(dbusPath, new KSettingsWidgetAdaptor(parent), QDBusConnection::ExportAllSlots); --nextPart59939031.qPFmgK76n5--