Skip to content

Commit

Permalink
Make the the .ui files that use QWebView compilable using a binary ca…
Browse files Browse the repository at this point in the history
…libre build

QWebView is exposed as a plugin to the PyQT ui compiler which is not
available in a frozen build. So instead we mock it as a custom widget
with the correct include header.
  • Loading branch information
kovidgoyal committed Jul 15, 2014
1 parent 0857cf8 commit 86f8dcf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/calibre/gui2/store/web_store_dialog.ui
Expand Up @@ -82,11 +82,11 @@
</layout>
</widget>
<customwidgets>
<customwidget>
<class>QWebView</class>
<extends>QWidget</extends>
<header>QtWebKitWidgets/QWebView</header>
</customwidget>
<customwidget>
<class>QWebView</class>
<extends>QWidget</extends>
<header>PyQt5/QtWebKitWidgets</header>
</customwidget>
<customwidget>
<class>NPWebView</class>
<extends>QWebView</extends>
Expand Down
5 changes: 5 additions & 0 deletions src/calibre/gui2/viewer/main.ui
Expand Up @@ -341,6 +341,11 @@
</action>
</widget>
<customwidgets>
<customwidget>
<class>QWebView</class>
<extends>QWidget</extends>
<header>PyQt5/QtWebKitWidgets</header>
</customwidget>
<customwidget>
<class>DocumentView</class>
<extends>QWidget</extends>
Expand Down

0 comments on commit 86f8dcf

Please sign in to comment.