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
Marco Bubke
flatpak-qt-creator
Commits
1669de48
Commit
1669de48
authored
Mar 31, 2010
by
Marco Bubke
Committed by
Kai Koehne
Apr 08, 2010
Browse files
Remove old function
parent
749047aa
Changes
2
Show whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/core/instances/graphicsscenenodeinstance.cpp
View file @
1669de48
...
...
@@ -122,35 +122,5 @@ void GraphicsSceneNodeInstance::setVisible(bool /*isVisible*/)
}
QList
<
NodeInstance
>
GraphicsSceneNodeInstance
::
instancesInRegions
(
const
QList
<
QRectF
>
&
regions
)
{
QRectF
combinedRect
;
foreach
(
const
QRectF
&
rect
,
regions
)
{
combinedRect
=
combinedRect
.
united
(
rect
);
}
QList
<
QGraphicsItem
*>
itemList
;
// collect list of possibly changed items
// (actually QGraphicsScene could export this)
foreach
(
QGraphicsItem
*
item
,
graphicsScene
()
->
items
(
combinedRect
.
adjusted
(
0
,
0
,
1
,
1
),
Qt
::
ContainsItemBoundingRect
))
{
if
(
!
itemList
.
contains
(
item
))
itemList
.
append
(
item
);
}
QList
<
NodeInstance
>
instances
;
if
(
!
itemList
.
isEmpty
())
{
foreach
(
const
NodeInstance
&
nodeInstance
,
nodeInstanceView
()
->
instances
())
{
foreach
(
QGraphicsItem
*
gvItem
,
itemList
)
{
if
(
nodeInstance
.
equalGraphicsItem
(
gvItem
))
{
instances
+=
nodeInstance
;
}
}
}
}
return
instances
;
}
}
}
src/plugins/qmldesigner/core/instances/graphicsscenenodeinstance.h
View file @
1669de48
...
...
@@ -63,8 +63,6 @@ public:
bool
isVisible
()
const
;
void
setVisible
(
bool
isVisible
);
QList
<
NodeInstance
>
instancesInRegions
(
const
QList
<
QRectF
>
&
region
);
protected:
GraphicsSceneNodeInstance
(
QGraphicsScene
*
scene
);
QGraphicsScene
*
graphicsScene
()
const
;
...
...
Write
Preview
Supports
Markdown
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