diff options
| author | Alexey Andreyev <aa13q@ya.ru> | 2023-03-25 01:10:18 +0300 |
|---|---|---|
| committer | Felix Queißner <felix@ib-queissner.de> | 2023-03-24 23:42:29 +0100 |
| commit | b833a5d261727616b18cfc81f13b624b1316044f (patch) | |
| tree | ffee83549a0d34b90937850c206cfc8bec72e3a4 /src/browsertab.cpp | |
| parent | c15e14e9d1fc9042c53d782dcdfeed1bea5a10d8 (diff) | |
| download | kristall-b833a5d261727616b18cfc81f13b624b1316044f.tar.gz | |
Introduce Qt 6 support
With QT_VERSION_CHECK and core5compat module
Diffstat (limited to 'src/browsertab.cpp')
| -rw-r--r-- | src/browsertab.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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 <cassert> #include <QTabWidget> +#include <QtGlobal> #include <QMenu> #include <QMessageBox> #include <QInputDialog> @@ -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; |
