CResourceTableView: Make use of Qt 5 signals and slots
This commit is contained in:
parent
52c284c9d5
commit
8f9da5c5ed
|
@ -4,14 +4,14 @@
|
|||
#include <QAction>
|
||||
#include <QDragEnterEvent>
|
||||
|
||||
CResourceTableView::CResourceTableView(QWidget *pParent /*= 0*/)
|
||||
CResourceTableView::CResourceTableView(QWidget *pParent)
|
||||
: QTableView(pParent)
|
||||
{
|
||||
// todo: removed delete shortcut because it conflicts with the World Editor delete shortcut
|
||||
#if 0
|
||||
mpDeleteAction = new QAction(this);
|
||||
mpDeleteAction->setShortcut(QKeySequence::Delete);
|
||||
connect(mpDeleteAction, SIGNAL(triggered(bool)), this, SLOT(DeleteSelected()));
|
||||
connect(mpDeleteAction, &QAction::triggered, this, &CResourceTableView::DeleteSelected);
|
||||
addAction(mpDeleteAction);
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue