Changeset View
Changeset View
Standalone View
Standalone View
src/kitemviews/kitemlistviewaccessible.cpp
Show First 20 Lines • Show All 335 Lines • ▼ Show 20 Line(s) | 335 | if (isSelected()) { | |||
---|---|---|---|---|---|
336 | state.selected = true; | 336 | state.selected = true; | ||
337 | } | 337 | } | ||
338 | 338 | | |||
339 | state.focusable = true; | 339 | state.focusable = true; | ||
340 | if (m_view->controller()->selectionManager()->currentItem() == m_index) { | 340 | if (m_view->controller()->selectionManager()->currentItem() == m_index) { | ||
341 | state.focused = true; | 341 | state.focused = true; | ||
342 | } | 342 | } | ||
343 | 343 | | |||
344 | if (m_view->controller()->selectionBehavior() == KItemListController::MultiSelection) { | 344 | if (m_view->controller()->selectionBehavior() == KItemListController::SelectionBehavior::MultiSelection) { | ||
345 | state.multiSelectable = true; | 345 | state.multiSelectable = true; | ||
346 | } | 346 | } | ||
347 | 347 | | |||
348 | if (m_view->model()->isExpandable(m_index)) { | 348 | if (m_view->model()->isExpandable(m_index)) { | ||
349 | if (m_view->model()->isExpanded(m_index)) { | 349 | if (m_view->model()->isExpanded(m_index)) { | ||
350 | state.expanded = true; | 350 | state.expanded = true; | ||
351 | } else { | 351 | } else { | ||
352 | state.collapsed = true; | 352 | state.collapsed = true; | ||
▲ Show 20 Lines • Show All 121 Lines • Show Last 20 Lines |