示例#1
0
 def _defaultAll(self):
     for row in self.data:
         k = row[0]
         v = config_default.rawValue(k)
         row[1] = v
         if self.config[k] != config_default[k]:
             self.changes[k] = v
         elif k in self.changes:
             del self.changes[k]
     self.backup = self.data.toList()
示例#2
0
 def _default(self):
     i = self.table.currentRow()
     if i is not None:
         row = self.data[i]
         k = row[0]
         v = config_default.rawValue(k)
         row[1] = v
         self.backup[i][1] = v
         if self.config[k] != config_default[k]:
             self.changes[k] = v
         elif k in self.changes:
             del self.changes[k]