Collapse disabled accounts

This commit is contained in:
mailchuck 2015-10-01 10:18:33 +02:00 committed by Peter Surda
parent a961ad1d84
commit fd7ed893a7

View File

@ -608,6 +608,7 @@ class MyForm(QtGui.QMainWindow):
brush = QtGui.QBrush(QApplication.palette().text().color())
else:
brush = QtGui.QBrush(QtGui.QColor(128, 128, 128))
newItem.setExpanded(False)
brush.setStyle(QtCore.Qt.NoBrush)
newItem.setForeground(0, brush)