CVirtualDirectoryTreeView: Make use of in-class initializers where applicable

This commit is contained in:
Lioncash 2020-06-28 06:16:39 -04:00
parent 041afedea3
commit 75f805f0ff
1 changed files with 6 additions and 5 deletions

View File

@ -9,13 +9,14 @@ class CVirtualDirectoryTreeView : public QTreeView
{
Q_OBJECT
CVirtualDirectoryModel *mpModel;
bool mTransferSelectionPostMove;
CVirtualDirectoryModel *mpModel = nullptr;
bool mTransferSelectionPostMove = false;
public:
CVirtualDirectoryTreeView(QWidget *pParent = 0);
void dragEnterEvent(QDragEnterEvent *pEvent);
void setModel(QAbstractItemModel *pModel);
explicit CVirtualDirectoryTreeView(QWidget *pParent = nullptr);
void dragEnterEvent(QDragEnterEvent *pEvent) override;
void setModel(QAbstractItemModel *pModel) override;
public slots:
void OnDirectoryAboutToBeMoved(CVirtualDirectory *pDir);