Merge from custcol trunk

This commit is contained in:
Charles Haley 2010-05-06 15:00:48 +01:00
commit e3637bf022

View File

@ -99,6 +99,8 @@ class Float(Int):
w = self.widgets[1] w = self.widgets[1]
w.setRange(-100., float(sys.maxint)) w.setRange(-100., float(sys.maxint))
w.setDecimals(2) w.setDecimals(2)
w.setSpecialValueText(_('Undefined'))
w.setSingleStep(1)
class Rating(Int): class Rating(Int):
@ -106,7 +108,7 @@ class Rating(Int):
Int.setup_ui(self, parent) Int.setup_ui(self, parent)
w = self.widgets[1] w = self.widgets[1]
w.setRange(0, 5) w.setRange(0, 5)
w.setSuffix(' '+_('stars')) w.setSuffix(' '+_('star(s)'))
w.setSpecialValueText(_('Unrated')) w.setSpecialValueText(_('Unrated'))
def setter(self, val): def setter(self, val):
@ -307,9 +309,6 @@ class BulkBase(Base):
class BulkBool(BulkBase, Bool): class BulkBool(BulkBase, Bool):
pass pass
class BulkRating(BulkBase, Rating):
pass
class BulkInt(BulkBase, Int): class BulkInt(BulkBase, Int):
pass pass