1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

GIT_SILENT format changed lines

This commit is contained in:
Yifan Zhu 2023-12-21 17:33:04 -08:00 committed by Juraj Oravec
parent 0681dccfcc
commit aba225af72
3 changed files with 16 additions and 4 deletions

View File

@ -177,7 +177,11 @@ void MainMenu::savePageAs()
void MainMenu::sendLink() void MainMenu::sendLink()
{ {
const QUrl mailUrl = QUrl::fromEncoded(QByteArray("mailto:%20?body=" + QUrl::toPercentEncoding(QString::fromUtf8(m_window->weView()->url().toEncoded())) + "&subject=" + QUrl::toPercentEncoding(m_window->weView()->title()))); const QUrl mailUrl = QUrl::fromEncoded(QByteArray(
"mailto:%20?body=" +
QUrl::toPercentEncoding(
QString::fromUtf8(m_window->weView()->url().toEncoded())) +
"&subject=" + QUrl::toPercentEncoding(m_window->weView()->title())));
QDesktopServices::openUrl(mailUrl); QDesktopServices::openUrl(mailUrl);
} }

View File

@ -157,5 +157,8 @@ void Updater::downCompleted()
void Updater::downloadNewVersion() void Updater::downloadNewVersion()
{ {
m_window->tabWidget()->addView(QUrl::fromEncoded(QByteArray(QByteArray(Qz::WWWADDRESS) + QByteArray("/download"))), tr("Update"), Qz::NT_NotSelectedTab); m_window->tabWidget()->addView(
QUrl::fromEncoded(
QByteArray(QByteArray(Qz::WWWADDRESS) + QByteArray("/download"))),
tr("Update"), Qz::NT_NotSelectedTab);
} }

View File

@ -475,14 +475,19 @@ void WebView::openUrlInNewWindow()
void WebView::sendTextByMail() void WebView::sendTextByMail()
{ {
if (auto* action = qobject_cast<QAction*>(sender())) { if (auto* action = qobject_cast<QAction*>(sender())) {
const QUrl mailUrl = QUrl::fromEncoded(QByteArray("mailto:%20?body=" + QUrl::toPercentEncoding(action->data().toString()))); const QUrl mailUrl = QUrl::fromEncoded(
QByteArray("mailto:%20?body=" +
QUrl::toPercentEncoding(action->data().toString())));
QDesktopServices::openUrl(mailUrl); QDesktopServices::openUrl(mailUrl);
} }
} }
void WebView::sendPageByMail() void WebView::sendPageByMail()
{ {
const QUrl mailUrl = QUrl::fromEncoded(QByteArray("mailto:%20?body=" + QUrl::toPercentEncoding(QString::fromUtf8(url().toEncoded())) + "&subject=" + QUrl::toPercentEncoding(title()))); const QUrl mailUrl = QUrl::fromEncoded(QByteArray(
"mailto:%20?body=" +
QUrl::toPercentEncoding(QString::fromUtf8(url().toEncoded())) +
"&subject=" + QUrl::toPercentEncoding(title())));
QDesktopServices::openUrl(mailUrl); QDesktopServices::openUrl(mailUrl);
} }