diff options
author | kh1 <qt-info@nokia.com> | 2010-05-17 13:58:44 (GMT) |
---|---|---|
committer | kh1 <qt-info@nokia.com> | 2010-05-17 14:00:59 (GMT) |
commit | 6b5a7e8f4f33eaa6b5addca595d58f1dd4a32e7a (patch) | |
tree | dde28ab69f779242c7104985e4daed32857cd342 /tools | |
parent | 25dd6dfe1c7c78370e7cbb266234f6ec5cf0eb95 (diff) | |
download | Qt-6b5a7e8f4f33eaa6b5addca595d58f1dd4a32e7a.zip Qt-6b5a7e8f4f33eaa6b5addca595d58f1dd4a32e7a.tar.gz Qt-6b5a7e8f4f33eaa6b5addca595d58f1dd4a32e7a.tar.bz2 |
Print icon in doc pages has no effect.
Task-number: QTBUG-10579
Reviewed-by: ck
Diffstat (limited to 'tools')
-rw-r--r-- | tools/assistant/tools/assistant/centralwidget.cpp | 1 | ||||
-rw-r--r-- | tools/assistant/tools/assistant/helpviewer_qwv.cpp | 1 | ||||
-rw-r--r-- | tools/assistant/tools/assistant/helpviewer_qwv.h | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/tools/assistant/tools/assistant/centralwidget.cpp b/tools/assistant/tools/assistant/centralwidget.cpp index 2359479..131fb85 100644 --- a/tools/assistant/tools/assistant/centralwidget.cpp +++ b/tools/assistant/tools/assistant/centralwidget.cpp @@ -565,6 +565,7 @@ void CentralWidget::connectSignals() SIGNAL(highlighted(QString))); connect(viewer, SIGNAL(sourceChanged(QUrl)), this, SLOT(setTabTitle(QUrl))); + connect(viewer, SIGNAL(printRequested()), this, SLOT(print())); } } diff --git a/tools/assistant/tools/assistant/helpviewer_qwv.cpp b/tools/assistant/tools/assistant/helpviewer_qwv.cpp index adaa45b..244d091 100644 --- a/tools/assistant/tools/assistant/helpviewer_qwv.cpp +++ b/tools/assistant/tools/assistant/helpviewer_qwv.cpp @@ -269,6 +269,7 @@ HelpViewer::HelpViewer(CentralWidget *parent, qreal zoom) SIGNAL(highlighted(QString))); connect(this, SIGNAL(urlChanged(QUrl)), this, SIGNAL(sourceChanged(QUrl))); connect(this, SIGNAL(loadFinished(bool)), this, SLOT(setLoadFinished(bool))); + connect(page(), SIGNAL(printRequested(QWebFrame*)), this, SIGNAL(printRequested())); setFont(viewerFont()); setTextSizeMultiplier(zoom == 0.0 ? 1.0 : zoom); diff --git a/tools/assistant/tools/assistant/helpviewer_qwv.h b/tools/assistant/tools/assistant/helpviewer_qwv.h index a2c0389..2577828 100644 --- a/tools/assistant/tools/assistant/helpviewer_qwv.h +++ b/tools/assistant/tools/assistant/helpviewer_qwv.h @@ -100,6 +100,7 @@ Q_SIGNALS: void backwardAvailable(bool enabled); void highlighted(const QString &); void sourceChanged(const QUrl &); + void printRequested(); protected: virtual void wheelEvent(QWheelEvent *); |