[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeplasma-addons/applets/frame
From: Antonio Vinci <mercurio () personellarete ! it>
Date: 2008-11-26 14:02:19
Message-ID: 1227708139.112781.9988.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 889318 by vinci:
Manage desktop:/ protocol to make drag'n'drop work from folderview (or from a Dolphin \
window opened from folderview)
M +5 -0 frame.cpp
--- trunk/KDE/kdeplasma-addons/applets/frame/frame.cpp #889317:889318
@@ -38,6 +38,7 @@
#include <KUrl>
#include <KDirSelectDialog>
#include <KServiceTypeTrader>
+#include <kglobalsettings.h>
#include <plasma/paintutils.h>
@@ -388,6 +389,10 @@
void Frame::dropEvent(QGraphicsSceneDragDropEvent *event)
{
KUrl droppedUrl = (KUrl::List::fromMimeData(event->mimeData())).at(0);
+ if (droppedUrl.protocol() == "desktop") {
+ KUrl tmpUrl = KGlobalSettings::desktopPath() + droppedUrl.path();
+ droppedUrl = tmpUrl;
+ }
// If the url is a local directory start slideshowmode
if (droppedUrl.isLocalFile() && QFileInfo(droppedUrl.path()).isDir()) {
m_slideShowPaths.append(droppedUrl.path());
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic