Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TableEditor: Qt: Fix exception in selected_indices and more #167

Merged

Conversation

pankajp
Copy link
Contributor

@pankajp pankajp commented Jun 2, 2014

  • 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

The `_get_selected_indices` method was incorrectly implemented
causing TypeError.
@rkern
Copy link
Member

rkern commented Jun 2, 2014

LGTM.

Pankaj Pandey added 2 commits June 3, 2014 18:07
Avoid warning messages of the kind:

 RuntimeWarning: Invalid return value in function
 QAbstractTableModel.flags, expected ItemFlags, got NoneType.
@pankajp pankajp changed the title TableEditor: Qt: Fix exception in selected_indices TableEditor: Qt: Fix exception in selected_indices and more Jun 4, 2014
@pankajp
Copy link
Contributor Author

pankajp commented Jun 4, 2014

@rkern I've added a a few more very minor fixes to the PR (too minor imho to deserve a PR on their own)

@rkern
Copy link
Member

rkern commented Jun 4, 2014

Still LGTM.

pankajp added a commit that referenced this pull request Jun 25, 2014
…dices

TableEditor: Qt: Fix exception in selected_indices and more
@pankajp pankajp merged commit 04308ba into enthought:master Jun 25, 2014
@pankajp pankajp deleted the fix-qt-table-editor-selection_indices branch June 25, 2014 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants