From b833a5d261727616b18cfc81f13b624b1316044f Mon Sep 17 00:00:00 2001 From: Alexey Andreyev Date: Sat, 25 Mar 2023 01:10:18 +0300 Subject: Introduce Qt 6 support With QT_VERSION_CHECK and core5compat module --- src/browsertab.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/browsertab.cpp') diff --git a/src/browsertab.cpp b/src/browsertab.cpp index 1b90720..eb879d1 100644 --- a/src/browsertab.cpp +++ b/src/browsertab.cpp @@ -28,6 +28,7 @@ #include #include +#include #include #include #include @@ -1124,7 +1125,11 @@ 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:")); +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) input.setTextValue(this->current_location.fileName().split(".", QString::SkipEmptyParts).first()); +#else + input.setTextValue(this->current_location.fileName().split(".", Qt::SkipEmptyParts).first()); +#endif if(input.exec() != QDialog::Accepted) return; -- cgit v1.2.3