#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)
{
}
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());
}
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());