fcitx/fcitx5-qt

Can't build with Qt5 < 5.10

oldherl opened this issue · 0 comments

This overload of QMetaObject::invokeMethod was introduced in Qt 5.10, so it can't be built with Qt5 before that.
Should update minimum Qt requirement in CMakeList or change these back to old style.

// Input context may be created without QApplication with wayland, defer it
// to event loop to ensure event dispatcher is avaiable.
QMetaObject::invokeMethod(
this,
[this]() {
watcher_->watch();
fcitx4Watcher_->watch();
},
Qt::QueuedConnection);

QMetaObject::invokeMethod(
this,
[this, window = QPointer<QWindow>(lastWindow_)]() {
if (window != lastWindow_) {
return;
}
update(Qt::ImHints | Qt::ImEnabled);
updateCursorRect();
},
Qt::QueuedConnection);