Commit b53b906f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix compile against qt6

parent f1faada8
Pipeline #160219 passed with stages
in 5 minutes and 27 seconds
......@@ -449,7 +449,7 @@ bool PlainTextEditor::event(QEvent *ev)
}
}
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
else if (e->type() == QEvent::ApplicationPaletteChange) {
else if (ev->type() == QEvent::ApplicationPaletteChange) {
regenerateColorScheme();
}
#endif
......
......@@ -754,7 +754,7 @@ void RichTextEditor::wheelEvent(QWheelEvent *event)
return;
}
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
else if (e->type() == QEvent::ApplicationPaletteChange) {
else if (event->type() == QEvent::ApplicationPaletteChange) {
regenerateColorScheme();
}
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment