OSDN Git Service

ProjectExplorer: Make "Del" work in project tree
authordt <qtc-committer@nokia.com>
Tue, 11 Jan 2011 12:35:12 +0000 (13:35 +0100)
committerdt <qtc-committer@nokia.com>
Tue, 11 Jan 2011 12:38:19 +0000 (13:38 +0100)
Task-Nr: QTCREATORBUG-3432

src/plugins/projectexplorer/projectexplorer.cpp

index c7a7191..0fd7292 100644 (file)
@@ -746,6 +746,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
     d->m_removeFileAction = new QAction(tr("Remove File..."), this);
     cmd = am->registerAction(d->m_removeFileAction, ProjectExplorer::Constants::REMOVEFILE,
                        projecTreeContext);
+    cmd->setDefaultKeySequence(QKeySequence::Delete);
     mfileContextMenu->addAction(cmd, Constants::G_FILE_OTHER);
 
     //: Remove project from parent profile (Project explorer view); will not physically delete any files.
@@ -758,6 +759,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
     d->m_deleteFileAction = new QAction(tr("Delete File..."), this);
     cmd = am->registerAction(d->m_deleteFileAction, ProjectExplorer::Constants::DELETEFILE,
                              projecTreeContext);
+    cmd->setDefaultKeySequence(QKeySequence::Delete);
     mfileContextMenu->addAction(cmd, Constants::G_FILE_OTHER);
 
     // renamefile action