Rename value to glyph_data in glyphdbedit.Column and its subclasses.
This commit is contained in:
parent
da67db6dff
commit
ce3353c831
1 changed files with 12 additions and 12 deletions
|
|
@ -34,34 +34,34 @@ from ..image import Image
|
|||
|
||||
class Column(object):
|
||||
header = None
|
||||
def data(self, value):
|
||||
def data(self, glyph_data):
|
||||
return None
|
||||
|
||||
def image(self, value):
|
||||
def image(self, glyph_data):
|
||||
return None
|
||||
|
||||
def sortKey(self, value):
|
||||
return self.data(value)
|
||||
def sortKey(self, glyph_data):
|
||||
return self.data(glyph_data)
|
||||
|
||||
|
||||
class TextColumn(Column):
|
||||
header = 'Text'
|
||||
|
||||
def data(self, value):
|
||||
return value.text
|
||||
def data(self, glyph_data):
|
||||
return glyph_data.text
|
||||
|
||||
def image(self, value):
|
||||
return value.image.qimage
|
||||
def image(self, glyph_data):
|
||||
return glyph_data.image.qimage
|
||||
|
||||
|
||||
class ElevationColumn(Column):
|
||||
header = 'Elevation'
|
||||
|
||||
def data(self, value):
|
||||
return str(value.elevation)
|
||||
def data(self, glyph_data):
|
||||
return str(glyph_data.elevation)
|
||||
|
||||
def sortKey(self, value):
|
||||
return value.elevation
|
||||
def sortKey(self, glyph_data):
|
||||
return glyph_data.elevation
|
||||
|
||||
|
||||
class GlyphDBModel(QAbstractTableModel):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue