mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 23:03:26 +02:00
Cleanups
This commit is contained in:
parent
5ff70292a3
commit
d5aed1fa22
1 changed files with 3 additions and 4 deletions
|
|
@ -99,6 +99,8 @@ def setup_ui(self, parent):
|
|||
w = self.widgets[1]
|
||||
w.setRange(-100., float(sys.maxint))
|
||||
w.setDecimals(2)
|
||||
w.setSpecialValueText(_('Undefined'))
|
||||
w.setSingleStep(1)
|
||||
|
||||
class Rating(Int):
|
||||
|
||||
|
|
@ -106,7 +108,7 @@ def setup_ui(self, parent):
|
|||
Int.setup_ui(self, parent)
|
||||
w = self.widgets[1]
|
||||
w.setRange(0, 5)
|
||||
w.setSuffix(' '+_('stars'))
|
||||
w.setSuffix(' '+_('star(s)'))
|
||||
w.setSpecialValueText(_('Unrated'))
|
||||
|
||||
def setter(self, val):
|
||||
|
|
@ -307,9 +309,6 @@ def commit(self, book_ids, notify=False):
|
|||
class BulkBool(BulkBase, Bool):
|
||||
pass
|
||||
|
||||
class BulkRating(BulkBase, Rating):
|
||||
pass
|
||||
|
||||
class BulkInt(BulkBase, Int):
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue