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 D | create_custom_column.py | 177 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__.py | 468 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 D | utils.pyj | 130 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 D | custom_column_widgets.py | 295 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 D | cover_flow.py | 149 …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 D | book_details.pyj | 139 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 D | custom_list.pyj | 104 if fm.display.allow_half_stars and (val % 2):
|
H A D | edit_metadata.pyj | 537 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):
|