https://bugs.kde.org/show_bug.cgi?id=358926

Diabolo <olvm...@free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |olvm...@free.fr

--- Comment #4 from Diabolo <olvm...@free.fr> ---
Hi, I can also confirm the bug on OpenSuse Tumbleweed.

I think the problem is linked with QFileIconProvider wich can't find the icon
name;

When you do
        QFileInfo fi ( ... );
    QFileIconProvider fip;
    QIcon icon = fip.icon ( fi );
     qDebug() << "icon.isNull()=" << icon.isNull() 
                << "icon.name()=" << icon.name() 
                << "icon.themeName()="<< icon.themeName() 
            << "icon.themeSearchPaths()=" << icon.themeSearchPaths();
    setIcon ( 0, icon );

The result is :
        icon.isNull()= false    icon.name()= ""      icon.themeName()= "breeze"
     icon.themeSearchPaths()= ("/usr/share/icons", ":/icons")

icon is not null
theme name is OK
theme search path are OK

but there is no icon name

and when you use QIcon icon = fip.icon ( QFileIconProvider::File );  

it's OK

By

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to