From 3c942b1249ca6917139b8ae9cb76c11d18fe1364 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Thu, 5 Jul 2012 14:42:49 +0200 Subject: [PATCH] played around with the QML path a bit... --- data/qml/StationScene.qml | 14 +++++++++----- src/libtomahawk/playlist/PlayableItem.cpp | 6 ++++++ 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/data/qml/StationScene.qml b/data/qml/StationScene.qml index 6228245be..58a01eac0 100644 --- a/data/qml/StationScene.qml +++ b/data/qml/StationScene.qml @@ -142,9 +142,9 @@ Rectangle { anchors.fill: parent highlight: appHighlight - preferredHighlightBegin: 0.1 - preferredHighlightEnd: 0.1 - pathItemCount: 3 + preferredHighlightBegin: 0.07 + preferredHighlightEnd: 0.07 + pathItemCount: 4 highlightMoveDuration: 500 model: dynamicModel @@ -157,15 +157,19 @@ Rectangle { startY: 155 PathAttribute { name: "itemOpacity"; value: 0 } PathAttribute { name: "shadowOpacity"; value: 0 } - PathAttribute { name: "itemScale"; value: 1.0 } + PathAttribute { name: "itemScale"; value: 1.5 } PathLine { x: scene.width / 2; y: 150 } PathAttribute { name: "itemOpacity"; value: 1 } PathAttribute { name: "shadowOpacity"; value: 0 } PathAttribute { name: "itemScale"; value: 1.0 } + PathLine { x: scene.width / 2 - 100; y: 180;} + PathAttribute { name: "itemOpacity"; value: 1 } + PathAttribute { name: "shadowOpacity"; value: 0 } + PathAttribute { name: "itemScale"; value: 0.6 } PathLine { x: 100; y: 100;} PathAttribute { name: "itemOpacity"; value: 1 } PathAttribute { name: "shadowOpacity"; value: 1 } - PathAttribute { name: "itemScale"; value: 0.75 } + PathAttribute { name: "itemScale"; value: 0.4 } } } } diff --git a/src/libtomahawk/playlist/PlayableItem.cpp b/src/libtomahawk/playlist/PlayableItem.cpp index ccd8f55f3..7f06d5cf3 100644 --- a/src/libtomahawk/playlist/PlayableItem.cpp +++ b/src/libtomahawk/playlist/PlayableItem.cpp @@ -102,6 +102,9 @@ PlayableItem::PlayableItem( const Tomahawk::query_ptr& query, PlayableItem* pare connect( query.data(), SIGNAL( coverChanged() ), SIGNAL( coverChanged() ) ); + + connect( query->displayQuery().data(), SIGNAL( coverChanged() ), + SIGNAL( coverChanged() ) ); } @@ -129,6 +132,9 @@ PlayableItem::PlayableItem( const Tomahawk::plentry_ptr& entry, PlayableItem* pa connect( m_query.data(), SIGNAL( coverChanged() ), SIGNAL( coverChanged() ) ); + + connect( m_query->displayQuery().data(), SIGNAL( coverChanged() ), + SIGNAL( coverChanged() ) ); }