setStorageEnabled() is a way more sensible function name

svn path=/trunk/KDE/kdelibs/; revision=1168023
This commit is contained in:
Marco Martin 2010-08-25 21:35:40 +00:00
parent d3a9a2fc52
commit db7227e7f4
4 changed files with 8 additions and 6 deletions

View File

@ -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());

View File

@ -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;

View File

@ -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

View File

@ -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:
/**