API REVIEW: needsConfiguring() => configurationRequired
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802288
This commit is contained in:
parent
0402391d17
commit
daf3d7a4a2
@ -879,12 +879,12 @@ void Applet::paintWindowFrame ( QPainter * painter, const QStyleOptionGraphicsIt
|
|||||||
//painter->drawRoundedRect(windowFrameGeometry(),5,5);
|
//painter->drawRoundedRect(windowFrameGeometry(),5,5);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Applet::needsConfiguring() const
|
bool Applet::configurationRequired() const
|
||||||
{
|
{
|
||||||
return d->needsConfigOverlay != 0;
|
return d->needsConfigOverlay != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Applet::setNeedsConfiguring(bool needsConfig)
|
void Applet::setConfigurationRequired(bool needsConfig)
|
||||||
{
|
{
|
||||||
if ((d->needsConfigOverlay != 0) == needsConfig) {
|
if ((d->needsConfigOverlay != 0) == needsConfig) {
|
||||||
return;
|
return;
|
||||||
|
6
applet.h
6
applet.h
@ -67,7 +67,7 @@ class PLASMA_EXPORT Applet : public QGraphicsWidget
|
|||||||
Q_PROPERTY(QString category READ category)
|
Q_PROPERTY(QString category READ category)
|
||||||
Q_PROPERTY(ImmutabilityType immutability READ immutability WRITE setImmutability)
|
Q_PROPERTY(ImmutabilityType immutability READ immutability WRITE setImmutability)
|
||||||
Q_PROPERTY(bool hasFailedToLaunch READ hasFailedToLaunch WRITE setFailedToLaunch)
|
Q_PROPERTY(bool hasFailedToLaunch READ hasFailedToLaunch WRITE setFailedToLaunch)
|
||||||
Q_PROPERTY(bool needsConfiguring READ needsConfiguring WRITE setNeedsConfiguring)
|
Q_PROPERTY(bool configurationRequired READ configurationRequired WRITE setConfigurationRequired)
|
||||||
Q_PROPERTY(QRectF geometry READ geometry WRITE setGeometry)
|
Q_PROPERTY(QRectF geometry READ geometry WRITE setGeometry)
|
||||||
Q_PROPERTY(bool shouldConserveResources READ shouldConserveResources)
|
Q_PROPERTY(bool shouldConserveResources READ shouldConserveResources)
|
||||||
Q_PROPERTY(Qt::AspectRatioMode aspectRatioMode READ aspectRatioMode WRITE setAspectRatioMode)
|
Q_PROPERTY(Qt::AspectRatioMode aspectRatioMode READ aspectRatioMode WRITE setAspectRatioMode)
|
||||||
@ -395,7 +395,7 @@ class PLASMA_EXPORT Applet : public QGraphicsWidget
|
|||||||
* @return true if the applet currently needs to be configured,
|
* @return true if the applet currently needs to be configured,
|
||||||
* otherwise, false
|
* otherwise, false
|
||||||
*/
|
*/
|
||||||
bool needsConfiguring() const;
|
bool configurationRequired() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* When the applet needs to be configured before being usable, this
|
* When the applet needs to be configured before being usable, this
|
||||||
@ -409,7 +409,7 @@ class PLASMA_EXPORT Applet : public QGraphicsWidget
|
|||||||
* @param needsConfiguring true if the applet needs to be configured,
|
* @param needsConfiguring true if the applet needs to be configured,
|
||||||
* or false if it doesn't
|
* or false if it doesn't
|
||||||
*/
|
*/
|
||||||
void setNeedsConfiguring(bool needsConfiguring);
|
void setConfigurationRequired(bool needsConfiguring);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return true if this plasmoid provides a GUI configuration
|
* @return true if this plasmoid provides a GUI configuration
|
||||||
|
Loading…
Reference in New Issue
Block a user