From 2d4468d3c67795c14a21e2a9071b46d76680ce57 Mon Sep 17 00:00:00 2001 From: Arno Date: Mon, 5 Sep 2016 03:05:39 +0200 Subject: Remove redundant keyPressEvents Since the actions have shortcuts now, some keyPressEvents are not needed any more. --- filewidget.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'filewidget.cpp') diff --git a/filewidget.cpp b/filewidget.cpp index 35fda3f..5e05670 100644 --- a/filewidget.cpp +++ b/filewidget.cpp @@ -524,21 +524,6 @@ void FileWidget::keyPressEvent(QKeyEvent *e){ mFileView->setFocus(); goto exit; } - if(mFileView->hasFocus()){ - if(e->key() == Qt::Key_Return){ - QModelIndex idx = mFileView->selectionModel()->selectedRows(NameColumn).at(0); - properties(idx); - goto exit; - } - if(e->key() == Qt::Key_Delete){ - deleteFiles(); - goto exit; - } - if(e->key() == Qt::Key_Backspace){ - cdUp(); - goto exit; - } - } QWidget::keyPressEvent(e); exit: -- cgit v1.2.3-70-g09d2