title: QTreeView selection clears text color
body: <p>I have subclassed <code>QTreeView</code> and made model subclassed from <code>QAbstractTableModel</code>and everything works fine. If something is being changed in QTreeView from code (not by user), then that row's text color becomes red. I have implemented this trough checking <code>Qt::TextColorRole</code> from <code>data()</code> function and returning <code>Qt::red</code>.</p>
  
  <p>But if that particular row is being selected, then text color changes automatically to black (and background color to light green, which is normal). After deselecting that row everything is OK again. In debug mode I've seen that <code>data()</code> function returns true value for selected row (<code>Qt::red</code>). </p>
  
  <p>Now how can I solve this problem, what may cause to this incorrect behaviour?</p>
  
  <p>Thank you in advance!</p>