immutable -> isImmutable.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=691135
This commit is contained in:
Aaron J. Seigo 2007-07-23 00:24:36 +00:00
parent 26b3b62ed7
commit 0491b8b112
4 changed files with 6 additions and 6 deletions

View File

@ -250,7 +250,7 @@ QString Applet::category(const QString& appletName)
return offers.first()->property("X-KDE-PluginInfo-Category").toString(); return offers.first()->property("X-KDE-PluginInfo-Category").toString();
} }
bool Applet::immutable() const bool Applet::isImmutable() const
{ {
return d->immutable; return d->immutable;
} }
@ -261,7 +261,7 @@ void Applet::setImmutable(bool immutable)
QGraphicsItem::GraphicsItemFlags f = flags(); QGraphicsItem::GraphicsItemFlags f = flags();
if (immutable) { if (immutable) {
f ^= QGraphicsItem::ItemIsMovable; f ^= QGraphicsItem::ItemIsMovable;
} else if (!scene() || !static_cast<Corona*>(scene())->immutable()) { } else if (!scene() || !static_cast<Corona*>(scene())->isImmutable()) {
f |= QGraphicsItem::ItemIsMovable; f |= QGraphicsItem::ItemIsMovable;
} }
setFlags(f); setFlags(f);

View File

@ -47,7 +47,7 @@ class PLASMA_EXPORT Applet : public QObject, public Widget
Q_PROPERTY( bool hasConfigurationInterface READ hasConfigurationInterface WRITE setHasConfigurationInterface ) Q_PROPERTY( bool hasConfigurationInterface READ hasConfigurationInterface WRITE setHasConfigurationInterface )
Q_PROPERTY( QString name READ name ) Q_PROPERTY( QString name READ name )
Q_PROPERTY( QString category READ category ) Q_PROPERTY( QString category READ category )
Q_PROPERTY( bool immutable READ immutable WRITE setImmutable ) Q_PROPERTY( bool immutable READ isImmutable WRITE setImmutable )
Q_PROPERTY( bool drawStandardBackground READ drawStandardBackground WRITE setDrawStandardBackground ) Q_PROPERTY( bool drawStandardBackground READ drawStandardBackground WRITE setDrawStandardBackground )
Q_PROPERTY( bool failedToLaunch READ failedToLaunch WRITE setFailedToLaunch ) Q_PROPERTY( bool failedToLaunch READ failedToLaunch WRITE setFailedToLaunch )
Q_PROPERTY( QRectF boundingRect READ boundingRect ) Q_PROPERTY( QRectF boundingRect READ boundingRect )
@ -288,7 +288,7 @@ class PLASMA_EXPORT Applet : public QObject, public Widget
/** /**
* @return true if this applet is immutable * @return true if this applet is immutable
**/ **/
bool immutable() const; bool isImmutable() const;
/** /**
* Sets whether or not this applet is immutable or not. * Sets whether or not this applet is immutable or not.

View File

@ -279,7 +279,7 @@ void Corona::appletDestroyed(QObject* object)
} }
} }
bool Corona::immutable() const bool Corona::isImmutable() const
{ {
return d->immutable; return d->immutable;
} }

View File

@ -47,7 +47,7 @@ public:
/** /**
* The applets and Corona surface are changeable or not * The applets and Corona surface are changeable or not
**/ **/
bool immutable() const; bool isImmutable() const;
/** /**
* The location of the Corona. @see Plasma::Location * The location of the Corona. @see Plasma::Location