forked from qt-creator/qt-creator
ExamplesParser: Export only for tests
Makes binary compatible changes easier later, if needed Change-Id: Ib3e04ac3a26068cf9f8bcc57b2dad9d0aeaaa5c3 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -13,7 +13,7 @@ namespace QtSupport::Internal {
|
|||||||
|
|
||||||
enum InstructionalType { Example = 0, Demo, Tutorial };
|
enum InstructionalType { Example = 0, Demo, Tutorial };
|
||||||
|
|
||||||
class QTSUPPORT_EXPORT ExampleItem : public Core::ListItem
|
class QTSUPPORT_TEST_EXPORT ExampleItem : public Core::ListItem
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Utils::FilePath projectPath;
|
Utils::FilePath projectPath;
|
||||||
@@ -31,13 +31,13 @@ public:
|
|||||||
QHash<QString, QStringList> metaData;
|
QHash<QString, QStringList> metaData;
|
||||||
};
|
};
|
||||||
|
|
||||||
QTSUPPORT_EXPORT Utils::expected_str<QList<ExampleItem *>> parseExamples(
|
QTSUPPORT_TEST_EXPORT Utils::expected_str<QList<ExampleItem *>> parseExamples(
|
||||||
const Utils::FilePath &manifest,
|
const Utils::FilePath &manifest,
|
||||||
const Utils::FilePath &examplesInstallPath,
|
const Utils::FilePath &examplesInstallPath,
|
||||||
const Utils::FilePath &demosInstallPath,
|
const Utils::FilePath &demosInstallPath,
|
||||||
bool examples);
|
bool examples);
|
||||||
|
|
||||||
QTSUPPORT_EXPORT Utils::expected_str<QList<ExampleItem *>> parseExamples(
|
QTSUPPORT_TEST_EXPORT Utils::expected_str<QList<ExampleItem *>> parseExamples(
|
||||||
const QByteArray &manifestData,
|
const QByteArray &manifestData,
|
||||||
const Utils::FilePath &manifestPath,
|
const Utils::FilePath &manifestPath,
|
||||||
const Utils::FilePath &examplesInstallPath,
|
const Utils::FilePath &examplesInstallPath,
|
||||||
|
|||||||
Reference in New Issue
Block a user