[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: [PATCH] Fix double margins for KCModules
From: Aurélien Gâteau <aurelien.gateau () free ! fr>
Date: 2007-12-23 17:19:05
Message-ID: fkm5a8$450$1 () ger ! gmane ! org
[Download RAW message or body]
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
["kdelibs_kcmoduleproxy_nodoublemargins.diff" (text/x-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);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic