QtCraft API C++ classes QML types Handbook

QcHoldNames Namespace

The JSON names of hold categories and grips ("tool", "partialBlock", "handle", ...). More...

Header: #include <common/content/items/QcHoldDisplay.h>

Functions

QString category(QcHoldCategory category)
std::optional<QcHoldCategory> category(const QString &name)
QString grip(QcHoldGrip grip)
std::optional<QcHoldGrip> grip(const QString &name)

Detailed Description

Function Documentation

QString QcHoldNames::category(QcHoldCategory category)

Returns the JSON name of category.

std::optional<QcHoldCategory> QcHoldNames::category(const QString &name)

Returns the category whose JSON name is name, or std::nullopt for an unknown name.

QString QcHoldNames::grip(QcHoldGrip grip)

Returns the JSON name of grip.

std::optional<QcHoldGrip> QcHoldNames::grip(const QString &name)

Returns the grip whose JSON name is name, or std::nullopt for an unknown name.