API reviews:
ThemeChanged()->Q_PRIVATE_SLOT svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802130
This commit is contained in:
parent
48be92bdab
commit
9bee311b96
10
applet.cpp
10
applet.cpp
@ -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"
|
||||||
|
6
applet.h
6
applet.h
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user