File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 7070 padding : 2px 6px 2px 6px ;
7171 }
7272
73+ th {
74+ font-weight : bold;
75+ }
76+
7377 @media screen {
7478 td , th {
7579 white-space : nowrap;
Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ def data(role=Qt.DisplayRole,
241241 bgcolor = 'transparent'
242242
243243 font = data (Qt .FontRole )
244- weight = 'bold' if font and font .bold () else 'normal '
244+ weight = 'font-weight: bold; ' if font and font .bold () else ''
245245
246246 alignment = data (Qt .TextAlignmentRole ) or Qt .AlignLeft
247247 halign = ('left' if alignment & Qt .AlignLeft else
@@ -254,7 +254,7 @@ def data(role=Qt.DisplayRole,
254254 'color:{fgcolor};'
255255 'border:{border};'
256256 'background:{bgcolor};'
257- 'font-weight: {weight};'
257+ '{weight};'
258258 'text-align:{halign};'
259259 'vertical-align:{valign};">{text}</{tag}>' .format (
260260 tag = 'th' if row is None or col is None else 'td' ,
You can’t perform that action at this time.
0 commit comments