Improve the property browser. Show full arc name.
(cherry picked from commit 590e0089da
)
This commit is contained in:
parent
f1057de239
commit
beaedae7b5
|
@ -47,6 +47,7 @@
|
||||||
- Setting scale factor for export and print.
|
- Setting scale factor for export and print.
|
||||||
- New layout generator option: Prefer one sheet solution.
|
- New layout generator option: Prefer one sheet solution.
|
||||||
- [smart-pattern/valentina#15] Organization of groups - groups categories
|
- [smart-pattern/valentina#15] Organization of groups - groups categories
|
||||||
|
- Improve the property browser. Show full arc name.
|
||||||
|
|
||||||
# Version 0.6.2 (unreleased)
|
# Version 0.6.2 (unreleased)
|
||||||
- [#903] Bug in tool Cut Spline path.
|
- [#903] Bug in tool Cut Spline path.
|
||||||
|
|
|
@ -983,6 +983,9 @@ void VToolOptionsPropertyBrowser::ChangeDataToolArc(VPE::VProperty *property)
|
||||||
SCASSERT(i != nullptr)
|
SCASSERT(i != nullptr)
|
||||||
switch (PropertiesList().indexOf(id))
|
switch (PropertiesList().indexOf(id))
|
||||||
{
|
{
|
||||||
|
case 0: // AttrName
|
||||||
|
Q_UNREACHABLE();//The attribute is read only
|
||||||
|
break;
|
||||||
case 8: // AttrRadius
|
case 8: // AttrRadius
|
||||||
i->SetFormulaRadius(value.value<VFormula>());
|
i->SetFormulaRadius(value.value<VFormula>());
|
||||||
break;
|
break;
|
||||||
|
@ -1021,6 +1024,9 @@ void VToolOptionsPropertyBrowser::ChangeDataToolArcWithLength(VPE::VProperty *pr
|
||||||
SCASSERT(i != nullptr)
|
SCASSERT(i != nullptr)
|
||||||
switch (PropertiesList().indexOf(id))
|
switch (PropertiesList().indexOf(id))
|
||||||
{
|
{
|
||||||
|
case 0: // AttrName
|
||||||
|
Q_UNREACHABLE();//The attribute is read only
|
||||||
|
break;
|
||||||
case 8: // AttrRadius
|
case 8: // AttrRadius
|
||||||
i->SetFormulaRadius(value.value<VFormula>());
|
i->SetFormulaRadius(value.value<VFormula>());
|
||||||
break;
|
break;
|
||||||
|
@ -2019,6 +2025,7 @@ void VToolOptionsPropertyBrowser::ShowOptionsToolArc(QGraphicsItem *item)
|
||||||
i->ShowVisualization(true);
|
i->ShowVisualization(true);
|
||||||
formView->setTitle(tr("Arc"));
|
formView->setTitle(tr("Arc"));
|
||||||
|
|
||||||
|
AddPropertyObjectName(i, tr("Name:"), true);
|
||||||
AddPropertyParentPointName(i->CenterPointName(), tr("Center point:"), AttrCenter);
|
AddPropertyParentPointName(i->CenterPointName(), tr("Center point:"), AttrCenter);
|
||||||
AddPropertyFormula(tr("Radius:"), i->GetFormulaRadius(), AttrRadius);
|
AddPropertyFormula(tr("Radius:"), i->GetFormulaRadius(), AttrRadius);
|
||||||
AddPropertyFormula(tr("First angle:"), i->GetFormulaF1(), AttrAngle1);
|
AddPropertyFormula(tr("First angle:"), i->GetFormulaF1(), AttrAngle1);
|
||||||
|
@ -2035,6 +2042,7 @@ void VToolOptionsPropertyBrowser::ShowOptionsToolArcWithLength(QGraphicsItem *it
|
||||||
i->ShowVisualization(true);
|
i->ShowVisualization(true);
|
||||||
formView->setTitle(tr("Arc with given length"));
|
formView->setTitle(tr("Arc with given length"));
|
||||||
|
|
||||||
|
AddPropertyObjectName(i, tr("Name:"), true);
|
||||||
AddPropertyParentPointName(i->CenterPointName(), tr("Center point:"), AttrCenter);
|
AddPropertyParentPointName(i->CenterPointName(), tr("Center point:"), AttrCenter);
|
||||||
AddPropertyFormula(tr("Radius:"), i->GetFormulaRadius(), AttrRadius);
|
AddPropertyFormula(tr("Radius:"), i->GetFormulaRadius(), AttrRadius);
|
||||||
AddPropertyFormula(tr("First angle:"), i->GetFormulaF1(), AttrAngle1);
|
AddPropertyFormula(tr("First angle:"), i->GetFormulaF1(), AttrAngle1);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user