CResourceTableContextMenu: Make use of in-class initializers where applicable
This commit is contained in:
parent
57072ffeb4
commit
298e9b501c
|
@ -12,8 +12,6 @@ CResourceTableContextMenu::CResourceTableContextMenu(CResourceBrowser *pBrowser,
|
||||||
, mpTable(pView)
|
, mpTable(pView)
|
||||||
, mpModel(pModel)
|
, mpModel(pModel)
|
||||||
, mpProxy(pProxy)
|
, mpProxy(pProxy)
|
||||||
, mpClickedEntry(nullptr)
|
|
||||||
, mpClickedDirectory(nullptr)
|
|
||||||
{
|
{
|
||||||
// Connect to the view
|
// Connect to the view
|
||||||
connect(pView, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(ShowMenu(QPoint)));
|
connect(pView, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(ShowMenu(QPoint)));
|
||||||
|
|
|
@ -19,8 +19,8 @@ class CResourceTableContextMenu : public QMenu
|
||||||
QModelIndexList mSelectedIndexes;
|
QModelIndexList mSelectedIndexes;
|
||||||
QModelIndex mClickedIndex;
|
QModelIndex mClickedIndex;
|
||||||
QModelIndex mClickedProxyIndex;
|
QModelIndex mClickedProxyIndex;
|
||||||
CResourceEntry *mpClickedEntry;
|
CResourceEntry *mpClickedEntry = nullptr;
|
||||||
CVirtualDirectory *mpClickedDirectory;
|
CVirtualDirectory *mpClickedDirectory = nullptr;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CResourceTableContextMenu(CResourceBrowser *pBrowser, QTableView *pView, CResourceTableModel *pModel, CResourceProxyModel *pProxy);
|
CResourceTableContextMenu(CResourceBrowser *pBrowser, QTableView *pView, CResourceTableModel *pModel, CResourceProxyModel *pProxy);
|
||||||
|
|
Loading…
Reference in New Issue