From 2a0dd1586414f83b55cb20d11042fb49efc88419 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 2 Mar 2026 10:36:18 +1100 Subject: Update deprecated methods for Qt 6+. QDropEvent::pos -> position for Qt6. QMessageBox constructor updated to variant with single buttons argument. --- qt/ScintillaEditBase/PlatQt.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'qt/ScintillaEditBase/PlatQt.cpp') diff --git a/qt/ScintillaEditBase/PlatQt.cpp b/qt/ScintillaEditBase/PlatQt.cpp index 38aec01a0..96e7f2865 100644 --- a/qt/ScintillaEditBase/PlatQt.cpp +++ b/qt/ScintillaEditBase/PlatQt.cpp @@ -1378,8 +1378,13 @@ void Platform::Assert(const char *c, const char *file, int line) noexcept char buffer[2000]; snprintf(buffer, std::size(buffer), "Assertion [%s] failed at %s %d", c, file, line); if (Platform::ShowAssertionPopUps(false)) { +#if QT_VERSION >= QT_VERSION_CHECK(6, 2, 0) + QMessageBox mb(QMessageBox::Icon::NoIcon, "Assertion Failure", buffer, + QMessageBox::StandardButton::Ok); +#else QMessageBox mb("Assertion Failure", buffer, QMessageBox::NoIcon, QMessageBox::Ok, QMessageBox::NoButton, QMessageBox::NoButton); +#endif mb.exec(); } else { strcat(buffer, "\n"); -- cgit v1.2.3