Hi Antonio,

Did you get a chance to find out more about this code from KIconEngine?


    if (QWidget* targetWidget = dynamic_cast<QWidget*>(painter->device())) {
        if (qobject_cast<QMenu*>(targetWidget))
            group = KIconLoader::Small;
        else if (qobject_cast<QToolBar*>(targetWidget->parent()))
            group = KIconLoader::Toolbar;
    }

I'd like to get rid of that hack so that the iconloader doesn't depend on 
QtWidgets,
but I'm not sure what this really does.

Maybe it's for pure QMenus/QToolbars, given that KMenus and KToolbars already 
request
the right 'group'? Or maybe they don't, that's the whole question :)

-- 
David Faure, fa...@kde.org, http://www.davidfaure.fr
Working on KDE, in particular KDE Frameworks 5

_______________________________________________
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel

Reply via email to