mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Show an about message when the preview panel is cleared
This commit is contained in:
parent
170b16b74b
commit
6c0b9ec38b
@ -381,7 +381,19 @@ class WebView(QWebView):
|
||||
return property(fget=fget, fset=fset)
|
||||
|
||||
def clear(self):
|
||||
self.setHtml('<p>')
|
||||
self.setHtml(_(
|
||||
'''
|
||||
<h3>Live preview</h3>
|
||||
|
||||
<p>Here you will see a live preview of the HTML file you are currently editing.
|
||||
The preview will update automatically as you make changes.
|
||||
|
||||
<p style="font-size:x-small; color: gray">Note that this is a quick preview
|
||||
only, it is not intended to simulate an actual ebook reader. Some
|
||||
aspects of your ebook will not work, such as, page breaks,
|
||||
page margins and embedded fonts that use font name aliasing.
|
||||
|
||||
'''))
|
||||
|
||||
def inspect(self):
|
||||
self.inspector.parent().show()
|
||||
|
Loading…
x
Reference in New Issue
Block a user