diff options
| author | Peter Penz <[email protected]> | 2007-02-16 17:03:02 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-02-16 17:03:02 +0000 |
| commit | 546384562ae872614cd0c8fa568bd65ae41885da (patch) | |
| tree | 9baf799af17c8ed58f75f559040adc1995c834fd /src/dolphincontroller.h | |
| parent | cf8f099bd566f1873ba1187aa9408b481c842f1a (diff) | |
Reanimated drag & drop support again after introducing the DolphinController. It is now also possible to move the items inside an icon view like discussed on kde-devel/kde-usability.
svn path=/trunk/KDE/kdebase/apps/; revision=634228
Diffstat (limited to 'src/dolphincontroller.h')
| -rw-r--r-- | src/dolphincontroller.h | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/dolphincontroller.h b/src/dolphincontroller.h index 8229ade1e..bde01c28e 100644 --- a/src/dolphincontroller.h +++ b/src/dolphincontroller.h @@ -56,11 +56,13 @@ public: void setUrl(const KUrl& url) { m_url = url; } const KUrl& url() const { return m_url; } - void triggerContextMenuRequest(const QPoint& pos, - const QPoint& globalPos); + void triggerContextMenuRequest(const QPoint& pos); void triggerActivation(); + void indicateDroppedUrls(const KUrl::List& urls, + const QPoint& pos); + void indicateSortingChange(DolphinView::Sorting sorting); void indicateSortOrderChange(Qt::SortOrder order); @@ -76,17 +78,24 @@ signals: * context menu should be opened. It is recommended * to get the corresponding model index from * this position. - * @param globalPos Global position where the context menu should - * be opened. */ - void requestContextMenu(const QPoint& pos, - const QPoint& globalPos); + void requestContextMenu(const QPoint& pos); /** * Is emitted if the view has been activated by e. g. a mouse click. */ void activated(); + /** + * Is emitted if the URLs \a urls have been dropped. + * @param pos Position relative to the view widget where the + * dropping has been done. It is recommended + * to get the corresponding model index from + * this position to find out the destination. + */ + void urlsDropped(const KUrl::List& urls, + const QPoint& pos); + /** Is emitted if the sorting has been changed to \a sorting. */ void sortingChanged(DolphinView::Sorting sorting); |
