feat: add QPointF tree-expandable type editor to PropertyEditor
This commit is contained in:
parent
94c48e7de8
commit
e63fae92c8
|
|
@ -32,7 +32,7 @@ void PropertyTypeCustomization_PointF::customizeHeaderRow(QPropertyHandle* inPro
|
||||||
|
|
||||||
auto updateLabel = [valueLabel](const QVariant& var) {
|
auto updateLabel = [valueLabel](const QVariant& var) {
|
||||||
QPointF pt = var.value<QPointF>();
|
QPointF pt = var.value<QPointF>();
|
||||||
valueLabel->setProperty("pointText", QString("(%1, %2)").arg(pt.x(), 0, 'f', 3).arg(pt.y(), 0, 'f', 3));
|
valueLabel->setProperty("pointText", QString(" (%1, %2)").arg(pt.x(), 0, 'f', 3).arg(pt.y(), 0, 'f', 3));
|
||||||
};
|
};
|
||||||
updateLabel(inPropertyHandle->getVar());
|
updateLabel(inPropertyHandle->getVar());
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue