only paint the standard background we have right now for Planar FormFactors

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=719255
This commit is contained in:
Aaron J. Seigo 2007-09-30 18:07:44 +00:00
parent 42e49a2b06
commit c545f4f86c

View File

@ -172,6 +172,13 @@ public:
void paintBackground(QPainter* p2, Applet* q)
{
if (q->formFactor() != Plasma::Planar) {
// we don't paint special backgrounds for other form factors
// if that changes in the future, this method is where such
// background painting code should be added
return;
}
QSize contents = contentSize(q).toSize();
const int contentWidth = contents.width();
const int contentHeight = contents.height();