Diffusion KJots a3a40c6894ce

Unbreak openLink and other model problems

Authored by poboiko on Jun 1 2020, 3:58 PM.

Description

Unbreak openLink and other model problems

  • Now that there are two views, we first have to select the parent collection and then the item itself (inside openLink)
  • If we feed KJotsEdit with index from itemView, it cannot fetch information about collections to display them in tooltips. We have first to map index through bunch of proxies to ETM to do it
  • KJotsBrowser was provided with nullptr KJotsModel (it was not yet initialized at this point), so it crashed. Use explicit KJotsBrowser::setModel method to feed it with model (and don't crash if model was not provided - just don't show tooltips...)
  • When using selecionModel()->select() on itemView, it selected only single table cell instead of row, and it was misinterpreted by other places (which used selectedRows()). Tell it to select whole rows explicitly.

Details

Committed
poboikoJun 2 2020, 8:24 PM
Parents
R573:88896261e4c1: Added View menu to manage the view mode
Branches
Unknown
Tags
Unknown