sourceLimit -> maxSourceCount

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801062
This commit is contained in:
Aaron J. Seigo 2008-04-25 15:52:13 +00:00
parent 3a6281aa6a
commit 47ce519fde
2 changed files with 5 additions and 5 deletions

View File

@ -418,7 +418,7 @@ void DataEngine::addSource(DataContainer* source)
emit sourceAdded(source->objectName()); emit sourceAdded(source->objectName());
} }
void DataEngine::setSourceLimit(uint limit) void DataEngine::setMaxSourceCount(uint limit)
{ {
if (d->limit == limit) { if (d->limit == limit) {
return; return;
@ -433,7 +433,7 @@ void DataEngine::setSourceLimit(uint limit)
} }
} }
uint DataEngine::sourceLimit() const uint DataEngine::maxSourceCount() const
{ {
return d->limit; return d->limit;
} }

View File

@ -197,12 +197,12 @@ class PLASMA_EXPORT DataEngine : public QObject
bool isEmpty() const; bool isEmpty() const;
/** /**
* Returns the maximum number of sources this DataEngine will list * Returns the maximum number of sources this DataEngine will have
* at any given time. * at any given time.
* *
* @return the maximum number of sources; zero means no limit. * @return the maximum number of sources; zero means no limit.
*/ */
uint sourceLimit() const; uint maxSourceCount() const;
/** /**
* @return the name of the icon for this data engine; and empty string * @return the name of the icon for this data engine; and empty string
@ -322,7 +322,7 @@ class PLASMA_EXPORT DataEngine : public QObject
* *
* @param limit the maximum number of sources to keep active * @param limit the maximum number of sources to keep active
**/ **/
void setSourceLimit(uint limit); void setMaxSourceCount(uint limit);
/** /**
* Sets the minimum amount of time, in milliseconds, that must pass between * Sets the minimum amount of time, in milliseconds, that must pass between