mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +00:00
plasma: mark Plasma::PackageStructure::entryList() as const
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
3b22af1d92
commit
df591fa7ea
4 changed files with 10 additions and 12 deletions
|
@ -66,8 +66,8 @@ class ContentStructure
|
|||
QStringList paths;
|
||||
QString name;
|
||||
QStringList mimetypes;
|
||||
bool directory : 1;
|
||||
bool required : 1;
|
||||
bool directory;
|
||||
bool required;
|
||||
};
|
||||
|
||||
class PackageStructurePrivate
|
||||
|
@ -77,7 +77,7 @@ public:
|
|||
: type(t),
|
||||
packageRoot("plasma/plasmoids"),
|
||||
servicePrefix("plasma-applet-"),
|
||||
metadata(0),
|
||||
metadata(nullptr),
|
||||
externalPaths(false)
|
||||
{
|
||||
contentsPrefixPaths << "contents/";
|
||||
|
@ -89,7 +89,7 @@ public:
|
|||
}
|
||||
|
||||
void createPackageMetadata(const QString &path);
|
||||
QStringList entryList(const QString &prefix, const QString &requestedPath);
|
||||
QStringList entryList(const QString &prefix, const QString &requestedPath) const;
|
||||
|
||||
QString type;
|
||||
QString path;
|
||||
|
@ -238,7 +238,7 @@ QList<QByteArray> PackageStructure::requiredFiles() const
|
|||
return files;
|
||||
}
|
||||
|
||||
QStringList PackageStructure::entryList(const char *key)
|
||||
QStringList PackageStructure::entryList(const char *key) const
|
||||
{
|
||||
QString p = path(key);
|
||||
|
||||
|
@ -259,7 +259,7 @@ QStringList PackageStructure::entryList(const char *key)
|
|||
return list;
|
||||
}
|
||||
|
||||
QStringList PackageStructurePrivate::entryList(const QString &prefix, const QString &requestedPath)
|
||||
QStringList PackageStructurePrivate::entryList(const QString &prefix, const QString &requestedPath) const
|
||||
{
|
||||
QDir dir(path + prefix + requestedPath);
|
||||
|
||||
|
|
|
@ -183,7 +183,7 @@ public:
|
|||
* @return list of files by name
|
||||
* @since 4.3
|
||||
*/
|
||||
QStringList entryList(const char *key);
|
||||
QStringList entryList(const char *key) const;
|
||||
|
||||
/**
|
||||
* @return user visible name for the given entry
|
||||
|
|
|
@ -142,7 +142,6 @@ public:
|
|||
*/
|
||||
bool isIconified() const;
|
||||
|
||||
|
||||
public Q_SLOTS:
|
||||
/**
|
||||
* Hides the popup.
|
||||
|
|
|
@ -374,7 +374,6 @@ class PLASMA_EXPORT Wallpaper : public QObject
|
|||
*/
|
||||
bool needsPreviewDuringConfiguration() const;
|
||||
|
||||
|
||||
Q_SIGNALS:
|
||||
/**
|
||||
* This signal indicates that wallpaper needs to be repainted.
|
||||
|
|
Loading…
Add table
Reference in a new issue