summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRagnar Thomsen <rthomsen6@gmail.com>2016-10-02 18:00:37 (GMT)
committerRagnar Thomsen <rthomsen6@gmail.com>2016-10-02 18:00:37 (GMT)
commit7bba06c67085f247ef16b7570072b2e48157b541 (patch)
tree2e7cd14d0f19e9229b6f38567f6c6ef84ffce31e
parent4d9be9fdb5fd2dda2001b843408aa690ddb0726a (diff)
Remove Comment property from Archive::Entry
This property was meant for storing file-specific comments as supported by e.g. the zip format. However, it was not used by any of the plugins.
-rw-r--r--kerfuffle/archiveentry.cpp1
-rw-r--r--kerfuffle/archiveentry.h2
-rw-r--r--part/archivemodel.cpp6
3 files changed, 1 insertions, 8 deletions
diff --git a/kerfuffle/archiveentry.cpp b/kerfuffle/archiveentry.cpp
index a5d2d7b..97a2ac4 100644
--- a/kerfuffle/archiveentry.cpp
+++ b/kerfuffle/archiveentry.cpp
@@ -60,7 +60,6 @@ void Archive::Entry::copyMetaData(const Archive::Entry *sourceEntry)
setProperty("version", sourceEntry->property("version"));
setProperty("timestamp", sourceEntry->property("timestamp").toDateTime());
setProperty("isDirectory", sourceEntry->property("isDirectory"));
- setProperty("comment", sourceEntry->property("comment"));
setProperty("isPasswordProtected", sourceEntry->property("isPasswordProtected"));
}
diff --git a/kerfuffle/archiveentry.h b/kerfuffle/archiveentry.h
index f7de635..edb7c1e 100644
--- a/kerfuffle/archiveentry.h
+++ b/kerfuffle/archiveentry.h
@@ -65,7 +65,6 @@ class Archive::Entry : public QObject
Q_PROPERTY(QString version MEMBER m_version)
Q_PROPERTY(QDateTime timestamp MEMBER m_timestamp)
Q_PROPERTY(bool isDirectory MEMBER m_isDirectory WRITE setIsDirectory)
- Q_PROPERTY(QString comment MEMBER m_comment)
Q_PROPERTY(bool isPasswordProtected MEMBER m_isPasswordProtected)
public:
@@ -117,7 +116,6 @@ private:
QString m_version;
QDateTime m_timestamp;
bool m_isDirectory;
- QString m_comment;
bool m_isPasswordProtected;
};
diff --git a/part/archivemodel.cpp b/part/archivemodel.cpp
index ead11fa..14fea72 100644
--- a/part/archivemodel.cpp
+++ b/part/archivemodel.cpp
@@ -57,8 +57,7 @@ enum EntryMetaDataType {
CRC, /**< The entry's CRC */
Method, /**< The compression method used on the entry */
Version, /**< The archiver version needed to extract the entry */
- Timestamp, /**< The timestamp for the current entry */
- Comment
+ Timestamp /**< The timestamp for the current entry */
};
/**
@@ -78,7 +77,6 @@ static QMap<int, QString> initializePropertiesList()
propertiesList.insert(Method, QStringLiteral("method"));
propertiesList.insert(Version, QStringLiteral("version"));
propertiesList.insert(Timestamp, QStringLiteral("timestamp"));
- propertiesList.insert(Comment, QStringLiteral("comment"));
return propertiesList;
}
static const QMap<int, QString> propertiesList = initializePropertiesList();
@@ -284,8 +282,6 @@ QVariant ArchiveModel::headerData(int section, Qt::Orientation, int role) const
return i18nc("File version", "Version");
case Timestamp:
return i18nc("Timestamp", "Date");
- case Comment:
- return i18nc("File comment", "Comment");
default:
return i18nc("Unnamed column", "??");
}