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
80a94d4b
Commit
80a94d4b
authored
Jul 03, 2014
by
Ralf Habacker
Browse files
Remove obsolate method UMLListView::setSelected(); use UMLListViewItem::setSelected() instead.
parent
c99c0780
Changes
2
Hide whitespace changes
Inline
Side-by-side
umbrello/umllistview.cpp
View file @
80a94d4b
...
...
@@ -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
);
}
/**
...
...
umbrello/umllistview.h
View file @
80a94d4b
...
...
@@ -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
;
...
...
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