Bug report #11458

can't access to QAction class new methods

Added by enrico ferreguti almost 6 years ago. Updated almost 6 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Python plugins
Affected QGIS version:master Regression?:No
Operating System:windows xp Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:19734

Description

Qgis api 2.5 documentation reports for class QAction these new methods:
iconPath()
icon()

but these methods in 2.5.0-Master. are not visible from python:

If you run this command line from console on a current layer having actions:
dir(iface.mapCanvas().currentLayer().actions().listActions()[0])
you get:
['ActionType', 'Generic', 'GenericPython', 'Mac', 'OpenUrl', 'Unix', 'Windows', '__class__', '__delattr__', '__dict__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'action', 'capture', 'name', 'runable', 'type']
in where you can't find icon() and iconPath()

Associated revisions

Revision 338e138b
Added by Matthias Kuhn almost 6 years ago

SIP update: expose QgsAttributeAction icon, iconPath and name

Fix #11458

History

#1 Updated by Matthias Kuhn almost 6 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF