Version: 1.0 (using KDE 3.4.0, Debian Package 4:3.4.0-0ubuntu3 (3.1)) Compiler: gcc version 3.3.5 (Debian 1:3.3.5-8ubuntu2) OS: Linux (i686) release 2.6.10-5-386 At the moment, you can't drag an article from the articles list to another program, e.g. drag'n drop it to an e-mail. It should behave like KMail itself where dragging a mail to the mail composer will attach that mail.
Sounds reasonable.
SVN commit 414333 by rytilahti: Allow dragging of article. (will give you link for the article) This feature removes also bug when multiple articles are marked as read when trying to drag something :) warning-- too... BUGS:103384 FEATURE:103387 M +10 -2 trunk/KDE/kdepim/akregator/src/articlelistview.cpp M +3 -0 trunk/KDE/kdepim/akregator/src/articlelistview.h --- trunk/KDE/kdepim/akregator/src/articlelistview.cpp #414332:414333 @@ -34,6 +34,7 @@ #include <kiconloader.h> #include <klocale.h> #include <kcharsets.h> +#include <kurl.h> #include <qdatetime.h> #include <qpixmap.h> @@ -41,6 +42,7 @@ #include <qvaluelist.h> #include <qwhatsthis.h> #include <qheader.h> +#include <qdragobject.h> using namespace Akregator; @@ -113,7 +115,7 @@ setItemsRenameable(false); setItemsMovable(false); setAllColumnsShowFocus(true); - setDragEnabled(false); // FIXME before we implement dragging between archived feeds?? + setDragEnabled(true); // FIXME before we implement dragging between archived feeds?? setAcceptDrops(false); // FIXME before we implement dragging between archived feeds?? setFullWidth(false); @@ -317,6 +319,12 @@ } } +QDragObject *ArticleListView::dragObject() +{ + QDragObject *d = new QTextDrag(currentItem()->article().link().prettyURL(), this); + return d; +} + void ArticleListView::slotPreviousArticle() { QListViewItem *lvi = currentItem(); @@ -446,7 +454,7 @@ emit signalArticleChosen( ai->article() ); } -void ArticleListView::slotCurrentChanged(QListViewItem* item) +void ArticleListView::slotCurrentChanged(QListViewItem*/* item*/) {/* ArticleItem* ai = dynamic_cast<ArticleItem*> (item); if (ai) --- trunk/KDE/kdepim/akregator/src/articlelistview.h #414332:414333 @@ -32,6 +32,7 @@ #include <qptrlist.h> class QKeyEvent; +class QDragObject; namespace Akregator { @@ -118,6 +119,8 @@ /** applies text filter and status filter by setting visibility of items accordingly */ virtual void applyFilters(); + + virtual QDragObject *dragObject(); protected slots: virtual void slotSelectionChanged();
This feature is broken in 4.1.3. How can I reopen this bug?