Changeset 10684


Ignore:
Timestamp:
May 24, 2010, 5:29:36 AM (12 years ago)
Author:
Longinus00
Message:

(qt) Fix regression in file icons caused by printing filesizes in the file tree

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/file-tree.cc

    r10627 r10684  
    537537            icon = style->standardIcon( QStyle::StandardPixmap( QStyle::SP_DirOpenIcon ) );
    538538        else
    539             icon = Utils :: guessMimeIcon( index.model()->data(index).toString( ) );
     539        {
     540            QString name = index.model()->data(index).toString();
     541            icon = Utils :: guessMimeIcon( name.left( name.lastIndexOf( " (" ) ) );
     542        }
    540543        icon.paint( painter, iconArea, Qt::AlignCenter, QIcon::Normal, QIcon::On );
    541544
Note: See TracChangeset for help on using the changeset viewer.