QtCraft API C++ classes QML types Handbook

QcBlockProperty Struct

A named block state property (facing, half, open, ...) and its possible values; the first value is the default. More...

Header: #include <common/content/blocks/QcBlockProperty.h>

Public Variables

QString name
QStringList values

Static Public Members

const int maxProperties
const int maxValues

Detailed Description

Member Variable Documentation

const int QcBlockProperty::maxProperties

Most state properties a block may have.

const int QcBlockProperty::maxValues

Enough for the 25 notes of the note block (decision E-767).

QString QcBlockProperty::name

Property name (the key in the block's "states" object).

QStringList QcBlockProperty::values

Possible values in their order; the first is the default.