From 9a55b0d704c1301f5aef569392ca2695d8fc3204 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 17 Sep 2010 21:16:56 +0000 Subject: There is no need to burden DolphinMainWindow with internals of the context-menu. CCMAIL: markg85@gmail.com svn path=/trunk/KDE/kdebase/apps/; revision=1176513 --- src/dolphinmainwindow.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/dolphinmainwindow.cpp') diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 6f407a84a..722a90f93 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -114,8 +114,7 @@ DolphinMainWindow::DolphinMainWindow(int id) : m_actionHandler(0), m_remoteEncoding(0), m_settingsDialog(0), - m_lastHandleUrlStatJob(0), - m_keyInfo(new KModifierKeyInfo) + m_lastHandleUrlStatJob(0) { setObjectName("Dolphin#"); @@ -1168,12 +1167,6 @@ void DolphinMainWindow::openContextMenu(const KFileItem& item, const QList& customActions) { DolphinContextMenu contextMenu(this, item, url); - - if(m_keyInfo.isKeyPressed(Qt::Key_Shift) || m_keyInfo.isKeyLatched(Qt::Key_Shift)) { - contextMenu.setShiftIsPressed(true); - } - - connect(&m_keyInfo, SIGNAL(keyPressed(Qt::Key, bool)), &contextMenu, SLOT(deleteOrTrashMenuEntry(Qt::Key, bool))); contextMenu.setCustomActions(customActions); contextMenu.open(); } -- cgit v1.3