From 5549fd4a4befcec283359cfb7a5170cf068151f9 Mon Sep 17 00:00:00 2001 From: George Dorn Date: Fri, 1 Jan 2021 18:01:25 -0800 Subject: Fixes for building on ubuntu 20.04 / qt5.12 --- src/browsertab.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/browsertab.cpp') diff --git a/src/browsertab.cpp b/src/browsertab.cpp index daf2fd2..dcc3219 100644 --- a/src/browsertab.cpp +++ b/src/browsertab.cpp @@ -47,7 +47,7 @@ #include #include - +#include #include BrowserTab::BrowserTab(MainWindow *mainWindow) : QWidget(nullptr), @@ -551,15 +551,15 @@ void BrowserTab::renderPage(const QByteArray &data, const MimeType &mime) // Find page title in HTML // Split so we only look in the - QStringList head = page_html.split("", Qt::KeepEmptyParts, Qt::CaseInsensitive); + QStringList head = page_html.split("", QString::KeepEmptyParts, Qt::CaseInsensitive); if (head[0] != page_html) { // Split at first title tag. - QStringList a = head[0].split("", Qt::KeepEmptyParts, Qt::CaseInsensitive); + QStringList a = head[0].split("<title>", QString::KeepEmptyParts, Qt::CaseInsensitive); if (a[0] != head[0]) { // Split at second tag. - QStringList b = a[1].split("", Qt::KeepEmptyParts, Qt::CaseInsensitive); + QStringList b = a[1].split("", QString::KeepEmptyParts, Qt::CaseInsensitive); if (b[0] != a[1]) { QTextDocument title; @@ -943,7 +943,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(".", Qt::SkipEmptyParts).first()); + input.setTextValue(this->current_location.fileName().split(".", QString::SkipEmptyParts).first()); if(input.exec() != QDialog::Accepted) return; -- cgit v1.2.3