Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SDK
Umbrello
Commits
2ca11c45
Commit
2ca11c45
authored
Jan 05, 2021
by
Oliver Kellogg
Browse files
umbrello/uml1model/umlobject.cpp
- In function toIcon add missing UMLObject::ObjectType values.
parent
e491e53a
Changes
1
Hide whitespace changes
Inline
Side-by-side
umbrello/uml1model/umlobject.cpp
View file @
2ca11c45
...
...
@@ -4,7 +4,7 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* copyright (C) 2002-202
0
*
* copyright (C) 2002-202
1
*
* Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
***************************************************************************/
...
...
@@ -1304,9 +1304,34 @@ Icon_Utils::IconType UMLObject::toIcon(ObjectType t)
case
UMLObject
::
ot_Port
:
icon
=
Icon_Utils
::
it_Port
;
break
;
// case UMLObject::ot_Stereotype:
// icon = Icon_Utils::it_Stereotype;
// break;
case
UMLObject
::
ot_EnumLiteral
:
icon
=
Icon_Utils
::
it_Enum_Literal
;
break
;
case
UMLObject
::
ot_Attribute
:
case
UMLObject
::
ot_InstanceAttribute
:
icon
=
Icon_Utils
::
it_Public_Attribute
;
break
;
case
UMLObject
::
ot_Operation
:
icon
=
Icon_Utils
::
it_Public_Method
;
break
;
case
UMLObject
::
ot_Template
:
icon
=
Icon_Utils
::
it_Template
;
break
;
case
UMLObject
::
ot_Category
:
icon
=
Icon_Utils
::
it_Category
;
break
;
case
UMLObject
::
ot_EntityAttribute
:
icon
=
Icon_Utils
::
it_Entity_Attribute
;
break
;
case
UMLObject
::
ot_UniqueConstraint
:
icon
=
Icon_Utils
::
it_Unique_Constraint
;
break
;
case
UMLObject
::
ot_ForeignKeyConstraint
:
icon
=
Icon_Utils
::
it_ForeignKey_Constraint
;
break
;
case
UMLObject
::
ot_CheckConstraint
:
icon
=
Icon_Utils
::
it_Check_Constraint
;
break
;
case
UMLObject
::
ot_UseCase
:
icon
=
Icon_Utils
::
it_UseCase
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment