title: QFileSystemModel custom icons?
body: <p>In my project, I have a QTreeView displaying a location on my drive. I need to change all the icons of the files to a custom icon but leave the folders alone.</p>
  
  <p>I reimplemented QFileSystemModel and I was able to change ALL the icons. Any way to limit the change to only files instead of folders?</p>
  
  <pre><code>QVariant MyQFileSystemModel::data(const QModelIndex&amp; index, int role) const
  {
      if(role == Qt::DecorationRole)
          return QPixmap(":/icons/TAG_Int.png");
      return QFileSystemModel::data(index, role);
  }
  </code></pre>
  
  <p>This:</p>
  
  <p><img src="https://i.stack.imgur.com/UH1nw.png" alt="enter image description here"></p>
  
  <p>Becomes:</p>
  
  <p><img src="https://i.stack.imgur.com/6O5Lo.png" alt="enter image description here"></p>
  
  <p>How can I only change the icon of the files?</p>
  
  <p>Thanks for your time :)</p>