diff options
Diffstat (limited to 'WebKit/qt/Api/qwebinspector.cpp')
-rw-r--r-- | WebKit/qt/Api/qwebinspector.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/WebKit/qt/Api/qwebinspector.cpp b/WebKit/qt/Api/qwebinspector.cpp index f43cbbf..c3ef530 100644 --- a/WebKit/qt/Api/qwebinspector.cpp +++ b/WebKit/qt/Api/qwebinspector.cpp @@ -151,16 +151,25 @@ void QWebInspector::resizeEvent(QResizeEvent* event) /*! \reimp */ void QWebInspector::showEvent(QShowEvent* event) { +#if ENABLE(INSPECTOR) // Allows QWebInspector::show() to init the inspector. if (d->page) d->page->d->inspectorController()->show(); +#endif } /*! \reimp */ void QWebInspector::hideEvent(QHideEvent* event) { +} + +/*! \reimp */ +void QWebInspector::closeEvent(QCloseEvent* event) +{ +#if ENABLE(INSPECTOR) if (d->page) d->page->d->inspectorController()->setWindowVisible(false); +#endif } /*! \internal */ |