Skip to content

Commit

Permalink
fix qt6 build (#673)
Browse files Browse the repository at this point in the history
  • Loading branch information
xnuk authored Jul 14, 2024
1 parent f82ce41 commit 961d8af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/frontends/qt5/src/input_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ void KimeInputContext::preedit_str(kime::RustStr s) {
fmt.setFontUnderline(true);
QString qs = QString::fromUtf8((const char *)(s.ptr), s.len);
this->attributes.push_back(QInputMethodEvent::Attribute{
QInputMethodEvent::AttributeType::TextFormat, 0, qs.length(), fmt});
QInputMethodEvent::AttributeType::TextFormat,
0, static_cast<int>(qs.length()), fmt
});
QInputMethodEvent e(qs, this->attributes);
this->attributes.clear();
QCoreApplication::sendEvent(this->focus_object, &e);
Expand Down

0 comments on commit 961d8af

Please sign in to comment.