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:
parent
42e49a2b06
commit
c545f4f86c
@ -172,6 +172,13 @@ public:
|
|||||||
|
|
||||||
void paintBackground(QPainter* p2, Applet* q)
|
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();
|
QSize contents = contentSize(q).toSize();
|
||||||
const int contentWidth = contents.width();
|
const int contentWidth = contents.width();
|
||||||
const int contentHeight = contents.height();
|
const int contentHeight = contents.height();
|
||||||
|
Loading…
Reference in New Issue
Block a user