API REVIEW: needsConfiguring() => configurationRequired

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802288
This commit is contained in:
Aaron J. Seigo 2008-04-29 02:34:21 +00:00
parent 0402391d17
commit daf3d7a4a2
2 changed files with 5 additions and 5 deletions

View File

@ -879,12 +879,12 @@ void Applet::paintWindowFrame ( QPainter * painter, const QStyleOptionGraphicsIt
//painter->drawRoundedRect(windowFrameGeometry(),5,5);
}
bool Applet::needsConfiguring() const
bool Applet::configurationRequired() const
{
return d->needsConfigOverlay != 0;
}
void Applet::setNeedsConfiguring(bool needsConfig)
void Applet::setConfigurationRequired(bool needsConfig)
{
if ((d->needsConfigOverlay != 0) == needsConfig) {
return;

View File

@ -67,7 +67,7 @@ class PLASMA_EXPORT Applet : public QGraphicsWidget
Q_PROPERTY(QString category READ category)
Q_PROPERTY(ImmutabilityType immutability READ immutability WRITE setImmutability)
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(bool shouldConserveResources READ shouldConserveResources)
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,
* otherwise, false
*/
bool needsConfiguring() const;
bool configurationRequired() const;
/**
* 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,
* or false if it doesn't
*/
void setNeedsConfiguring(bool needsConfiguring);
void setConfigurationRequired(bool needsConfiguring);
/**
* @return true if this plasmoid provides a GUI configuration