diff options
| author | Peter Penz <[email protected]> | 2012-03-12 15:18:02 +0100 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2012-03-12 15:19:20 +0100 |
| commit | 6c60bf0ad54258976d9dcbd6586b26c65d8d4b78 (patch) | |
| tree | 3739a86de6c9f23f63cb45593194e34ff23962e2 /src/views/viewproperties.h | |
| parent | 2ba5c2cfc2cea534cccd860f94a7198530b83594 (diff) | |
Provide backward compatibility with older .directory versions
When upgrading to Dolphin 2.1 the obsolete additionalInfo-property
must be converted to the visibleRoles-property.
Diffstat (limited to 'src/views/viewproperties.h')
| -rw-r--r-- | src/views/viewproperties.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/views/viewproperties.h b/src/views/viewproperties.h index b46249eb2..96a5515ef 100644 --- a/src/views/viewproperties.h +++ b/src/views/viewproperties.h @@ -138,6 +138,13 @@ private: QString viewModePrefix() const; /** + * Provides backward compatibility with .directory files created with + * Dolphin < 2.1: Converts the old additionalInfo-property into + * the visibleRoles-property and clears the additionalInfo-property. + */ + QStringList convertAdditionalInfo(); + + /** * Returns true, if \a filePath is part of the home-path (see QDir::homePath()). */ static bool isPartOfHome(const QString& filePath); |
