diff --git a/client/ui/controllers/listViewFocusController.cpp b/client/ui/controllers/listViewFocusController.cpp index 565f3e28..28d23d4d 100644 --- a/client/ui/controllers/listViewFocusController.cpp +++ b/client/ui/controllers/listViewFocusController.cpp @@ -68,8 +68,8 @@ void ListViewFocusController::setDelegateIndex(int index) void ListViewFocusController::nextDelegate() { - const auto sectionName = m_currentSectionString[static_cast(m_currentSection)]; - qDebug() << "===>> [nextDelegate... current section: " << sectionName << " ]"; + printSectionName(); + switch (m_currentSection) { case Section::Default: { if (hasHeader()) { @@ -268,6 +268,12 @@ bool ListViewFocusController::hasFooter() const return m_footer && !focusControl::getItemsChain(m_footer).isEmpty(); } +void ListViewFocusController::printSectionName() const +{ + const auto sectionName = m_currentSectionString[static_cast(m_currentSection)]; + qDebug() << "===>> [nextDelegate... current section: " << sectionName << " ]"; +} + bool ListViewFocusController::isFirstFocusItemInListView() const { switch (m_currentSection) { diff --git a/client/ui/controllers/listViewFocusController.h b/client/ui/controllers/listViewFocusController.h index a2550dd3..b77edfd6 100644 --- a/client/ui/controllers/listViewFocusController.h +++ b/client/ui/controllers/listViewFocusController.h @@ -53,6 +53,8 @@ private: bool hasHeader() const; bool hasFooter() const; + void printSectionName() const; + QQuickItem *m_listView; QList m_focusChain; Section m_currentSection;