This commit is contained in:
Sergio Martins
2020-04-04 13:12:06 +01:00
parent 74a748936d
commit 9a18276819
4 changed files with 86 additions and 67 deletions

View File

@@ -145,7 +145,7 @@ public:
* This includes non-visible (placeholder) Items too.
* @sa visibleCount
*/
int count() const { return m_items.size(); }
int count() const { return m_rootItem->count_recursive(); }
/**
* @brief Returns the number of visible Items in this layout.
@@ -161,11 +161,6 @@ public:
*/
int placeholderCount() const;
/**
* @brief Returns true if count is 0.
*/
bool isEmpty() const { return m_items.isEmpty(); }
/**
* @brief Returns whether there's non placeholder items.
*/
@@ -421,7 +416,6 @@ private:
MultiSplitter *const m_multiSplitter;
Layouting::Anchor::List m_anchors;
ItemList m_items;
bool m_inCtor = true;
bool m_inDestructor = false;
bool m_beingMergedIntoAnotherMultiSplitter = false; // TODO