[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdebase/kdm/kfrontend/themer
From:       Aurélien Gâteau <aurelien.gateau () free ! fr>
Date:       2006-05-18 12:05:36
Message-ID: 1147953936.072656.9969.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 542140 by gateau:

Remove borders around widgets so that they blend nicely with the theme
background


 M  +6 -0      kdmitem.cpp  


--- branches/KDE/3.5/kdebase/kdm/kfrontend/themer/kdmitem.cpp #542139:542140
@@ -31,6 +31,7 @@
 #include <kglobal.h>
 #include <kdebug.h>
 
+#include <qframe.h>
 #include <qwidget.h>
 #include <qlayout.h>
 #include <qimage.h>
@@ -189,6 +190,11 @@
 	else
 		myWidget->show();
 
+	// Remove borders so that it blends nicely with the theme background
+	QFrame* frame = ::qt_cast<QFrame *>( widget );
+	if (frame)
+		frame->setFrameStyle( QFrame::NoFrame );
+
 	myWidget->setGeometry(area);
 
 	connect( myWidget, SIGNAL(destroyed()), SLOT(widgetGone()) );
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic