blob: 410c0f36e0d2763e93d40ee0c25e9f27d907ef29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// Copyright (C) 2018 Jochen Becher
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include <QObject>
namespace qmt {
class MObject;
class MPackage;
}
namespace ModelEditor {
namespace Internal {
class ModelUtilities : public QObject
{
Q_OBJECT
public:
explicit ModelUtilities(QObject *parent = nullptr);
~ModelUtilities();
bool haveDependency(const qmt::MObject *source, const qmt::MObject *target,
bool inverted = false);
bool haveDependency(const qmt::MObject *source, const QList<qmt::MPackage *> &targets);
};
} // namespace Internal
} // namespace ModelEditor
|