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 <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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue