[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/multimedia/amarok/playground/src/context/applets/videoclip
From: Simon Esneault <simon.esneault () gmail ! com>
Date: 2009-05-24 20:26:35
Message-ID: 1243196795.693542.4957.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 972393 by sesneault:
Video description visible when hovering the thumbnail, and also direct link to the \
video (save as .flv :o)
M +3 -4 VideoclipApplet.cpp
--- trunk/extragear/multimedia/amarok/playground/src/context/applets/videoclip/VideoclipApplet.cpp \
#972392:972393 @@ -70,9 +70,6 @@
m_pixYoutube = new QPixmap( \
KStandardDirs::locate("data","amarok/images/amarok-videoclip-youtube.png" \
) );
m_pixDailymotion = new QPixmap( KStandardDirs::locate("data", \
"amarok/images/amarok-videoclip-dailymotion.png" ) );
m_pixVimeo = new QPixmap( KStandardDirs::locate("data", \
"amarok/images/amarok-videoclip-vimeo.png" ) );
-
- // debug()<< "SIMON | yeah" <<m_pixDailymotion->size().width();
-
// Create label
QFont labelFont;
@@ -188,11 +185,13 @@
for (int i=0; i<data["title"].toStringList().size();i++)
{
debug() << "VideoclipApplet::dataUpdated: "<< \
data["id"].toStringList().at(i);
-
+
// create image
QLabel *icon = new QLabel();
icon->setPixmap(The::svgHandler()->addBordersToPixmap(
data["coverpix"].toHash()[data["cover"].toStringList().at(i)].value<QPixmap>(), \
5, "Thumbnail", true ).scaledToHeight(90)); + \
icon->setToolTip(QString("<html><body><a \
href=\"")+data["fulllink"].toStringList().at(i)+ + \
QString("\">")+data["fulllink"].toStringList().at(i)+QString("</a><br>")+data["description"].toStringList().at(i));
// create link (and resize, no more than 3 lines long)
QString title(data["title"].toStringList().at(i));
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic