CResourceTableView: Make use of Qt 5 signals and slots

This commit is contained in:
Lioncash 2020-06-29 02:47:00 -04:00
parent 52c284c9d5
commit 8f9da5c5ed
1 changed files with 2 additions and 2 deletions

View File

@ -4,14 +4,14 @@
#include <QAction> #include <QAction>
#include <QDragEnterEvent> #include <QDragEnterEvent>
CResourceTableView::CResourceTableView(QWidget *pParent /*= 0*/) CResourceTableView::CResourceTableView(QWidget *pParent)
: QTableView(pParent) : QTableView(pParent)
{ {
// todo: removed delete shortcut because it conflicts with the World Editor delete shortcut // todo: removed delete shortcut because it conflicts with the World Editor delete shortcut
#if 0 #if 0
mpDeleteAction = new QAction(this); mpDeleteAction = new QAction(this);
mpDeleteAction->setShortcut(QKeySequence::Delete); mpDeleteAction->setShortcut(QKeySequence::Delete);
connect(mpDeleteAction, SIGNAL(triggered(bool)), this, SLOT(DeleteSelected())); connect(mpDeleteAction, &QAction::triggered, this, &CResourceTableView::DeleteSelected);
addAction(mpDeleteAction); addAction(mpDeleteAction);
#endif #endif
} }