aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Skec <skec@protonmail.ch>2020-12-31 12:33:49 +1100
committerFelix Queißner <felix@ib-queissner.de>2020-12-31 10:13:49 +0100
commitdd8ebd62c544c3af16da80bda80b998108d9d09a (patch)
treed3353c843ff68cbe60d5c8635532d4d48bec4f74 /src
parent775b20cbe634928eebbfe8947bfa4093df30e6ef (diff)
downloadkristall-dd8ebd62c544c3af16da80bda80b998108d9d09a.tar.gz
Fixes a few warnings and deprecation notices
Diffstat (limited to 'src')
-rw-r--r--src/browsertab.cpp2
-rw-r--r--src/protocols/abouthandler.cpp2
-rw-r--r--src/protocols/webclient.cpp2
-rw-r--r--src/renderers/markdownrenderer.cpp1
4 files changed, 4 insertions, 3 deletions
diff --git a/src/browsertab.cpp b/src/browsertab.cpp
index 65fde7f..70478a3 100644
--- a/src/browsertab.cpp
+++ b/src/browsertab.cpp
@@ -900,7 +900,7 @@ void BrowserTab::on_text_browser_anchorClicked(const QUrl &url, bool open_in_new
QInputDialog input { this };
input.setInputMode(QInputDialog::TextInput);
input.setLabelText(tr("This style has no embedded name. Please enter a name for the preset:"));
- input.setTextValue(this->current_location.fileName().split(".", QString::SkipEmptyParts).first());
+ input.setTextValue(this->current_location.fileName().split(".", Qt::SkipEmptyParts).first());
if(input.exec() != QDialog::Accepted)
return;
diff --git a/src/protocols/abouthandler.cpp b/src/protocols/abouthandler.cpp
index 292cd73..4ab789b 100644
--- a/src/protocols/abouthandler.cpp
+++ b/src/protocols/abouthandler.cpp
@@ -34,7 +34,7 @@ bool AboutHandler::startRequest(const QUrl &url, ProtocolHandler::RequestOptions
if(current_group != fav.first) {
document.append("\n");
- document.append(QString("## %1\n").arg(fav.first));
+ document.append(QString("## %1\n").arg(fav.first).toUtf8());
current_group = fav.first;
}
diff --git a/src/protocols/webclient.cpp b/src/protocols/webclient.cpp
index 299b39b..e4a2036 100644
--- a/src/protocols/webclient.cpp
+++ b/src/protocols/webclient.cpp
@@ -47,7 +47,7 @@ bool WebClient::startRequest(const QUrl &url, RequestOptions options)
}
// request.setMaximumRedirectsAllowed(5);
- request.setAttribute(QNetworkRequest::FollowRedirectsAttribute, false);
+ request.setAttribute(QNetworkRequest::RedirectPolicyAttribute, QNetworkRequest::ManualRedirectPolicy);
request.setSslConfiguration(ssl_config);
this->manager.clearAccessCache();
diff --git a/src/renderers/markdownrenderer.cpp b/src/renderers/markdownrenderer.cpp
index 5ab4504..17696f4 100644
--- a/src/renderers/markdownrenderer.cpp
+++ b/src/renderers/markdownrenderer.cpp
@@ -304,6 +304,7 @@ static void renderNode(RenderState &state, cmark_node & node, const QTextCharFor
qDebug() << "CMARK_NODE_IMAGE";
break;
}
+ default: break;
}
}