diff options
-rw-r--r-- | src/assistant/help/qhelpcollectiondetails.cpp | 30 | ||||
-rw-r--r-- | src/assistant/help/qhelpcollectiondetails.h | 4 |
2 files changed, 3 insertions, 31 deletions
diff --git a/src/assistant/help/qhelpcollectiondetails.cpp b/src/assistant/help/qhelpcollectiondetails.cpp index afeef31cf..2282b18e8 100644 --- a/src/assistant/help/qhelpcollectiondetails.cpp +++ b/src/assistant/help/qhelpcollectiondetails.cpp @@ -119,30 +119,6 @@ QHelpCollectionDetails &QHelpCollectionDetails::operator=(const QHelpCollectionD QHelpCollectionDetails &QHelpCollectionDetails::operator=(QHelpCollectionDetails &&) = default; /*! - Specifies the namespace name of the compressed help file. -*/ -void QHelpCollectionDetails::setNamespaceName(const QString &namespaceName) -{ - d->m_namespaceName = namespaceName; -} - -/*! - Specifies the component of the compressed help file. -*/ -void QHelpCollectionDetails::setComponent(const QString &component) -{ - d->m_component = component; -} - -/*! - Specifies the version of the compressed help file. -*/ -void QHelpCollectionDetails::setVersion(const QString &version) -{ - d->m_version = version; -} - -/*! Returns the namespace name of the compressed help file. */ QString QHelpCollectionDetails::namespaceName() const @@ -177,9 +153,9 @@ QHelpCollectionDetails QHelpCollectionDetails::fromCompressedHelpFile(const QStr QThread::currentThread()), nullptr); if (reader.init()) { QHelpCollectionDetails details; - details.setNamespaceName(reader.namespaceName()); - details.setComponent(reader.virtualFolder()); - details.setVersion(reader.version()); + details.d->m_namespaceName = reader.namespaceName(); + details.d->m_component = reader.virtualFolder(); + details.d->m_version = reader.version(); return details; } return QHelpCollectionDetails(); diff --git a/src/assistant/help/qhelpcollectiondetails.h b/src/assistant/help/qhelpcollectiondetails.h index 494f157d1..9f804c49e 100644 --- a/src/assistant/help/qhelpcollectiondetails.h +++ b/src/assistant/help/qhelpcollectiondetails.h @@ -59,10 +59,6 @@ public: QHelpCollectionDetails &operator=(const QHelpCollectionDetails &other); QHelpCollectionDetails &operator=(QHelpCollectionDetails &&other); - void setNamespaceName(const QString &ns); - void setComponent(const QString &component); - void setVersion(const QString &version); - QString namespaceName() const; QString component() const; QString version() const; |