summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2014-03-24 11:25:57 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-24 15:41:33 +0100
commit596a088b27447de3e67eece0fb5301119d9f0326 (patch)
tree69f9673e4bda13bfb5353194ff3ed063ce8a787b
parent2b831378c34426614781d2a4f0661f7f4c94762c (diff)
downloadqttools-596a088b27447de3e67eece0fb5301119d9f0326.tar.gz
Fix broken navigation in assistant with no webkit.
Broken by 1ebfb744fedf0f9168290da05932079adcc2c536 . Only printRequested() should be excluded. Change-Id: I3c94aa62c469fc0cf32b7cbc8740aee3aeead6c2 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
-rw-r--r--src/assistant/assistant/centralwidget.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/assistant/assistant/centralwidget.cpp b/src/assistant/assistant/centralwidget.cpp
index a1dccc660..5b62f64ed 100644
--- a/src/assistant/assistant/centralwidget.cpp
+++ b/src/assistant/assistant/centralwidget.cpp
@@ -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)