Skip to content

Commit 6873c98

Browse files
committed
code cleaning
1 parent 3318081 commit 6873c98

File tree

5 files changed

+7
-21
lines changed

5 files changed

+7
-21
lines changed

src/main.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

src/peb.pro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 \

src/webengine-page.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff 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)));

src/webengine-page.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff 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
// ==============================

src/webkit-page.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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()->

0 commit comments

Comments
 (0)