Verified Commit 0fd20954 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

ETM: move initialization of members to header file

parent 84bd5c07
......@@ -74,16 +74,6 @@ static CollectionFetchJob::Type getFetchType(EntityTreeModel::CollectionFetchStr
EntityTreeModelPrivate::EntityTreeModelPrivate(EntityTreeModel *parent)
: q_ptr(parent)
, m_monitor(nullptr)
, m_rootNode(nullptr)
, m_collectionFetchStrategy(EntityTreeModel::FetchCollectionsRecursive)
, m_itemPopulation(EntityTreeModel::ImmediatePopulation)
, m_listFilter(CollectionFetchScope::NoFilter)
, m_includeStatistics(false)
, m_showRootCollection(false)
, m_collectionTreeFetched(false)
, m_session(nullptr)
, m_showSystemEntities(false)
{
// using collection as a parameter of a queued call in runItemFetchJob()
qRegisterMetaType<Collection>();
......
......@@ -220,18 +220,19 @@ public:
Monitor *m_monitor = nullptr;
Collection m_rootCollection;
Node *m_rootNode = nullptr;
Node *m_rootNode;
bool m_needDeleteRootNode = false;
QString m_rootCollectionDisplayName;
QStringList m_mimeTypeFilter;
MimeTypeChecker m_mimeChecker;
EntityTreeModel::CollectionFetchStrategy m_collectionFetchStrategy;
EntityTreeModel::ItemPopulationStrategy m_itemPopulation;
CollectionFetchScope::ListFilter m_listFilter;
bool m_includeStatistics;
bool m_showRootCollection;
bool m_collectionTreeFetched;
EntityTreeModel::CollectionFetchStrategy m_collectionFetchStrategy = EntityTreeModel::FetchCollectionsRecursive;
EntityTreeModel::ItemPopulationStrategy m_itemPopulation = EntityTreeModel::ImmediatePopulation;
CollectionFetchScope::ListFilter m_listFilter = CollectionFetchScope::NoFilter;
bool m_includeStatistics = false;
bool m_showRootCollection = false;
bool m_collectionTreeFetched = false;
bool m_showSystemEntities = false;
Session *m_session = nullptr;
/**
* Called after the root collection was fetched by fillModel
*
......@@ -279,7 +280,6 @@ public:
return "FetchCollectionId";
}
Session *m_session = nullptr;
Q_DECLARE_PUBLIC(EntityTreeModel)
......@@ -295,7 +295,6 @@ public:
template<typename T>
bool isHiddenImpl(const T &entity, Node::Type type) const;
bool m_showSystemEntities;
void ref(Collection::Id id);
void deref(Collection::Id id);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment