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/dolphincontextmenu.cpp | |
| 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/dolphincontextmenu.cpp')
| -rw-r--r-- | src/dolphincontextmenu.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/dolphincontextmenu.cpp b/src/dolphincontextmenu.cpp index 8cc79e955..f40b47878 100644 --- a/src/dolphincontextmenu.cpp +++ b/src/dolphincontextmenu.cpp @@ -46,11 +46,9 @@ #include <QDir> DolphinContextMenu::DolphinContextMenu(DolphinView* parent, - KFileItem* fileInfo, - const QPoint& pos) : + KFileItem* fileInfo) : m_dolphinView(parent), - m_fileInfo(fileInfo), - m_pos(pos) + m_fileInfo(fileInfo) { } @@ -104,7 +102,7 @@ void DolphinContextMenu::openViewportContextMenu() QAction* propertiesAction = popup->addAction(i18n("Properties...")); - QAction* activatedAction = popup->exec(m_pos); + QAction* activatedAction = popup->exec(QCursor::pos()); if (activatedAction == propertiesAction) { new KPropertiesDialog(dolphin->activeView()->url()); } @@ -185,7 +183,7 @@ void DolphinContextMenu::openItemContextMenu() QAction* propertiesAction = dolphin->actionCollection()->action("properties"); popup->addAction(propertiesAction); - QAction* activatedAction = popup->exec(m_pos); + QAction* activatedAction = popup->exec(QCursor::pos()); if ((bookmarkAction!= 0) && (activatedAction == bookmarkAction)) { const KUrl selectedUrl(m_fileInfo->url()); |
