File tree Expand file tree Collapse file tree 5 files changed +7
-21
lines changed Expand file tree Collapse file tree 5 files changed +7
-21
lines changed Original file line number Diff line number Diff line change @@ -437,17 +437,17 @@ int main(int argc, char **argv)
437437 mainWindow.qDisplayError (
438438 localServerSettingsFilePath + " <br>" +
439439 " is malformed." );
440- qDebug () << localServerSettingsFilePath << " <br> "
441- << " is malformed." ;
440+ qDebug () << localServerSettingsFilePath
441+ << " is malformed." ;
442442 }
443443 }
444444
445445 if (localServerJsonDocument.isNull ()) {
446446 mainWindow.qDisplayError (
447447 localServerSettingsFilePath + " <br>" +
448448 " is empty." );
449- qDebug () << localServerSettingsFilePath << " <br> "
450- << " is empty." ;
449+ qDebug () << localServerSettingsFilePath
450+ << " is empty." ;
451451 }
452452
453453 // Local server has to be started as
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ greaterThan (QT_MAJOR_VERSION, 4) {
135135 }
136136
137137 greaterThan (QT_MINOR_VERSION, 5) {
138- equals (QTWEBKIT , 0) {
138+ equals (ANNULEN_QTWEBKIT , 0) {
139139 # Source files:
140140 SOURCES += \
141141 main.cpp \
@@ -156,7 +156,7 @@ greaterThan (QT_MAJOR_VERSION, 4) {
156156 webengine-view.h
157157 }
158158
159- equals (QTWEBKIT , 1) {
159+ equals (ANNULEN_QTWEBKIT , 1) {
160160 # Source files:
161161 SOURCES += \
162162 main.cpp \
Original file line number Diff line number Diff line change @@ -48,12 +48,6 @@ QPage::QPage()
4848 QWebEngineSettings::globalSettings ()->
4949 setAttribute (QWebEngineSettings::XSSAuditingEnabled, true );
5050
51- // Signal and slot for file downloads:
52- // QObject::connect(QWebEngineProfile::defaultProfile(),
53- // SIGNAL(downloadRequested(QWebEngineDownloadItem*)),
54- // this,
55- // SLOT(qDownloadRequestedSlot(QWebEngineDownloadItem*)));
56-
5751 // Signal and slot for actions taken after page is loaded:
5852 QObject::connect (this , SIGNAL (loadFinished (bool )),
5953 this , SLOT (qPageLoadedSlot (bool )));
Original file line number Diff line number Diff line change @@ -68,14 +68,6 @@ public slots:
6868 }
6969 }
7070
71- // ==============================
72- // Downloads handling:
73- // ==============================
74- // void qDownloadRequestedSlot(QWebEngineDownloadItem* download) {
75- // qDebug() << "Path: " << download->path();
76- // download->accept();
77- // }
78-
7971 // ==============================
8072 // Page settings handling:
8173 // ==============================
Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ QPage::QPage()
3030{
3131 // QWebPage settings:
3232 QNetworkProxyFactory::setUseSystemConfiguration (true );
33+
3334 QWebSettings::globalSettings ()->
3435 setDefaultTextEncoding (QString (" utf-8" ));
35-
3636 QWebSettings::globalSettings ()->
3737 setAttribute (QWebSettings::JavaEnabled, false );
3838 QWebSettings::globalSettings ()->
You can’t perform that action at this time.
0 commit comments