Qt: keep widgets under menus, and clear the search reliably
A sheet (the long-press menus, the widget picker) used to take every native widget off the screen, since Qt can't draw over them. Now they stay: the widget layer hides them below the sheet's top edge as it rises and dims the rest like the sheet's backdrop, which takes their touches. The search boxes ask for no suggestions, so Android keyboards type straight in instead of composing words, and the clear button commits and clears again once a late commit has landed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hiQsCq11CwCPnKPp9D
This commit is contained in:
6 files changed
+89
-16
No files matched your search
@@ -198,6 +198,16 @@ void Backend::coverWidgets(qreal y) {
|
||||
#endif
|
||||
}
|
||||
|
||||
void Backend::sheetWidgets(qreal y, bool dim) {
|
||||
#ifdef Q_OS_ANDROID
|
||||
const int py = y <= 0 ? 0 : int(std::floor(y * dpr()));
|
||||
QJniObject::callStaticMethod<void>(kActivity, "sheetWidgets", "(IZ)V", jint(py), jboolean(dim));
|
||||
#else
|
||||
Q_UNUSED(y);
|
||||
Q_UNUSED(dim);
|
||||
#endif
|
||||
}
|
||||
|
||||
QVariantMap Backend::widgetLimits(int id) const {
|
||||
#ifdef Q_OS_ANDROID
|
||||
const QJsonObject o = QJsonDocument::fromJson(
|
||||
|
||||
Reference in new issue
Block a user