Skip to content

Commit 7683dd3

Browse files
author
Vasyl Vavrychuk
committed
change webdriver window title according to document title
1 parent 93a0539 commit 7683dd3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/webdriver/extension_qt/qwebviewext.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,18 @@
77
#include "webdriver_switches.h"
88
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
99
#include <QtWidgets/QWidget>
10+
#include <QtWebKitWidgets/QWebFrame>
1011
#else
1112
#include <QtGui/QWidget>
13+
#include <QtWebKit/QWebFrame>
1214
#endif
1315

1416
QWebViewExt::QWebViewExt(QWidget *parent) :
1517
QWebView(parent)
1618
{
1719
setWebInspectorProperty(this);
1820
connect(page(), SIGNAL(windowCloseRequested()), this, SLOT(close()));
21+
connect(this, SIGNAL(titleChanged(QString)), this, SLOT(setWindowTitle(QString)));
1922
}
2023

2124
QWebViewExt::~QWebViewExt()

0 commit comments

Comments
 (0)