From b31f9c93479bde0d39f47456d08b1cb32b881548 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 29 Jun 2020 05:12:50 -0400 Subject: [PATCH] CVirtualDirectoryTreeView: Make use of Qt 5 signals and slots --- src/Editor/ResourceBrowser/CVirtualDirectoryTreeView.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Editor/ResourceBrowser/CVirtualDirectoryTreeView.cpp b/src/Editor/ResourceBrowser/CVirtualDirectoryTreeView.cpp index 569b863a..7fed0fbd 100644 --- a/src/Editor/ResourceBrowser/CVirtualDirectoryTreeView.cpp +++ b/src/Editor/ResourceBrowser/CVirtualDirectoryTreeView.cpp @@ -5,7 +5,6 @@ CVirtualDirectoryTreeView::CVirtualDirectoryTreeView(QWidget *pParent) : QTreeView(pParent) - , mTransferSelectionPostMove(false) { // slightly hacky cuz there's not really a good way to pass in CResourceBrowser as a parameter // due to the fact that we set this class in the .ui file @@ -19,8 +18,8 @@ CVirtualDirectoryTreeView::CVirtualDirectoryTreeView(QWidget *pParent) } ASSERT(pBrowser); - connect(pBrowser, SIGNAL(DirectoryAboutToBeMoved(CVirtualDirectory*,QString)), this, SLOT(OnDirectoryAboutToBeMoved(CVirtualDirectory*))); - connect(pBrowser, SIGNAL(DirectoryMoved(CVirtualDirectory*,CVirtualDirectory*,TString)), this, SLOT(OnDirectoryMoved(CVirtualDirectory*))); + connect(pBrowser, &CResourceBrowser::DirectoryAboutToBeMoved, this, &CVirtualDirectoryTreeView::OnDirectoryAboutToBeMoved); + connect(pBrowser, &CResourceBrowser::DirectoryMoved, this, &CVirtualDirectoryTreeView::OnDirectoryMoved); } void CVirtualDirectoryTreeView::dragEnterEvent(QDragEnterEvent *pEvent)