DzStyle::actionPixmap(...) warnings

OmnifluxOmniflux Posts: 427

Calling DzStyle::actionPixmap(...) with a DzAction classname without an associated pixmap produces a warning, but I cannot find a way to check if there is one associated first. Can anyone point me in the right direction?

[WARNING] :: \src\sdksource\interface\style\dzstyle.cpp(3587): Unrecognized class name in DzStyle::actionPixmap(): 'DzAlignAction'
Post edited by Richard Haseltine on

Comments

  • Richard HaseltineRichard Haseltine Posts: 107,857
    edited March 11

    We are prompted to suggest:

    DzActionMgr::findAction()
    DzAction::getIcon()
    DzAction::getIconFile()
    QAction:icon()
    QIcon:isNull()

    I think that means try to recover the icon, then test to see if it is null. These give diffrent types of information which may help, depending on how any icon was added.

    Post edited by Richard Haseltine on
  • OmnifluxOmniflux Posts: 427
    edited March 11

    Thanks,

    DzAction::getIcon() is not linkable, but QAction:icon() appears to be what I need (and obvious enough I should have caught it myself...)

    Post edited by Omniflux on
Sign In or Register to comment.