Home
last modified time | relevance | path

Searched refs:allow_half_stars (Results 1 – 8 of 8) sorted by relevance

/dports/deskutils/calibre/calibre-src-5.34.0/src/calibre/gui2/preferences/
H A Dcreate_custom_column.py177 self.allow_half_stars.setChecked(bool(c['display'].get('allow_half_stars', False)))
187 if self.allow_half_stars.isChecked():
375 self.allow_half_stars = ahs = QCheckBox(_('Allow half stars'))
489 self.allow_half_stars.setVisible(col_type == 'rating')
618 half_stars = bool(self.allow_half_stars.isChecked())
/dports/deskutils/calibre/calibre-src-5.34.0/src/calibre/ebooks/metadata/
H A D__init__.py468 def rating_to_stars(value, allow_half_stars=False, star='★', half='⯨'): argument
471 if allow_half_stars and r % 2:
/dports/deskutils/calibre/calibre-src-5.34.0/src/pyj/
H A Dutils.pyj130 def rating_to_stars(value, allow_half_stars=False, star='★', half='⯨'):
132 if allow_half_stars:
/dports/deskutils/calibre/calibre-src-5.34.0/src/calibre/gui2/
H A Dcustom_column_widgets.py295 allow_half_stars = self.col_metadata['display'].get('allow_half_stars', False)
297 self.finish_ui_setup(parent, partial(RatingEditor, is_half_star=allow_half_stars))
1101 allow_half_stars = self.col_metadata['display'].get('allow_half_stars', False)
1102 self.make_widgets(parent, partial(RatingEditor, is_half_star=allow_half_stars))
H A Dcover_flow.py149 …return rating_to_stars(val, allow_half_stars=db.field_metadata[field]['display'].get('allow_half_s…
/dports/deskutils/calibre/calibre-src-5.34.0/src/pyj/book_list/
H A Dbook_details.pyj139 def add_stars_to(stars, val, allow_half_stars):
142 if allow_half_stars and (val % 2):
252 add_stars_to(stars, val, fm.display?.allow_half_stars)
H A Dcustom_list.pyj104 if fm.display.allow_half_stars and (val % 2):
H A Dedit_metadata.pyj537 numbers = list(range(11)) if fm.display?.allow_half_stars else list(range(0, 11, 2))
829 if fm.display.allow_half_stars and (val % 2):