diff --git a/src/plugins/help/centralwidget.cpp b/src/plugins/help/centralwidget.cpp index 60f9446d83d7d3c7060e120e4c4957b74eb94287..b4eb09fa3eb9c6edf31b10dee98fbf68806cae24 100644 --- a/src/plugins/help/centralwidget.cpp +++ b/src/plugins/help/centralwidget.cpp @@ -99,13 +99,6 @@ CentralWidget *CentralWidget::instance() return gStaticCentralWidget; } -bool CentralWidget::hasSelection() const -{ - if (HelpViewer* viewer = currentHelpViewer()) - return !viewer->selectedText().isEmpty(); - return false; -} - bool CentralWidget::isForwardAvailable() const { const HelpViewer* viewer = currentHelpViewer(); @@ -148,10 +141,7 @@ void CentralWidget::addPage(HelpViewer *page, bool fromSearch) void CentralWidget::removePage(int index) { - const bool currentChanged = (index == currentIndex()); m_stackedWidget->removeWidget(m_stackedWidget->widget(index)); - if (currentChanged) - emit currentViewerChanged(); } int CentralWidget::currentIndex() const @@ -162,7 +152,6 @@ int CentralWidget::currentIndex() const void CentralWidget::setCurrentPage(HelpViewer *page) { m_stackedWidget->setCurrentWidget(page); - emit currentViewerChanged(); } bool CentralWidget::find(const QString &txt, Find::FindFlags flags, @@ -212,24 +201,12 @@ void CentralWidget::forward() viewer->forward(); } -void CentralWidget::nextPage() -{ - m_stackedWidget->setCurrentIndex((m_stackedWidget->currentIndex() + 1) - % m_stackedWidget->count()); -} - void CentralWidget::backward() { if (HelpViewer* viewer = currentHelpViewer()) viewer->backward(); } -void CentralWidget::previousPage() -{ - m_stackedWidget->setCurrentIndex((m_stackedWidget->currentIndex() - 1) - % m_stackedWidget->count()); -} - void CentralWidget::print() { #ifndef QT_NO_PRINTER diff --git a/src/plugins/help/centralwidget.h b/src/plugins/help/centralwidget.h index 444c87357d6c2358798501fc72d68a2fe390031a..bf7294b910033eb4498fcdfdb84e027bb8962b12 100644 --- a/src/plugins/help/centralwidget.h +++ b/src/plugins/help/centralwidget.h @@ -59,7 +59,6 @@ public: static CentralWidget *instance(); - bool hasSelection() const; bool isForwardAvailable() const; bool isBackwardAvailable() const; @@ -84,10 +83,7 @@ public slots: void resetZoom(); void forward(); - void nextPage(); - void backward(); - void previousPage(); void print(); void pageSetup(); @@ -102,7 +98,6 @@ protected: signals: void openFindToolBar(); - void currentViewerChanged(); void sourceChanged(const QUrl &url); void forwardAvailable(bool available); void backwardAvailable(bool available);