diff --git a/src/plugins/help/helpplugin.cpp b/src/plugins/help/helpplugin.cpp index 6ef4451a061e00dc6d9aad8cc18450fd8b69dc65..c774fdab7dfa9aa07f773bc35e73367f068cc28a 100644 --- a/src/plugins/help/helpplugin.cpp +++ b/src/plugins/help/helpplugin.cpp @@ -1061,6 +1061,7 @@ void HelpPlugin::handleHelpRequest(const QUrl &url) void HelpPlugin::slotAboutToShowBackMenu() { +#if !defined(QT_NO_WEBKIT) m_backMenu->clear(); if (QWebHistory *history = viewerForContextMode()->history()) { const int currentItemIndex = history->currentItemIndex(); @@ -1072,10 +1073,12 @@ void HelpPlugin::slotAboutToShowBackMenu() m_backMenu->addAction(action); } } +#endif } void HelpPlugin::slotAboutToShowNextMenu() { +#if !defined(QT_NO_WEBKIT) m_nextMenu->clear(); if (QWebHistory *history = viewerForContextMode()->history()) { const int count = history->count(); @@ -1087,10 +1090,12 @@ void HelpPlugin::slotAboutToShowNextMenu() m_nextMenu->addAction(action); } } +#endif } void HelpPlugin::slotOpenActionUrl(QAction *action) { +#if !defined(QT_NO_WEBKIT) if (HelpViewer* viewer = viewerForContextMode()) { const int offset = action->data().toInt(); QWebHistory *history = viewer->history(); @@ -1101,6 +1106,9 @@ void HelpPlugin::slotOpenActionUrl(QAction *action) history->goToItem(history->backItems(-1 * offset).first()); // back } } +#else + Q_UNUSED(action) +#endif } void HelpPlugin::doSetupIfNeeded()