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
Unmaintained
KDE Homerun
Commits
525e357b
Commit
525e357b
authored
Jan 31, 2013
by
Aurélien Gâteau
Browse files
Remove flying highlight: it does not mix well with actionList button
BUG: 309797
parent
f0839e54
Changes
2
Hide whitespace changes
Inline
Side-by-side
package/contents/ui/Result.qml
View file @
525e357b
...
...
@@ -77,6 +77,25 @@ Item {
favoriteFeedbackComponent
.
createObject
(
favoriteIconItem
);
}
PlasmaCore.FrameSvgItem
{
id
:
background
anchors
{
fill
:
parent
}
imagePath
:
"
widgets/viewitem
"
prefix
:
"
hover
"
opacity
:
main
.
highlighted
?
1
:
0
Behavior
on
opacity
{
NumberAnimation
{
duration
:
250
easing.type
:
Easing
.
OutQuad
}
}
}
QtExtra.QIconItem
{
id
:
resultIcon
...
...
package/contents/ui/ResultsView.qml
View file @
525e357b
...
...
@@ -95,9 +95,6 @@ FocusScope {
if
(
idx
<
0
||
idx
>=
gridView
.
count
)
{
return
;
}
// Reset currentIndex so that the highlight is not animated from the
// previous position
gridView
.
currentIndex
=
-
1
;
gridView
.
currentIndex
=
idx
;
gridView
.
currentItem
.
forceActiveFocus
();
}
...
...
@@ -112,14 +109,6 @@ FocusScope {
property
int
resultItemHeight
:
iconWidth
+
3
*
theme
.
defaultFont
.
mSize
.
height
// Components
Component
{
id
:
highlight
PlasmaComponents.Highlight
{
hover
:
true
opacity
:
(
gridView
.
currentItem
&&
gridView
.
currentItem
.
highlighted
)
?
1
:
0
}
}
Component
{
id
:
result
Result
{
...
...
@@ -263,8 +252,6 @@ FocusScope {
//TODO: something sane?
cacheBuffer
:
128
*
10
//10 above, 10 below caching
highlight
:
highlight
delegate
:
result
Keys.onPressed
:
{
...
...
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