TableEditor: Qt: Fix exception in selected_indices and more

- The `_get_selected_indices` method was incorrectly implemented causing TypeError.
- TableModel was returning `None` instead of `ItemFlags` in reimplemented virtual method `flags()`
- CheckBoxColumn was not painting correct background for inactive selected state