mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge from custcol trunk
This commit is contained in:
commit
e3637bf022
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user