CVirtualDirectoryTreeView: Make use of Qt 5 signals and slots
This commit is contained in:
parent
d6309a54d3
commit
b31f9c9347
|
@ -5,7 +5,6 @@
|
||||||
|
|
||||||
CVirtualDirectoryTreeView::CVirtualDirectoryTreeView(QWidget *pParent)
|
CVirtualDirectoryTreeView::CVirtualDirectoryTreeView(QWidget *pParent)
|
||||||
: QTreeView(pParent)
|
: QTreeView(pParent)
|
||||||
, mTransferSelectionPostMove(false)
|
|
||||||
{
|
{
|
||||||
// slightly hacky cuz there's not really a good way to pass in CResourceBrowser as a parameter
|
// 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
|
// due to the fact that we set this class in the .ui file
|
||||||
|
@ -19,8 +18,8 @@ CVirtualDirectoryTreeView::CVirtualDirectoryTreeView(QWidget *pParent)
|
||||||
}
|
}
|
||||||
ASSERT(pBrowser);
|
ASSERT(pBrowser);
|
||||||
|
|
||||||
connect(pBrowser, SIGNAL(DirectoryAboutToBeMoved(CVirtualDirectory*,QString)), this, SLOT(OnDirectoryAboutToBeMoved(CVirtualDirectory*)));
|
connect(pBrowser, &CResourceBrowser::DirectoryAboutToBeMoved, this, &CVirtualDirectoryTreeView::OnDirectoryAboutToBeMoved);
|
||||||
connect(pBrowser, SIGNAL(DirectoryMoved(CVirtualDirectory*,CVirtualDirectory*,TString)), this, SLOT(OnDirectoryMoved(CVirtualDirectory*)));
|
connect(pBrowser, &CResourceBrowser::DirectoryMoved, this, &CVirtualDirectoryTreeView::OnDirectoryMoved);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CVirtualDirectoryTreeView::dragEnterEvent(QDragEnterEvent *pEvent)
|
void CVirtualDirectoryTreeView::dragEnterEvent(QDragEnterEvent *pEvent)
|
||||||
|
|
Loading…
Reference in New Issue