mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
plasma: mark Plasma::ConfigLoader getters as const
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
8bdcf8d36f
commit
f92c0651ba
2 changed files with 4 additions and 6 deletions
|
@ -394,19 +394,17 @@ ConfigLoader::~ConfigLoader()
|
|||
delete d;
|
||||
}
|
||||
|
||||
KConfigSkeletonItem *ConfigLoader::findItemByGroup(const QString &group, const QString &key)
|
||||
KConfigSkeletonItem *ConfigLoader::findItemByGroup(const QString &group, const QString &key) const
|
||||
{
|
||||
return KConfigSkeleton::findItem(d->keysToNames[group + key]);
|
||||
}
|
||||
|
||||
QVariant ConfigLoader::property(const QString &name)
|
||||
QVariant ConfigLoader::property(const QString &name) const
|
||||
{
|
||||
KConfigSkeletonItem *item = KConfigSkeleton::findItem(name);
|
||||
|
||||
if (item) {
|
||||
return item->property();
|
||||
}
|
||||
|
||||
return QVariant();
|
||||
}
|
||||
|
||||
|
|
|
@ -113,12 +113,12 @@ public:
|
|||
* @param key the configuration key to find
|
||||
* @return the associated KConfigSkeletonItem, or 0 if none
|
||||
*/
|
||||
KConfigSkeletonItem *findItemByGroup(const QString &group, const QString &key);
|
||||
KConfigSkeletonItem *findItemByGroup(const QString &group, const QString &key) const;
|
||||
|
||||
/**
|
||||
* Returns the property (variantized value) of the named item
|
||||
*/
|
||||
QVariant property(const QString &name);
|
||||
QVariant property(const QString &name) const;
|
||||
|
||||
/**
|
||||
* Check to see if a group exists
|
||||
|
|
Loading…
Add table
Reference in a new issue