[vlmc-devel] MediaItem.qml: Highlight when clicked
Yikai Lu
git at videolan.org
Mon Nov 7 04:45:25 CET 2016
vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Sun Nov 6 21:44:16 2016 -0600| [c9987f17297005f21ec367d04d090e117605cd5c] | committer: Yikai Lu
MediaItem.qml: Highlight when clicked
> https://code.videolan.org/videolan/vlmc/commit/c9987f17297005f21ec367d04d090e117605cd5c
---
src/Gui/library/ui/MediaItem.qml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/Gui/library/ui/MediaItem.qml b/src/Gui/library/ui/MediaItem.qml
index 9510f11..49daa43 100644
--- a/src/Gui/library/ui/MediaItem.qml
+++ b/src/Gui/library/ui/MediaItem.qml
@@ -3,7 +3,7 @@ import QtQuick.Controls 1.4
Rectangle {
id: mediaItem
- color: "#333333"
+ color: GridView.isCurrentItem ? "black" : "#333333"
border.color: "#222222"
border.width: 1
property string thumbnailPath
@@ -57,8 +57,8 @@ Rectangle {
id: dragArea
anchors.fill: parent
onPressed: {
+ gridView.currentIndex = index;
view.startDrag( mediaId );
}
- onClicked: gridView.currentIndex = index
}
}
More information about the Vlmc-devel
mailing list