@@ -191,7 +191,6 @@ class QCustomNetworkReply : public QNetworkReply
191191 Q_OBJECT
192192
193193public:
194-
195194 QCustomNetworkReply (
196195 const QUrl &url, const QString &data, const QString &mime);
197196 ~QCustomNetworkReply ();
@@ -1239,7 +1238,6 @@ public slots:
12391238 }
12401239
12411240private:
1242- QWebView *webViewWidget;
12431241 QWebFrame *lastTargetFrame;
12441242
12451243 QString pageStatus;
@@ -1538,9 +1536,8 @@ public slots:
15381536
15391537 void qDisplayScriptErrorsSlot (QString errors)
15401538 {
1541- errorsWindow = new QWebViewWidget ();
1539+ QWebViewWidget * errorsWindow = new QWebViewWidget ();
15421540 errorsWindow->setHtml (errors, QUrl (PSEUDO_DOMAIN));
1543- errorsWindow->adjustSize ();
15441541 errorsWindow->setFocus ();
15451542 errorsWindow->show ();
15461543 }
@@ -1592,7 +1589,8 @@ public slots:
15921589
15931590 QWebView *window = new QWebViewWidget ();
15941591 window->setHtml (loadingContents);
1595- window->show ();
1592+ window->setGeometry (qApp->desktop ()->availableGeometry ());
1593+ window->showMaximized ();
15961594
15971595 qInfo () << " New window opened." ;
15981596
@@ -1601,8 +1599,6 @@ public slots:
16011599
16021600private:
16031601 QPage *mainPage;
1604- QWebView *newWindow;
1605- QWebView *errorsWindow;
16061602
16071603 bool windowCloseRequested;
16081604};
0 commit comments