remove deprecated prefix methods; there are now multiple prefixes!
This commit is contained in:
parent
da422ce39d
commit
c8443a0958
@ -541,17 +541,6 @@ void PackageStructure::write(KConfigBase *config) const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QString PackageStructure::contentsPrefix() const
|
|
||||||
{
|
|
||||||
return d->contentsPrefixPaths.isEmpty() ? QString() : d->contentsPrefixPaths.first();
|
|
||||||
}
|
|
||||||
|
|
||||||
void PackageStructure::setContentsPrefix(const QString &prefix)
|
|
||||||
{
|
|
||||||
d->contentsPrefixPaths.clear();
|
|
||||||
d->contentsPrefixPaths << prefix;
|
|
||||||
}
|
|
||||||
|
|
||||||
QStringList PackageStructure::contentsPrefixPaths() const
|
QStringList PackageStructure::contentsPrefixPaths() const
|
||||||
{
|
{
|
||||||
return d->contentsPrefixPaths;
|
return d->contentsPrefixPaths;
|
||||||
|
@ -284,12 +284,6 @@ public:
|
|||||||
*/
|
*/
|
||||||
virtual void createNewWidgetBrowser(QWidget *parent = 0);
|
virtual void createNewWidgetBrowser(QWidget *parent = 0);
|
||||||
|
|
||||||
/**
|
|
||||||
* @return the prefix inserted between the base path and content entries
|
|
||||||
* @deprecated use contentsPrefixPaths() instead.
|
|
||||||
*/
|
|
||||||
KDE_DEPRECATED QString contentsPrefix() const;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the prefix paths inserted between the base path and content entries, in order of priority.
|
* @return the prefix paths inserted between the base path and content entries, in order of priority.
|
||||||
* When searching for a file, all paths will be tried in order.
|
* When searching for a file, all paths will be tried in order.
|
||||||
@ -337,17 +331,6 @@ protected:
|
|||||||
*/
|
*/
|
||||||
void setAllowExternalPaths(bool allow);
|
void setAllowExternalPaths(bool allow);
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the prefix that all the contents in this package should
|
|
||||||
* appear under. This defaults to "contents/" and is added automatically
|
|
||||||
* between the base path and the entries as defined by the package
|
|
||||||
* structure
|
|
||||||
*
|
|
||||||
* @arg prefix the directory prefix to use
|
|
||||||
* @deprecated use setContentsPrefixPaths() instead.
|
|
||||||
*/
|
|
||||||
KDE_DEPRECATED void setContentsPrefix(const QString &prefix);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the prefixes that all the contents in this package should
|
* Sets the prefixes that all the contents in this package should
|
||||||
* appear under. This defaults to "contents/" and is added automatically
|
* appear under. This defaults to "contents/" and is added automatically
|
||||||
|
Loading…
Reference in New Issue
Block a user