Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

reporegistry: show standard directory icon for groups

see http://doc.qt.nokia.com/4.6/qstyle.html#standardIcon

Changeset a06de7185211

Parent ffe575b51f8d

by Adrian Buehlmann

Changes to one file · Browse files at a06de7185211 Showing diff from parent ffe575b51f8d Diff from another changeset...

 
206
207
208
209
 
 
 
 
 
210
211
212
 
240
241
242
243
 
 
 
 
 
244
245
246
 
206
207
208
 
209
210
211
212
213
214
215
216
 
244
245
246
 
247
248
249
250
251
252
253
254
@@ -206,7 +206,11 @@
    def data(self, column, role):   if role == Qt.DecorationRole: - return QVariant() + if column == 0: + s = QtGui.QApplication.style() + ico = s.standardIcon(QtGui.QStyle.SP_DirIcon) + return QVariant(ico) + return QVariant()   if column == 0:   return QVariant(self.name)   return QVariant() @@ -240,7 +244,11 @@
    def data(self, column, role):   if role == Qt.DecorationRole: - return QVariant() + if column == 0: + s = QtGui.QApplication.style() + ico = s.standardIcon(QtGui.QStyle.SP_DirIcon) + return QVariant(ico) + return QVariant()   if column == 0:   return QVariant(_('all'))   return QVariant()