aboutsummaryrefslogtreecommitdiff
path: root/src/webengine/webpage.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-09-18 17:13:24 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-09-18 17:13:24 +0200
commitd7c51cc1f3e67ad9c167b7afcbf7313181832718 (patch)
tree1c1b9754060ebfbbf4ad606f39a820b539db1b11 /src/webengine/webpage.cpp
parentUpdate vendor.cmake (diff)
downloadsmolbote-d7c51cc1f3e67ad9c167b7afcbf7313181832718.tar.xz
clang-format pass
Diffstat (limited to 'src/webengine/webpage.cpp')
-rw-r--r--src/webengine/webpage.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/webengine/webpage.cpp b/src/webengine/webpage.cpp
index ff57ac5..28b426b 100644
--- a/src/webengine/webpage.cpp
+++ b/src/webengine/webpage.cpp
@@ -7,14 +7,14 @@
*/
#include "webpage.h"
+#include <QLayout>
#include <QMessageBox>
-#include <QWebEngineFullScreenRequest>
#include <QTimer>
-#include <QLayout>
+#include <QWebEngineFullScreenRequest>
QString tr_terminationStatus(QWebEnginePage::RenderProcessTerminationStatus status)
{
- switch (status) {
+ switch(status) {
case QWebEnginePage::NormalTerminationStatus:
return QObject::tr("The render process terminated normally.");
case QWebEnginePage::AbnormalTerminationStatus:
@@ -142,8 +142,8 @@ void WebPage::renderProcessCrashed(QWebEnginePage::RenderProcessTerminationStatu
QString page = "<html><body><h1>This tab has crashed!</h1>%message%</body></html>";
page.replace(QLatin1String("%message%"), QString("<p>%1<br>Exit code is %2.</p>"
- "<p>Press <a href='%3'>here</a> to reload this tab.</p>").arg(tr_terminationStatus(terminationStatus), QString::number(exitCode),
- this->url().toEncoded()));
+ "<p>Press <a href='%3'>here</a> to reload this tab.</p>")
+ .arg(tr_terminationStatus(terminationStatus), QString::number(exitCode), this->url().toEncoded()));
QTimer::singleShot(0, this, [=]() {
setHtml(page.toUtf8(), url());