API review: required() -> isRequired()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801415
This commit is contained in:
parent
5ad0e12cdd
commit
eff92e33d7
@ -244,7 +244,7 @@ void PackageStructure::setRequired(const char* key, bool required)
|
|||||||
it.value().required = required;
|
it.value().required = required;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PackageStructure::required(const char* key) const
|
bool PackageStructure::isRequired(const char* key) const
|
||||||
{
|
{
|
||||||
QMap<QByteArray, ContentStructure>::const_iterator it = d->contents.find(key);
|
QMap<QByteArray, ContentStructure>::const_iterator it = d->contents.find(key);
|
||||||
if (it == d->contents.constEnd()) {
|
if (it == d->contents.constEnd()) {
|
||||||
|
@ -166,7 +166,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
* @return true if the item at path exists and is required
|
* @return true if the item at path exists and is required
|
||||||
**/
|
**/
|
||||||
bool required(const char* key) const;
|
bool isRequired(const char* key) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the default mimetypes for any definitions that do not have
|
* Defines the default mimetypes for any definitions that do not have
|
||||||
|
Loading…
Reference in New Issue
Block a user