immutable -> isImmutable.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=691135
This commit is contained in:
parent
26b3b62ed7
commit
0491b8b112
@ -250,7 +250,7 @@ QString Applet::category(const QString& appletName)
|
||||
return offers.first()->property("X-KDE-PluginInfo-Category").toString();
|
||||
}
|
||||
|
||||
bool Applet::immutable() const
|
||||
bool Applet::isImmutable() const
|
||||
{
|
||||
return d->immutable;
|
||||
}
|
||||
@ -261,7 +261,7 @@ void Applet::setImmutable(bool immutable)
|
||||
QGraphicsItem::GraphicsItemFlags f = flags();
|
||||
if (immutable) {
|
||||
f ^= QGraphicsItem::ItemIsMovable;
|
||||
} else if (!scene() || !static_cast<Corona*>(scene())->immutable()) {
|
||||
} else if (!scene() || !static_cast<Corona*>(scene())->isImmutable()) {
|
||||
f |= QGraphicsItem::ItemIsMovable;
|
||||
}
|
||||
setFlags(f);
|
||||
|
4
applet.h
4
applet.h
@ -47,7 +47,7 @@ class PLASMA_EXPORT Applet : public QObject, public Widget
|
||||
Q_PROPERTY( bool hasConfigurationInterface READ hasConfigurationInterface WRITE setHasConfigurationInterface )
|
||||
Q_PROPERTY( QString name READ name )
|
||||
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 failedToLaunch READ failedToLaunch WRITE setFailedToLaunch )
|
||||
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
|
||||
**/
|
||||
bool immutable() const;
|
||||
bool isImmutable() const;
|
||||
|
||||
/**
|
||||
* Sets whether or not this applet is immutable or not.
|
||||
|
@ -279,7 +279,7 @@ void Corona::appletDestroyed(QObject* object)
|
||||
}
|
||||
}
|
||||
|
||||
bool Corona::immutable() const
|
||||
bool Corona::isImmutable() const
|
||||
{
|
||||
return d->immutable;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user