aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/documentation.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <friedemann.kleint@qt.io>2023-05-10 13:50:56 +0200
committerCristián Maureira-Fredes <cristian.maureira-fredes@qt.io>2025-11-24 12:06:06 +0100
commit845630ad239c4b37ff37e49ef5bb969a8946744b (patch)
tree5c65f2e270511459d346c14f0ad8d01f5e6e39a0 /sources/shiboken6/ApiExtractor/documentation.cpp
parent3cf2077a1b060bbea3419ccde23c5da6485a2e24 (diff)
Move the shiboken-generator source around
THIS COMMIT WAS GENERATED BY A SCRIPT Task-number: PYSIDE-962 Task-number: PYSIDE-1587 Change-Id: I58b05c3d05606efb6303193f2d7f907a0ab5741b Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/documentation.cpp')
-rw-r--r--sources/shiboken6/ApiExtractor/documentation.cpp71
1 files changed, 0 insertions, 71 deletions
diff --git a/sources/shiboken6/ApiExtractor/documentation.cpp b/sources/shiboken6/ApiExtractor/documentation.cpp
deleted file mode 100644
index 310b4e2b7..000000000
--- a/sources/shiboken6/ApiExtractor/documentation.cpp
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright (C) 2020 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
-
-#include "documentation.h"
-
-#include <QtCore/qdebug.h>
-
-Documentation::Documentation(const QString &detailed,
- const QString &brief,
- const QString &sourceFile,
- DocumentationFormat fmt) :
- m_detailed(detailed.trimmed()),
- m_brief(brief.trimmed()),
- m_sourceFile(sourceFile),
- m_format(fmt)
-{
-}
-
-bool Documentation::isEmpty() const
-{
- return m_detailed.isEmpty() && m_brief.isEmpty();
-}
-
-DocumentationFormat Documentation::format() const
-{
- return m_format;
-}
-
-void Documentation::setValue(const QString &value, DocumentationType t)
-{
- if (t == DocumentationType::Brief)
- setBrief(value);
- else
- setDetailed(value);
-}
-
-void Documentation::setFormat(DocumentationFormat f)
-{
- m_format = f;
-}
-
-void Documentation::setDetailed(const QString &detailed)
-{
- m_detailed = detailed.trimmed();
-}
-
-void Documentation::setBrief(const QString &brief)
-{
- m_brief = brief.trimmed();
-}
-
-#ifndef QT_NO_DEBUG_STREAM
-QDebug operator<<(QDebug debug, const Documentation &d)
-{
- QDebugStateSaver saver(debug);
- debug.noquote();
- debug.nospace();
- debug << "Documentation(";
- if (!d.isEmpty()) {
- debug << "format=" << (d.format() == DocumentationFormat::Native ? "native" : "target");
- if (d.hasSourceFile())
- debug << ", file=\"" << d.sourceFile() << '"';
- if (!d.brief().isEmpty())
- debug << ", brief=\"" << d.brief() << '"';
- if (!d.detailed().isEmpty())
- debug << ", detailed=\"" << d.detailed() << '"';
- }
- debug << ')';
- return debug;
-}
-#endif // QT_NO_DEBUG_STREAM