From: Mitch Curtis Date: Tue, 10 Sep 2013 08:16:43 +0000 (+0200) Subject: Fix no such signal error on assistant startup with no webkit. X-Git-Tag: accepted/tizen/20131212.181521~78^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1ebfb744fedf0f9168290da05932079adcc2c536;p=platform%2Fupstream%2Fqttools.git Fix no such signal error on assistant startup with no webkit. QObject::connect: No such signal HelpViewer::printRequested() in qttools/src/assistant/assistant/centralwidget.cpp:626 Change-Id: If7dee3b8d38f659ca037b9d4ed73e01779f07c67 Reviewed-by: Karsten Heimrich --- diff --git a/src/assistant/assistant/centralwidget.cpp b/src/assistant/assistant/centralwidget.cpp index c3541af..19a388b 100644 --- a/src/assistant/assistant/centralwidget.cpp +++ b/src/assistant/assistant/centralwidget.cpp @@ -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)