[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/multimedia/amarok/src/context/applets/photos
From: Simon Esneault <simon.esneault () gmail ! com>
Date: 2009-06-29 13:47:55
Message-ID: 1246283275.965234.15147.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 989114 by sesneault:
Enable drag-n-drop from the photos applet to the current applet cover
M +1 -0 CMakeLists.txt
A DragPixmapItem.cpp [License: GPL (v2+)]
A DragPixmapItem.h [License: GPL (v2+)]
M +2 -1 PhotosScrollWidget.cpp
--- trunk/extragear/multimedia/amarok/src/context/applets/photos/CMakeLists.txt \
#989113:989114 @@ -4,6 +4,7 @@
)
set( photos_applet_SRCS
+ DragPixmapItem.cpp
PhotosApplet.cpp
PhotosScrollWidget.cpp
)
--- trunk/extragear/multimedia/amarok/src/context/applets/photos/PhotosScrollWidget.cpp \
#989113:989114 @@ -15,6 +15,7 @@
****************************************************************************************/
#include "PhotosScrollWidget.h"
+#include "DragPixmapItem.h"
// Amarok
#include "Debug.h"
@@ -59,7 +60,7 @@
{
// scale the cover
- QGraphicsPixmapItem *item = new QGraphicsPixmapItem( this );
+ DragPixmapItem *item = new DragPixmapItem( this );
item->setPixmap( The::svgHandler()->addBordersToPixmap(
pix->scaledToHeight( (int) size().height() - 4 * m_margin, \
Qt::SmoothTransformation ), 5, "", true ) ); item->setPos( m_scrollmax, 0 );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic