mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-03 19:17:02 -05:00 
			
		
		
		
	Fix #3944 (More than 2 rating stars not fit in the rating column after resize)
This commit is contained in:
		
							parent
							
								
									6cbede48fb
								
							
						
					
					
						commit
						af93ce32e5
					
				@ -14,7 +14,7 @@ class NewScientist(BasicNewsRecipe):
 | 
				
			|||||||
    description           = 'Science news and science articles from New Scientist.'
 | 
					    description           = 'Science news and science articles from New Scientist.'
 | 
				
			||||||
    language              = 'en'
 | 
					    language              = 'en'
 | 
				
			||||||
    publisher             = 'New Scientist'
 | 
					    publisher             = 'New Scientist'
 | 
				
			||||||
    category              = 'science news, science articles, science jobs, drugs, cancer, depression, computer software, sex'
 | 
					    category              = 'science news, science articles, science jobs, drugs, cancer, depression, computer software'
 | 
				
			||||||
    delay                 = 3
 | 
					    delay                 = 3
 | 
				
			||||||
    oldest_article        = 7
 | 
					    oldest_article        = 7
 | 
				
			||||||
    max_articles_per_feed = 100
 | 
					    max_articles_per_feed = 100
 | 
				
			||||||
 | 
				
			|||||||
@ -68,6 +68,7 @@ class LibraryDelegate(QItemDelegate):
 | 
				
			|||||||
        self.drawFocus(painter, option, option.rect)
 | 
					        self.drawFocus(painter, option, option.rect)
 | 
				
			||||||
        try:
 | 
					        try:
 | 
				
			||||||
            painter.setRenderHint(QPainter.Antialiasing)
 | 
					            painter.setRenderHint(QPainter.Antialiasing)
 | 
				
			||||||
 | 
					            painter.setClipRect(option.rect)
 | 
				
			||||||
            y = option.rect.center().y()-self.SIZE/2.
 | 
					            y = option.rect.center().y()-self.SIZE/2.
 | 
				
			||||||
            x = option.rect.right()  - self.SIZE
 | 
					            x = option.rect.right()  - self.SIZE
 | 
				
			||||||
            painter.setPen(self.PEN)
 | 
					            painter.setPen(self.PEN)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user