Fix no such signal error on assistant startup with no webkit.
authorMitch Curtis <mitch.curtis@digia.com>
Tue, 10 Sep 2013 08:16:43 +0000 (10:16 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 17 Sep 2013 12:25:00 +0000 (14:25 +0200)
QObject::connect: No such signal HelpViewer::printRequested() in
qttools/src/assistant/assistant/centralwidget.cpp:626

Change-Id: If7dee3b8d38f659ca037b9d4ed73e01779f07c67
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
src/assistant/assistant/centralwidget.cpp

index c3541af..19a388b 100644 (file)
@@ -615,6 +615,7 @@ void CentralWidget::initPrinter()
 void CentralWidget::connectSignals(HelpViewer *page)
 {
     TRACE_OBJ
+#if !defined(QT_NO_WEBKIT)
     connect(page, SIGNAL(copyAvailable(bool)), this,
         SIGNAL(copyAvailable(bool)));
     connect(page, SIGNAL(forwardAvailable(bool)), this,
@@ -625,6 +626,9 @@ void CentralWidget::connectSignals(HelpViewer *page)
         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)