setStorageEnabled() is a way more sensible function name
svn path=/trunk/KDE/kdelibs/; revision=1168023
This commit is contained in:
parent
d3a9a2fc52
commit
db7227e7f4
@ -144,7 +144,7 @@ void DataContainer::connectVisualization(QObject *visualization, uint pollingInt
|
||||
}
|
||||
}
|
||||
|
||||
void DataContainer::setStorageEnable(bool store)
|
||||
void DataContainer::setStorageEnabled(bool store)
|
||||
{
|
||||
QTime time = QTime::currentTime();
|
||||
qsrand((uint)time.msec());
|
||||
|
@ -127,11 +127,13 @@ class PLASMA_EXPORT DataContainer : public QObject
|
||||
/**
|
||||
* sets this data container to be automatically stored.
|
||||
* @param whether this data container should be stored
|
||||
* @since 4.6
|
||||
*/
|
||||
void setStorageEnable(bool store);
|
||||
void setStorageEnabled(bool store);
|
||||
|
||||
/**
|
||||
* @return true if the data container has been marked for storage
|
||||
* @since 4.6
|
||||
*/
|
||||
bool isStorageEnabled() const;
|
||||
|
||||
|
@ -500,10 +500,10 @@ void DataEngine::setName(const QString &name)
|
||||
setObjectName(name);
|
||||
}
|
||||
|
||||
void DataEngine::setStorageEnable(const QString &source, bool store)
|
||||
void DataEngine::setStorageEnabled(const QString &source, bool store)
|
||||
{
|
||||
DataContainer *s = d->source(source, false);
|
||||
s->setStorageEnable(store);
|
||||
s->setStorageEnabled(store);
|
||||
}
|
||||
|
||||
// Private class implementations
|
||||
|
@ -456,9 +456,9 @@ NoAlignment) const;
|
||||
* is unavailable.
|
||||
* @param source the name of the source
|
||||
* @param store if source should be stored
|
||||
* @since 4.6
|
||||
*/
|
||||
void setStorageEnable(const QString &source, bool store);
|
||||
|
||||
void setStorageEnabled(const QString &source, bool store);
|
||||
|
||||
protected Q_SLOTS:
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user