sourceLimit -> maxSourceCount
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801062
This commit is contained in:
parent
3a6281aa6a
commit
47ce519fde
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user