add printSectionName method to listViewController
This commit is contained in:
parent
1029142b47
commit
14d67503a8
2 changed files with 10 additions and 2 deletions
|
|
@ -68,8 +68,8 @@ void ListViewFocusController::setDelegateIndex(int index)
|
||||||
|
|
||||||
void ListViewFocusController::nextDelegate()
|
void ListViewFocusController::nextDelegate()
|
||||||
{
|
{
|
||||||
const auto sectionName = m_currentSectionString[static_cast<int>(m_currentSection)];
|
printSectionName();
|
||||||
qDebug() << "===>> [nextDelegate... current section: " << sectionName << " ]";
|
|
||||||
switch (m_currentSection) {
|
switch (m_currentSection) {
|
||||||
case Section::Default: {
|
case Section::Default: {
|
||||||
if (hasHeader()) {
|
if (hasHeader()) {
|
||||||
|
|
@ -268,6 +268,12 @@ bool ListViewFocusController::hasFooter() const
|
||||||
return m_footer && !focusControl::getItemsChain(m_footer).isEmpty();
|
return m_footer && !focusControl::getItemsChain(m_footer).isEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ListViewFocusController::printSectionName() const
|
||||||
|
{
|
||||||
|
const auto sectionName = m_currentSectionString[static_cast<int>(m_currentSection)];
|
||||||
|
qDebug() << "===>> [nextDelegate... current section: " << sectionName << " ]";
|
||||||
|
}
|
||||||
|
|
||||||
bool ListViewFocusController::isFirstFocusItemInListView() const
|
bool ListViewFocusController::isFirstFocusItemInListView() const
|
||||||
{
|
{
|
||||||
switch (m_currentSection) {
|
switch (m_currentSection) {
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,8 @@ private:
|
||||||
bool hasHeader() const;
|
bool hasHeader() const;
|
||||||
bool hasFooter() const;
|
bool hasFooter() const;
|
||||||
|
|
||||||
|
void printSectionName() const;
|
||||||
|
|
||||||
QQuickItem *m_listView;
|
QQuickItem *m_listView;
|
||||||
QList<QObject *> m_focusChain;
|
QList<QObject *> m_focusChain;
|
||||||
Section m_currentSection;
|
Section m_currentSection;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue