fix package installation. this method was removed it the API review, but it is actually required.
BUG:163290 svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=817331
This commit is contained in:
parent
4c75aec5a9
commit
ae609c6018
@ -286,6 +286,7 @@ QStringList PackageStructure::mimetypes(const char* key) const
|
||||
void PackageStructure::setPath(const QString &path)
|
||||
{
|
||||
d->path = path;
|
||||
pathChanged();
|
||||
}
|
||||
|
||||
QString PackageStructure::path() const
|
||||
@ -293,6 +294,11 @@ QString PackageStructure::path() const
|
||||
return d->path;
|
||||
}
|
||||
|
||||
void PackageStructure::pathChanged()
|
||||
{
|
||||
// default impl does nothing, this is a hook for subclasses.
|
||||
}
|
||||
|
||||
void PackageStructure::read(const KConfigBase *config)
|
||||
{
|
||||
d->contents.clear();
|
||||
|
@ -249,6 +249,12 @@ protected:
|
||||
*/
|
||||
void setContentsPrefix(const QString &prefix);
|
||||
|
||||
/**
|
||||
* Called whenever the path changes so that subclasses may take
|
||||
* package specific actions.
|
||||
*/
|
||||
virtual void pathChanged();
|
||||
|
||||
private:
|
||||
class Private;
|
||||
Private * const d;
|
||||
|
Loading…
Reference in New Issue
Block a user