diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2019-02-26 13:15:44 +0100 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2019-03-01 10:12:58 +0000 |
commit | 1303dbef106ea4fca296ad4d8a40b9a8b1676554 (patch) | |
tree | d0f2b7ec4763b1aa1a973d9cdfef5bd1274ffb52 | |
parent | 37efaebc82f89d51a8dffc721c32b6c0df15241f (diff) | |
download | qttools-1303dbef106ea4fca296ad4d8a40b9a8b1676554.tar.gz |
Remove setters for QHelpCollectionDetails
Change-Id: If83486ad7c746beed79f3bd45da7d8ba832f25cb
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
-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; |