From 8f9da5c5ede528e4428f3a3296030eaf98d124b3 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 29 Jun 2020 02:47:00 -0400 Subject: [PATCH] CResourceTableView: Make use of Qt 5 signals and slots --- src/Editor/ResourceBrowser/CResourceTableView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Editor/ResourceBrowser/CResourceTableView.cpp b/src/Editor/ResourceBrowser/CResourceTableView.cpp index f86f9445..42923f16 100644 --- a/src/Editor/ResourceBrowser/CResourceTableView.cpp +++ b/src/Editor/ResourceBrowser/CResourceTableView.cpp @@ -4,14 +4,14 @@ #include #include -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 }