[aKregator-devel] [Bug 94287] dragging feeds should do a KURLDrag
Brought to you by:
lippel
From: George S. <st...@kd...> - 2004-12-02 18:10:42
|
------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. http://bugs.kde.org/show_bug.cgi?id=94287 staikos kde org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Additional Comments From staikos kde org 2004-12-02 19:10 ------- CVS commit by staikos: allow dragging of feeds out of akregator FEATURE: 94287 M +12 -5 feedstree.cpp 1.29 --- kdenonbeta/akregator/src/feedstree.cpp #1.28:1.29 @ -18,4 +18,5 @ #include <kiconloader.h> #include <klocale.h> +#include <kmultipledrag.h> #include <kstringhandler.h> #include <kurldrag.h> @ -660,12 +661,18 @ void FeedsTree::slotNodeChanged(TreeNode QDragObject *FeedsTree::dragObject() { + KMultipleDrag *md = new KMultipleDrag(viewport()); QDragObject *obj = KListView::dragObject(); if (obj) { - QListViewItem *i = static_cast<TreeNodeItem*>(currentItem()); + md->addDragObject(obj); + } + TreeNodeItem *i = static_cast<TreeNodeItem*>(currentItem()); if (i) { - obj->setPixmap(*(i->pixmap(0))); + md->setPixmap(*(i->pixmap(0))); + FeedItem *fi = dynamic_cast<FeedItem*>(i); + if (fi) { + md->addDragObject(KURLDrag::newDrag(KURL(fi->node()->xmlUrl()), 0L)); } } - return obj; + return md; } |