fix #1332
This commit is contained in:
parent
c512844faa
commit
bfe5120dbe
3 changed files with 10 additions and 5 deletions
|
@ -191,6 +191,8 @@ endif()
|
|||
if(ENABLE_MEDIAPLAYER_QTMULTIMEDIA OR ENABLE_MEDIAPLAYER_LIBMPV)
|
||||
set(ENABLE_MEDIAPLAYER TRUE)
|
||||
add_compile_definitions(ENABLE_MEDIAPLAYER)
|
||||
else()
|
||||
message(STATUS "Media player feature is disabled.")
|
||||
endif()
|
||||
|
||||
if(NO_LITE)
|
||||
|
|
|
@ -29,12 +29,14 @@ WebBrowser::WebBrowser(WebViewer* viewer, QWidget* parent)
|
|||
m_actionOpenInSystemBrowser(new QAction(qApp->icons()->fromTheme(QSL("document-open")),
|
||||
tr("Open this website in system web browser"),
|
||||
this)),
|
||||
m_actionReadabilePage(new QAction(qApp->icons()->fromTheme(QSL("text-html")),
|
||||
tr("View website in reader mode"),
|
||||
this)),
|
||||
#if defined(ENABLE_MEDIAPLAYER)
|
||||
m_actionPlayPageInMediaPlayer(new QAction(qApp->icons()->fromTheme(QSL("player_play"), QSL("media-playback-start")),
|
||||
tr("Play in media player"),
|
||||
this)) {
|
||||
this)),
|
||||
#endif
|
||||
m_actionReadabilePage(new QAction(qApp->icons()->fromTheme(QSL("text-html")),
|
||||
tr("View website in reader mode"),
|
||||
this)) {
|
||||
if (m_webView == nullptr) {
|
||||
m_webView = qApp->createWebView();
|
||||
dynamic_cast<QWidget*>(m_webView)->setParent(this);
|
||||
|
|
|
@ -101,12 +101,13 @@ class WebBrowser : public TabContent {
|
|||
QAction* m_actionReload;
|
||||
QAction* m_actionStop;
|
||||
QAction* m_actionOpenInSystemBrowser;
|
||||
QAction* m_actionReadabilePage;
|
||||
|
||||
#if defined(ENABLE_MEDIAPLAYER)
|
||||
QAction* m_actionPlayPageInMediaPlayer;
|
||||
#endif
|
||||
|
||||
QAction* m_actionReadabilePage;
|
||||
|
||||
QList<Message> m_messages;
|
||||
QPointer<RootItem> m_root;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue