From 52c284c9d5130c09bc865cc2fdda00ce50d85fa8 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 29 Jun 2020 02:46:07 -0400 Subject: [PATCH] CResourceTableModel: Make use of Qt 5 signals and slots --- src/Editor/ResourceBrowser/CResourceTableModel.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Editor/ResourceBrowser/CResourceTableModel.cpp b/src/Editor/ResourceBrowser/CResourceTableModel.cpp index 06c47310..cf14e202 100644 --- a/src/Editor/ResourceBrowser/CResourceTableModel.cpp +++ b/src/Editor/ResourceBrowser/CResourceTableModel.cpp @@ -5,12 +5,12 @@ CResourceTableModel::CResourceTableModel(CResourceBrowser *pBrowser, QObject *pParent) : QAbstractTableModel(pParent) { - connect(pBrowser, SIGNAL(ResourceCreated(CResourceEntry*)), this, SLOT(CheckAddResource(CResourceEntry*))); - connect(pBrowser, SIGNAL(ResourceAboutToBeDeleted(CResourceEntry*)), this, SLOT(CheckRemoveResource(CResourceEntry*))); - connect(pBrowser, SIGNAL(DirectoryCreated(CVirtualDirectory*)), this, SLOT(CheckAddDirectory(CVirtualDirectory*))); - connect(pBrowser, SIGNAL(DirectoryAboutToBeDeleted(CVirtualDirectory*)), this, SLOT(CheckRemoveDirectory(CVirtualDirectory*))); - connect(pBrowser, SIGNAL(ResourceMoved(CResourceEntry*,CVirtualDirectory*,TString)), this, SLOT(OnResourceMoved(CResourceEntry*,CVirtualDirectory*,TString))); - connect(pBrowser, SIGNAL(DirectoryMoved(CVirtualDirectory*,CVirtualDirectory*,TString)), this, SLOT(OnDirectoryMoved(CVirtualDirectory*,CVirtualDirectory*,TString))); + connect(pBrowser, &CResourceBrowser::ResourceCreated, this, &CResourceTableModel::CheckAddResource); + connect(pBrowser, &CResourceBrowser::ResourceAboutToBeDeleted, this, &CResourceTableModel::CheckRemoveResource); + connect(pBrowser, &CResourceBrowser::DirectoryCreated, this, &CResourceTableModel::CheckAddDirectory); + connect(pBrowser, &CResourceBrowser::DirectoryAboutToBeDeleted, this, &CResourceTableModel::CheckRemoveDirectory); + connect(pBrowser, &CResourceBrowser::ResourceMoved, this, &CResourceTableModel::OnResourceMoved); + connect(pBrowser, &CResourceBrowser::DirectoryMoved, this, &CResourceTableModel::OnDirectoryMoved); } // ************ INTERFACE ************