CResourceTableView: Make use of in-class initializers where applicable

This commit is contained in:
Lioncash 2020-06-28 05:36:14 -04:00
parent 8f440ae90e
commit c118703ce5
1 changed files with 7 additions and 6 deletions

View File

@ -9,14 +9,15 @@ class CResourceTableView : public QTableView
{
Q_OBJECT
CResourceTableModel *mpModel;
CResourceProxyModel *mpProxy;
QAction *mpDeleteAction;
CResourceTableModel *mpModel = nullptr;
CResourceProxyModel *mpProxy = nullptr;
QAction *mpDeleteAction = nullptr;
public:
explicit CResourceTableView(QWidget *pParent = 0);
void setModel(QAbstractItemModel *pModel);
void dragEnterEvent(QDragEnterEvent *pEvent);
explicit CResourceTableView(QWidget *pParent = nullptr);
void setModel(QAbstractItemModel *pModel) override;
void dragEnterEvent(QDragEnterEvent *pEvent) override;
public slots:
void DeleteSelected();