allow setting the path
svn path=/trunk/KDE/kdelibs/; revision=967227
This commit is contained in:
parent
13de4f22d5
commit
1a892f1c41
@ -160,6 +160,12 @@ PackageMetadata Package::metadata() const
|
||||
return d->structure->metadata();
|
||||
}
|
||||
|
||||
void Package::setPath(const QString &path)
|
||||
{
|
||||
d->structure->setPath(path);
|
||||
d->valid = !d->structure->path().isEmpty();
|
||||
}
|
||||
|
||||
const QString Package::path() const
|
||||
{
|
||||
return d->structure->path();
|
||||
|
@ -101,6 +101,13 @@ class PLASMA_EXPORT Package
|
||||
*/
|
||||
PackageMetadata metadata() const;
|
||||
|
||||
/**
|
||||
* Sets the path to the root of this package
|
||||
* @arg path and absolute path
|
||||
* @since 4.3
|
||||
*/
|
||||
void setPath(const QString &path);
|
||||
|
||||
/**
|
||||
* @return the path to the root of this particular package
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user