Fix broken navigation in assistant with no webkit.
authorFriedemann Kleint <Friedemann.Kleint@digia.com>
Mon, 24 Mar 2014 10:25:57 +0000 (11:25 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 24 Mar 2014 14:41:33 +0000 (15:41 +0100)
Broken by 1ebfb744fedf0f9168290da05932079adcc2c536 . Only
printRequested() should be excluded.

Change-Id: I3c94aa62c469fc0cf32b7cbc8740aee3aeead6c2
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
src/assistant/assistant/centralwidget.cpp

index a1dccc6..5b62f64 100644 (file)
@@ -616,6 +616,8 @@ void CentralWidget::connectSignals(HelpViewer *page)
 {
     TRACE_OBJ
 #if !defined(QT_NO_WEBKIT)
+    connect(page, SIGNAL(printRequested()), this, SLOT(print()));
+#endif
     connect(page, SIGNAL(copyAvailable(bool)), this,
         SIGNAL(copyAvailable(bool)));
     connect(page, SIGNAL(forwardAvailable(bool)), this,
@@ -624,11 +626,7 @@ void CentralWidget::connectSignals(HelpViewer *page)
         SIGNAL(backwardAvailable(bool)));
     connect(page, SIGNAL(sourceChanged(QUrl)), this,
         SLOT(handleSourceChanged(QUrl)));
-    connect(page, SIGNAL(printRequested()), this, SLOT(print()));
     connect(page, SIGNAL(highlighted(QString)), this, SLOT(slotHighlighted(QString)));
-#else
-    Q_UNUSED(page)
-#endif
 }
 
 bool CentralWidget::eventFilter(QObject *object, QEvent *e)