Make it possible to remove items with the DEL key.
This commit is contained in:
parent
80ef7e0563
commit
9481029960
@ -30,7 +30,7 @@
|
|||||||
#define VER_LAMEXP_MINOR_LO 4
|
#define VER_LAMEXP_MINOR_LO 4
|
||||||
#define VER_LAMEXP_TYPE RC
|
#define VER_LAMEXP_TYPE RC
|
||||||
#define VER_LAMEXP_PATCH 2
|
#define VER_LAMEXP_PATCH 2
|
||||||
#define VER_LAMEXP_BUILD 982
|
#define VER_LAMEXP_BUILD 983
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
// Tool versions (minimum expected versions!)
|
// Tool versions (minimum expected versions!)
|
||||||
|
@ -862,6 +862,15 @@ void MainWindow::keyPressEvent(QKeyEvent *e)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(e->key() == Qt::Key_Delete)
|
||||||
|
{
|
||||||
|
if(sourceFileView->isVisible())
|
||||||
|
{
|
||||||
|
QTimer::singleShot(0, this, SLOT(removeFileButtonClicked()));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
QMainWindow::keyPressEvent(e);
|
QMainWindow::keyPressEvent(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user