Changeset View
Changeset View
Standalone View
Standalone View
src/kitemviews/kitemlistviewaccessible.cpp
Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Line(s) | 68 | { | |||
---|---|---|---|---|---|
73 | if (m_cells.size() <= index) { | 73 | if (m_cells.size() <= index) { | ||
74 | m_cells.resize(childCount()); | 74 | m_cells.resize(childCount()); | ||
75 | } | 75 | } | ||
76 | Q_ASSERT(index < m_cells.size()); | 76 | Q_ASSERT(index < m_cells.size()); | ||
77 | 77 | | |||
78 | QAccessibleInterface* child = m_cells.at(index); | 78 | QAccessibleInterface* child = m_cells.at(index); | ||
79 | if (!child) { | 79 | if (!child) { | ||
80 | child = new KItemListAccessibleCell(view(), index); | 80 | child = new KItemListAccessibleCell(view(), index); | ||
81 | m_cells.insert(index, child); | ||||
81 | QAccessible::registerAccessibleInterface(child); | 82 | QAccessible::registerAccessibleInterface(child); | ||
82 | } | 83 | } | ||
83 | return child; | 84 | return child; | ||
84 | } | 85 | } | ||
85 | 86 | | |||
86 | QAccessibleInterface* KItemListViewAccessible::cellAt(int row, int column) const | 87 | QAccessibleInterface* KItemListViewAccessible::cellAt(int row, int column) const | ||
87 | { | 88 | { | ||
88 | return cell(columnCount() * row + column); | 89 | return cell(columnCount() * row + column); | ||
▲ Show 20 Lines • Show All 385 Lines • Show Last 20 Lines |