forked from openlp/openlp
render the themes when the screen size changed
This commit is contained in:
parent
b04e688647
commit
55738636d9
@ -783,6 +783,7 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
||||
self.renderer.update_display()
|
||||
self.liveController.screenSizeChanged()
|
||||
self.previewController.screenSizeChanged()
|
||||
self.themeManagerContents.updatePreviewImages()
|
||||
self.setFocus()
|
||||
self.activateWindow()
|
||||
|
||||
|
@ -660,6 +660,15 @@ class ThemeManager(QtGui.QWidget):
|
||||
pixmap.save(thumb, u'png')
|
||||
log.debug(u'Theme image written to %s', samplepathname)
|
||||
|
||||
def updatePreviewImages(self):
|
||||
"""
|
||||
Called to update the themes' preview images.
|
||||
"""
|
||||
for theme in self.themelist:
|
||||
self.generateAndSaveImage(
|
||||
self.path, theme, self.getThemeData(theme))
|
||||
self.loadThemes()
|
||||
|
||||
def generateImage(self, themeData, forcePage=False):
|
||||
"""
|
||||
Call the renderer to build a Sample Image
|
||||
|
Loading…
Reference in New Issue
Block a user