@@ -3296,7 +3296,7 @@ void ModelWidget::getModelConnections()
3296
3296
foreach (QString shape, shapesList) {
3297
3297
if (shape.startsWith (" Line" )) {
3298
3298
lineShape = shape.mid (QString (" Line" ).length ());
3299
- lineShape = StringHandler::removeFirstLastBrackets (lineShape);
3299
+ lineShape = StringHandler::removeFirstLastParentheses (lineShape);
3300
3300
break ; // break the loop once we have got the line annotation.
3301
3301
}
3302
3302
}
@@ -4741,7 +4741,7 @@ void ModelWidget::getModelIconDiagramShapes(StringHandler::ViewType viewType)
4741
4741
foreach (QString shape, shapesList) {
4742
4742
if (shape.startsWith (" Line" )) {
4743
4743
shape = shape.mid (QString (" Line" ).length ());
4744
- shape = StringHandler::removeFirstLastBrackets (shape);
4744
+ shape = StringHandler::removeFirstLastParentheses (shape);
4745
4745
LineAnnotation *pLineAnnotation = new LineAnnotation (shape, pGraphicsView);
4746
4746
pLineAnnotation->initializeTransformation ();
4747
4747
pLineAnnotation->drawCornerItems ();
@@ -4750,7 +4750,7 @@ void ModelWidget::getModelIconDiagramShapes(StringHandler::ViewType viewType)
4750
4750
pGraphicsView->addItem (pLineAnnotation);
4751
4751
} else if (shape.startsWith (" Polygon" )) {
4752
4752
shape = shape.mid (QString (" Polygon" ).length ());
4753
- shape = StringHandler::removeFirstLastBrackets (shape);
4753
+ shape = StringHandler::removeFirstLastParentheses (shape);
4754
4754
PolygonAnnotation *pPolygonAnnotation = new PolygonAnnotation (shape, pGraphicsView);
4755
4755
pPolygonAnnotation->initializeTransformation ();
4756
4756
pPolygonAnnotation->drawCornerItems ();
@@ -4759,7 +4759,7 @@ void ModelWidget::getModelIconDiagramShapes(StringHandler::ViewType viewType)
4759
4759
pGraphicsView->addItem (pPolygonAnnotation);
4760
4760
} else if (shape.startsWith (" Rectangle" )) {
4761
4761
shape = shape.mid (QString (" Rectangle" ).length ());
4762
- shape = StringHandler::removeFirstLastBrackets (shape);
4762
+ shape = StringHandler::removeFirstLastParentheses (shape);
4763
4763
RectangleAnnotation *pRectangleAnnotation = new RectangleAnnotation (shape, pGraphicsView);
4764
4764
pRectangleAnnotation->initializeTransformation ();
4765
4765
pRectangleAnnotation->drawCornerItems ();
@@ -4768,7 +4768,7 @@ void ModelWidget::getModelIconDiagramShapes(StringHandler::ViewType viewType)
4768
4768
pGraphicsView->addItem (pRectangleAnnotation);
4769
4769
} else if (shape.startsWith (" Ellipse" )) {
4770
4770
shape = shape.mid (QString (" Ellipse" ).length ());
4771
- shape = StringHandler::removeFirstLastBrackets (shape);
4771
+ shape = StringHandler::removeFirstLastParentheses (shape);
4772
4772
EllipseAnnotation *pEllipseAnnotation = new EllipseAnnotation (shape, pGraphicsView);
4773
4773
pEllipseAnnotation->initializeTransformation ();
4774
4774
pEllipseAnnotation->drawCornerItems ();
@@ -4777,7 +4777,7 @@ void ModelWidget::getModelIconDiagramShapes(StringHandler::ViewType viewType)
4777
4777
pGraphicsView->addItem (pEllipseAnnotation);
4778
4778
} else if (shape.startsWith (" Text" )) {
4779
4779
shape = shape.mid (QString (" Text" ).length ());
4780
- shape = StringHandler::removeFirstLastBrackets (shape);
4780
+ shape = StringHandler::removeFirstLastParentheses (shape);
4781
4781
TextAnnotation *pTextAnnotation = new TextAnnotation (shape, pGraphicsView);
4782
4782
pTextAnnotation->initializeTransformation ();
4783
4783
pTextAnnotation->drawCornerItems ();
@@ -4787,7 +4787,7 @@ void ModelWidget::getModelIconDiagramShapes(StringHandler::ViewType viewType)
4787
4787
} else if (shape.startsWith (" Bitmap" )) {
4788
4788
/* create the bitmap shape */
4789
4789
shape = shape.mid (QString (" Bitmap" ).length ());
4790
- shape = StringHandler::removeFirstLastBrackets (shape);
4790
+ shape = StringHandler::removeFirstLastParentheses (shape);
4791
4791
BitmapAnnotation *pBitmapAnnotation = new BitmapAnnotation (mpLibraryTreeItem->mClassInformation .fileName , shape, pGraphicsView);
4792
4792
pBitmapAnnotation->initializeTransformation ();
4793
4793
pBitmapAnnotation->drawCornerItems ();
@@ -5036,10 +5036,10 @@ void ModelWidget::getModelTransitions()
5036
5036
foreach (QString shape, shapesList) {
5037
5037
if (shape.startsWith (" Line" )) {
5038
5038
lineShape = shape.mid (QString (" Line" ).length ());
5039
- lineShape = StringHandler::removeFirstLastBrackets (lineShape);
5039
+ lineShape = StringHandler::removeFirstLastParentheses (lineShape);
5040
5040
} else if (shape.startsWith (" Text" )) {
5041
5041
textShape = shape.mid (QString (" Text" ).length ());
5042
- textShape = StringHandler::removeFirstLastBrackets (textShape);
5042
+ textShape = StringHandler::removeFirstLastParentheses (textShape);
5043
5043
}
5044
5044
}
5045
5045
LineAnnotation *pTransitionLineAnnotation;
@@ -5077,7 +5077,7 @@ void ModelWidget::getModelInitialStates()
5077
5077
foreach (QString shape, shapesList) {
5078
5078
if (shape.startsWith (" Line" )) {
5079
5079
lineShape = shape.mid (QString (" Line" ).length ());
5080
- lineShape = StringHandler::removeFirstLastBrackets (lineShape);
5080
+ lineShape = StringHandler::removeFirstLastParentheses (lineShape);
5081
5081
}
5082
5082
}
5083
5083
LineAnnotation *pInitialStateLineAnnotation;
@@ -5274,7 +5274,7 @@ void ModelWidget::getCompositeModelConnections()
5274
5274
foreach (QString shape, shapesList) {
5275
5275
if (shape.startsWith (" Line" )) {
5276
5276
lineShape = shape.mid (QString (" Line" ).length ());
5277
- lineShape = StringHandler::removeFirstLastBrackets (lineShape);
5277
+ lineShape = StringHandler::removeFirstLastParentheses (lineShape);
5278
5278
break ; // break the loop once we have got the line annotation.
5279
5279
}
5280
5280
}
0 commit comments