Commit 525e357b authored by Aurélien Gâteau's avatar Aurélien Gâteau
Browse files

Remove flying highlight: it does not mix well with actionList button

BUG: 309797
parent f0839e54
......@@ -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
......
......@@ -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: {
......
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