diff options
Diffstat (limited to 'WebKit/qt/Api/qwebinspector.cpp')
| -rw-r--r-- | WebKit/qt/Api/qwebinspector.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/WebKit/qt/Api/qwebinspector.cpp b/WebKit/qt/Api/qwebinspector.cpp index 802ea98..27148f7 100644 --- a/WebKit/qt/Api/qwebinspector.cpp +++ b/WebKit/qt/Api/qwebinspector.cpp @@ -196,6 +196,31 @@ void QWebInspectorPrivate::setFrontend(QWidget* newFrontend) } } +/*! + * \internal + */ +void QWebInspectorPrivate::attachAndReplaceRemoteFrontend(QObject* newRemoteFrontend) +{ + if (remoteFrontend) + remoteFrontend->setParent(0); + + remoteFrontend = newRemoteFrontend; + + if (remoteFrontend) + remoteFrontend->setParent(q); +} + +/*! + * \internal + */ +void QWebInspectorPrivate::detachRemoteFrontend() +{ + if (remoteFrontend) { + remoteFrontend->deleteLater(); + remoteFrontend = 0; + } +} + void QWebInspectorPrivate::adjustFrontendSize(const QSize& size) { if (frontend) |
