Thread: [aKregator-devel] [Bug 103387] New: Allow drag and drop of articles to other programs
Brought to you by:
lippel
From: Eckhart Wör. <kd...@ew...> - 2005-04-06 21:30:45
|
------- 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=103387 Summary: Allow drag and drop of articles to other programs Product: akregator Version: 1.0 Platform: unspecified OS/Version: Linux Status: UNCONFIRMED Severity: wishlist Priority: NOR Component: general AssignedTo: akregator-devel lists sourceforge net ReportedBy: kde ewsoftware de 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. |
From: Teemu R. <tp...@d5...> - 2005-05-12 21:22:30
|
------- 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=103387 tpr d5k net changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW everconfirmed|0 |1 ------- Additional Comments From tpr d5k net 2005-05-12 23:22 ------- Sounds reasonable. |
From: Teemu R. <tp...@d5...> - 2005-05-15 20:29:13
|
------- 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=103387 tpr d5k net changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Additional Comments From tpr d5k net 2005-05-15 22:29 ------- 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(); |