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)
|
if(ENABLE_MEDIAPLAYER_QTMULTIMEDIA OR ENABLE_MEDIAPLAYER_LIBMPV)
|
||||||
set(ENABLE_MEDIAPLAYER TRUE)
|
set(ENABLE_MEDIAPLAYER TRUE)
|
||||||
add_compile_definitions(ENABLE_MEDIAPLAYER)
|
add_compile_definitions(ENABLE_MEDIAPLAYER)
|
||||||
|
else()
|
||||||
|
message(STATUS "Media player feature is disabled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NO_LITE)
|
if(NO_LITE)
|
||||||
|
|
|
@ -29,11 +29,13 @@ WebBrowser::WebBrowser(WebViewer* viewer, QWidget* parent)
|
||||||
m_actionOpenInSystemBrowser(new QAction(qApp->icons()->fromTheme(QSL("document-open")),
|
m_actionOpenInSystemBrowser(new QAction(qApp->icons()->fromTheme(QSL("document-open")),
|
||||||
tr("Open this website in system web browser"),
|
tr("Open this website in system web browser"),
|
||||||
this)),
|
this)),
|
||||||
m_actionReadabilePage(new QAction(qApp->icons()->fromTheme(QSL("text-html")),
|
#if defined(ENABLE_MEDIAPLAYER)
|
||||||
tr("View website in reader mode"),
|
|
||||||
this)),
|
|
||||||
m_actionPlayPageInMediaPlayer(new QAction(qApp->icons()->fromTheme(QSL("player_play"), QSL("media-playback-start")),
|
m_actionPlayPageInMediaPlayer(new QAction(qApp->icons()->fromTheme(QSL("player_play"), QSL("media-playback-start")),
|
||||||
tr("Play in media player"),
|
tr("Play in media player"),
|
||||||
|
this)),
|
||||||
|
#endif
|
||||||
|
m_actionReadabilePage(new QAction(qApp->icons()->fromTheme(QSL("text-html")),
|
||||||
|
tr("View website in reader mode"),
|
||||||
this)) {
|
this)) {
|
||||||
if (m_webView == nullptr) {
|
if (m_webView == nullptr) {
|
||||||
m_webView = qApp->createWebView();
|
m_webView = qApp->createWebView();
|
||||||
|
|
|
@ -101,12 +101,13 @@ class WebBrowser : public TabContent {
|
||||||
QAction* m_actionReload;
|
QAction* m_actionReload;
|
||||||
QAction* m_actionStop;
|
QAction* m_actionStop;
|
||||||
QAction* m_actionOpenInSystemBrowser;
|
QAction* m_actionOpenInSystemBrowser;
|
||||||
QAction* m_actionReadabilePage;
|
|
||||||
|
|
||||||
#if defined(ENABLE_MEDIAPLAYER)
|
#if defined(ENABLE_MEDIAPLAYER)
|
||||||
QAction* m_actionPlayPageInMediaPlayer;
|
QAction* m_actionPlayPageInMediaPlayer;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
QAction* m_actionReadabilePage;
|
||||||
|
|
||||||
QList<Message> m_messages;
|
QList<Message> m_messages;
|
||||||
QPointer<RootItem> m_root;
|
QPointer<RootItem> m_root;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue