Commit 80a94d4b authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Remove obsolate method UMLListView::setSelected(); use UMLListViewItem::setSelected() instead.

parent c99c0780
......@@ -801,7 +801,7 @@ void UMLListView::slotDiagramCreated(Uml::ID::Type id)
const Uml::DiagramType::Enum dt = scene->type();
UMLListViewItem* p = findUMLObject(scene->folder());
UMLListViewItem* item = new UMLListViewItem(p, scene->name(), Model_Utils::convert_DT_LVT(dt), id);
setSelected(item, true);
item->setSelected(true);
UMLApp::app()->docWindow()->showDocumentation(scene, false);
}
}
......@@ -944,7 +944,7 @@ void UMLListView::slotObjectCreated(UMLObject* object)
scrollToItem(newItem);
newItem->setOpen(true);
clearSelection();
setSelected(newItem, true);
newItem->setSelected(true);
UMLApp::app()->docWindow()->showDocumentation(object, false);
}
......@@ -1080,7 +1080,7 @@ void UMLListView::childObjectAdded(UMLClassifierListItem* child, UMLClassifier*
if (! m_doc->loading()) {
scrollToItem(childItem);
clearSelection();
setSelected(childItem, true);
childItem->setSelected(true);
}
connectNewObjectsSlots(child);
}
......@@ -1398,7 +1398,7 @@ void UMLListView::setView(UMLView * view)
return;
UMLListViewItem * temp = findView(view);
if (temp)
setSelected(temp, true);
temp->setSelected(true);
}
/**
......
......@@ -89,7 +89,6 @@ public:
bool isUnique(UMLListViewItem * item, const QString &name);
void setSelected(UMLListViewItem * item, bool state) { setItemSelected((QTreeWidgetItem*)item, state); }
void setStartedCut(bool startedCut);
void setStartedCopy(bool startedCopy);
bool startedCopy() const;
......
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