MCPcopy Create free account
hub / github.com/cneben/QuickQanava / delegate

Method delegate

samples/cpp/cpp_sample.cpp:47–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45using namespace qan;
46
47QQmlComponent* CustomGroup::delegate(QQmlEngine &engine, QObject* parent) noexcept {
48 Q_UNUSED(parent)
49 static std::unique_ptr<QQmlComponent> delegate;
50 if (!delegate)
51 delegate = std::make_unique<QQmlComponent>(&engine, "qrc:/CustomGroup.qml");
52 return delegate.get();
53}
54
55qan::NodeStyle* CustomGroup::style(QObject* parent) noexcept {
56 Q_UNUSED(parent)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected