Refactoring. Merge similar switch cases together.
--HG-- branch : develop
This commit is contained in:
parent
6fe96ca4d0
commit
d247823d22
|
@ -153,10 +153,9 @@ void VToolOptionsPropertyBrowser::ShowItemOptions(QGraphicsItem *item)
|
|||
ShowOptionsToolTriangle(item);
|
||||
break;
|
||||
case VGraphicsSimpleTextItem::Type:
|
||||
currentItem = item->parentItem();
|
||||
ShowItemOptions(currentItem);
|
||||
break;
|
||||
case VControlPointSpline::Type:
|
||||
case VSimplePoint::Type:
|
||||
case VSimpleCurve::Type:
|
||||
currentItem = item->parentItem();
|
||||
ShowItemOptions(currentItem);
|
||||
break;
|
||||
|
@ -172,14 +171,6 @@ void VToolOptionsPropertyBrowser::ShowItemOptions(QGraphicsItem *item)
|
|||
case VToolPointFromArcAndTangent::Type:
|
||||
ShowOptionsToolPointFromArcAndTangent(item);
|
||||
break;
|
||||
case VSimplePoint::Type:
|
||||
currentItem = item->parentItem();
|
||||
ShowItemOptions(currentItem);
|
||||
break;
|
||||
case VSimpleCurve::Type:
|
||||
currentItem = item->parentItem();
|
||||
ShowItemOptions(currentItem);
|
||||
break;
|
||||
case VToolTrueDarts::Type:
|
||||
ShowOptionsToolTrueDarts(item);
|
||||
break;
|
||||
|
@ -289,8 +280,6 @@ void VToolOptionsPropertyBrowser::UpdateOptions()
|
|||
UpdateOptionsToolTriangle();
|
||||
break;
|
||||
case VGraphicsSimpleTextItem::Type:
|
||||
ShowItemOptions(currentItem->parentItem());
|
||||
break;
|
||||
case VControlPointSpline::Type:
|
||||
ShowItemOptions(currentItem->parentItem());
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue
Block a user