Commit 57edaa09 authored by Oliver Kellogg's avatar Oliver Kellogg
Browse files

Fix typo in UMLListViewItem::ListViewType value lvt_InstanceAttribute.

Files affected:
- umllistviewitem.h
- umllistviewitem.cpp
- umllistview.cpp
- model_utils.cpp
- menus/umllistviewpopupmenu.cpp
parent 9439be23
......@@ -4,7 +4,7 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* copyright (C) 2018-2020 *
* copyright (C) 2018-2021 *
* Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
***************************************************************************/
......@@ -202,7 +202,7 @@ UMLListViewPopupMenu::UMLListViewPopupMenu(QWidget *parent, UMLListViewItem *ite
case UMLListViewItem::lvt_UseCase:
case UMLListViewItem::lvt_Attribute:
case UMLListViewItem::lvt_EntityAttribute:
case UMLListViewItem::lvt_InstanteAttribute:
case UMLListViewItem::lvt_InstanceAttribute:
case UMLListViewItem::lvt_Operation:
case UMLListViewItem::lvt_Template:
insertStdItems(false);
......
......@@ -4,7 +4,7 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* copyright (C) 2004-2020 *
* copyright (C) 2004-2021 *
* Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
***************************************************************************/
......@@ -1255,7 +1255,7 @@ bool typeIsClassifierList(UMLListViewItem::ListViewType type)
type == UMLListViewItem::lvt_PrimaryKeyConstraint ||
type == UMLListViewItem::lvt_CheckConstraint ||
type == UMLListViewItem::lvt_EnumLiteral ||
type == UMLListViewItem::lvt_InstanteAttribute) {
type == UMLListViewItem::lvt_InstanceAttribute) {
return true;
} else {
return false;
......@@ -1318,7 +1318,7 @@ bool typeIsAllowedInType(UMLListViewItem::ListViewType childType,
parentType == UMLListViewItem::lvt_Logical_Folder;
case UMLListViewItem::lvt_Attribute:
case UMLListViewItem::lvt_EntityAttribute:
case UMLListViewItem::lvt_InstanteAttribute:
case UMLListViewItem::lvt_InstanceAttribute:
return parentType == UMLListViewItem::lvt_Entity;
case UMLListViewItem::lvt_Operation:
return parentType == UMLListViewItem::lvt_Class ||
......@@ -1708,7 +1708,7 @@ UMLListViewItem::ListViewType convert_OT_LVT(UMLObject *o)
break;
case UMLObject::ot_InstanceAttribute:
type = UMLListViewItem::lvt_InstanteAttribute;
type = UMLListViewItem::lvt_InstanceAttribute;
break;
default:
......@@ -1821,7 +1821,7 @@ UMLObject::ObjectType convert_LVT_OT(UMLListViewItem::ListViewType lvt)
ot = UMLObject::ot_Instance;
break;
case UMLListViewItem::lvt_InstanteAttribute:
case UMLListViewItem::lvt_InstanceAttribute:
ot = UMLObject::ot_InstanceAttribute;
break;
......@@ -2002,7 +2002,7 @@ Icon_Utils::IconType convert_LVT_IT(UMLListViewItem::ListViewType lvt, UMLObject
case UMLListViewItem::lvt_Instance:
icon = Icon_Utils::it_Instance;
break;
case UMLListViewItem::lvt_InstanteAttribute:
case UMLListViewItem::lvt_InstanceAttribute:
icon = Icon_Utils::it_Private_Attribute;
break;
default:
......
......@@ -4,7 +4,7 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* copyright (C) 2002-2020 *
* copyright (C) 2002-2021 *
* Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
***************************************************************************/
......@@ -469,7 +469,7 @@ void UMLListView::slotMenuSelection(QAction* action, const QPoint &position)
addNewItem(currItem, UMLListViewItem::lvt_EntityAttribute);
break;
case ListPopupMenu::mt_InstanceAttribute:
addNewItem(currItem, UMLListViewItem::lvt_InstanteAttribute);
addNewItem(currItem, UMLListViewItem::lvt_InstanceAttribute);
break;
case ListPopupMenu::mt_Operation:
addNewItem(currItem, UMLListViewItem::lvt_Operation);
......@@ -2380,7 +2380,7 @@ bool UMLListView::isUnique(UMLListViewItem * item, const QString &name)
case UMLListViewItem::lvt_Template:
case UMLListViewItem::lvt_Attribute:
case UMLListViewItem::lvt_EntityAttribute:
case UMLListViewItem::lvt_InstanteAttribute:
case UMLListViewItem::lvt_InstanceAttribute:
case UMLListViewItem::lvt_Operation:
case UMLListViewItem::lvt_EnumLiteral:
case UMLListViewItem::lvt_UniqueConstraint:
......@@ -2556,7 +2556,7 @@ bool UMLListView::loadChildrenFromXMI(UMLListViewItem * parent, QDomElement & el
break;
case UMLListViewItem::lvt_Attribute:
case UMLListViewItem::lvt_EntityAttribute:
case UMLListViewItem::lvt_InstanteAttribute:
case UMLListViewItem::lvt_InstanceAttribute:
case UMLListViewItem::lvt_Template:
case UMLListViewItem::lvt_Operation:
case UMLListViewItem::lvt_EnumLiteral:
......
......@@ -4,7 +4,7 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* copyright (C) 2002-2020 *
* copyright (C) 2002-2021 *
* Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
***************************************************************************/
......@@ -575,7 +575,7 @@ void UMLListViewItem::slotEditFinished(const QString &newText)
case lvt_Attribute:
case lvt_EntityAttribute:
case lvt_InstanteAttribute: {
case lvt_InstanceAttribute: {
if (m_object == 0) {
cancelRenameWithMsg();
return;
......@@ -1065,7 +1065,7 @@ QString UMLListViewItem::toString(ListViewType type)
return QLatin1String("lvt_Unknown");
case lvt_Instance:
return QLatin1String("lvt_Instance");
case lvt_InstanteAttribute:
case lvt_InstanceAttribute:
return QLatin1String("lvt_InstanceAttribute");
default:
return QLatin1String("? ListViewType ?");
......
......@@ -4,7 +4,7 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* copyright (C) 2002-2020 *
* copyright (C) 2002-2021 *
* Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
***************************************************************************/
......@@ -103,7 +103,7 @@ public:
lvt_Association,
lvt_Object_Diagram,
lvt_Instance,
lvt_InstanteAttribute,
lvt_InstanceAttribute,
// enter new values above
lvt_Max,
lvt_Unknown = -1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment