diff options
| author | George Dorn <gdorn_gh@circuitlocution.com> | 2021-01-01 18:01:25 -0800 |
|---|---|---|
| committer | Felix Queißner <felix@ib-queissner.de> | 2021-01-02 10:20:20 +0100 |
| commit | 5549fd4a4befcec283359cfb7a5170cf068151f9 (patch) | |
| tree | 133ed90cea4805dfe7ef9aadf0fbc9a31e60a496 /src/browsertab.cpp | |
| parent | 0c022e3464c7dedde4a1b1fd9e13dd5bc20056de (diff) | |
| download | kristall-5549fd4a4befcec283359cfb7a5170cf068151f9.tar.gz | |
Fixes for building on ubuntu 20.04 / qt5.12
Diffstat (limited to 'src/browsertab.cpp')
| -rw-r--r-- | src/browsertab.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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 <QGraphicsPixmapItem> #include <QGraphicsTextItem> - +#include <QRegularExpression> #include <iconv.h> 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 <head> - QStringList head = page_html.split("</head>", Qt::KeepEmptyParts, Qt::CaseInsensitive); + QStringList head = page_html.split("</head>", QString::KeepEmptyParts, Qt::CaseInsensitive); if (head[0] != page_html) { // Split at first title tag. - QStringList a = head[0].split("<title>", 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("</title>", Qt::KeepEmptyParts, Qt::CaseInsensitive); + QStringList b = a[1].split("</title>", 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; |
