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
Plasma
Plasma Mobile
Commits
227b9c76
Commit
227b9c76
authored
Mar 28, 2013
by
Marco Martin
Browse files
map delegate pos to parent
should avoid the second page items to be selected CCBUG:314553
parent
088f40eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
applications/filebrowser/package/contents/ui/BrowserFrame.qml
View file @
227b9c76
...
...
@@ -50,6 +50,7 @@ Item {
id
:
selectedModel
signal
modelCleared
}
Connections
{
target
:
metadataModel
onModelReset
:
{
...
...
@@ -223,8 +224,10 @@ Item {
imagePath
:
"
widgets/viewitem
"
prefix
:
"
selected+hover
"
anchors.fill
:
parent
property
real
delegateX
:
resultsGrid
.
mapFromItem
(
resourceDelegate
,
0
,
0
).
x
property
real
delegateY
:
resultsGrid
.
mapFromItem
(
resourceDelegate
,
0
,
0
).
y
property
bool
contains
:
resourceD
elegate
.
x
+
resourceDelegate
.
width
>
selectionRect
.
x
&&
resourceD
elegate
.
y
+
resourceDelegate
.
height
>
selectionRect
.
y
&&
resourceD
elegate
.
x
<
selectionRect
.
x
+
selectionRect
.
width
&&
resourceD
elegate
.
y
<
selectionRect
.
y
+
selectionRect
.
height
property
bool
contains
:
d
elegate
X
+
resourceDelegate
.
width
>
selectionRect
.
x
&&
d
elegate
Y
+
resourceDelegate
.
height
>
selectionRect
.
y
&&
d
elegate
X
<
selectionRect
.
x
+
selectionRect
.
width
&&
d
elegate
Y
<
selectionRect
.
y
+
selectionRect
.
height
opacity
:
0
/*Behavior on opacity {
NumberAnimation {duration: 250}
...
...
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