diff options
| author | Neil <nyamatongwe@gmail.com> | 2026-03-02 10:36:18 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2026-03-02 10:36:18 +1100 |
| commit | 2a0dd1586414f83b55cb20d11042fb49efc88419 (patch) | |
| tree | 43e47963593ebd0a6d5e39bedb7776a42bdcfc71 /qt/ScintillaEditBase/PlatQt.cpp | |
| parent | 7621fda67d13735836c6f050d1eec8c691a68292 (diff) | |
| download | scintilla-mirror-2a0dd1586414f83b55cb20d11042fb49efc88419.tar.gz | |
Update deprecated methods for Qt 6+.
QDropEvent::pos -> position for Qt6.
QMessageBox constructor updated to variant with single buttons argument.
Diffstat (limited to 'qt/ScintillaEditBase/PlatQt.cpp')
| -rw-r--r-- | qt/ScintillaEditBase/PlatQt.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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"); |
