PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 964 - QAbstractItemView.moveCursor() method is missing
: QAbstractItemView.moveCursor() method is missing
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtGui
: HEAD
: PC Linux
: P3 normal
Assigned To: Hugo Parente Lima
:
:
:
  Show dependency treegraph
 
Reported: 2011-08-10 21:27 EEST by Hereldar
Modified: 2011-08-23 00:35 EEST (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hereldar 2011-08-10 21:27:16 EEST
I need to change the behavior of `QTreeView` when the tab key is pressed. When
I overwrote the `moveCursor()` method, I discovered that my implementation is
ignored. The reason is that `moveCursor()` is not accessible from PySide.
However, the other protected methods of the class are accesible yet.

Steps to Reproduce:
-------------------

    from PySide.QtGui import QAbstractItemView
    hasattr(QAbstractItemView, 'moveCursor')

Actual Results:
---------------

    False

Expected Results:
-----------------

    True

Platform:
---------

    Distribution: Kubuntu 11.04
    KDE S.C.:     4.6.2
    Qt:           4.7.2
    PySide:       1.0.5
    PySide Tools: 0.2.11
Comment 1 Hugo Parente Lima 2011-08-10 21:56:10 EEST
This method was removed and there's a comment:

"because the CursorAction enum is protected"

We are going to investigate if the motivation for removal still valid.

Thanks for reporting.

Regards
Comment 2 Hereldar 2011-08-10 22:10:55 EEST
This comment is strange because I checked that the
`QAbstractItemView.CursorAction` enum and it constants are accessible from
PySide.
Comment 3 Hugo Parente Lima 2011-08-10 22:57:29 EEST
(In reply to comment #2)
> This comment is strange because I checked that the
> `QAbstractItemView.CursorAction` enum and it constants are accessible from
> PySide.

Yep, removing the removal from type system works, I didn't commit it yet
because I need a proper unit test to close this bug, so this bug will wait a
bit, anyway I think it should be fixed before the next release.
Comment 4 Hugo Parente Lima 2011-08-17 00:01:21 EEST
Fixed in commit:

pyside/c495e61e03e2b9842d6fa1495ce2f07fd55f0a26
Comment 5 renato filho 2011-08-23 00:35:36 EEST
Released on PySide 1.0.6