remove mDelegateCol because it is already set to 0 in the header

This commit is contained in:
Martin Marmsoler 2023-11-12 16:58:30 +01:00
parent d54bb20253
commit 1bad8fa305
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ const QString kLabelFmt = "<p style='color: gray; font-weight: bold'>%1</p>";
} // namespace
TreeView::TreeView(QWidget *parent, const QString &name)
: QTreeView(parent), mDelegateCol(0),
: QTreeView(parent),
mFileListDelegatePtr(std::make_unique<ViewDelegate>(this, true)),
mFileTreeDelegatePtr(std::make_unique<ViewDelegate>(this)), mName(name) {
setObjectName(name);

View File

@ -103,7 +103,7 @@ private:
QString mName;
std::unique_ptr<ViewDelegate> mFileListDelegatePtr;
std::unique_ptr<ViewDelegate> mFileTreeDelegatePtr;
int mDelegateCol = 0;
int mDelegateCol{false};
};
#endif // TREEVIEW_H