API reviews:

ThemeChanged()->Q_PRIVATE_SLOT

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802130
This commit is contained in:
Marco Martin 2008-04-28 15:55:13 +00:00
parent 48be92bdab
commit 9bee311b96
2 changed files with 6 additions and 10 deletions

View File

@ -324,6 +324,11 @@ public:
q->updateConstraints(ImmutableConstraint); q->updateConstraints(ImmutableConstraint);
} }
} }
void themeChanged()
{
q->update();
}
//TODO: examine the usage of memory here; there's a pretty large //TODO: examine the usage of memory here; there's a pretty large
// number of members at this point. // number of members at this point.
@ -1472,11 +1477,6 @@ bool Applet::isContainment() const
return d->isContainment; return d->isContainment;
} }
void Applet::themeChanged()
{
update();
}
} // Plasma namespace } // Plasma namespace
#include "applet.moc" #include "applet.moc"

View File

@ -539,11 +539,6 @@ class PLASMA_EXPORT Applet : public QGraphicsWidget
*/ */
void flushPendingConstraintsEvents(); void flushPendingConstraintsEvents();
/**
* called when the Plasma::Theme has changed
*/
void themeChanged();
protected: protected:
/** /**
* @param parent the QGraphicsItem this applet is parented to * @param parent the QGraphicsItem this applet is parented to
@ -693,6 +688,7 @@ class PLASMA_EXPORT Applet : public QGraphicsWidget
private: private:
Q_DISABLE_COPY(Applet) Q_DISABLE_COPY(Applet)
Q_PRIVATE_SLOT(d, void checkImmutability()) Q_PRIVATE_SLOT(d, void checkImmutability())
Q_PRIVATE_SLOT(d, void themeChanged())
/** /**
* Reimplemented from QGraphicsItem * Reimplemented from QGraphicsItem