diff options
| author | Christian Ehrlicher <[email protected]> | 2024-11-21 19:05:45 +0100 |
|---|---|---|
| committer | Christian Ehrlicher <[email protected]> | 2025-03-02 13:34:58 +0000 |
| commit | 5b320c146b2d67bb9bec92d647ec7fb5ae6b601d (patch) | |
| tree | 9a730a9b4f47fb272b37ded20b737d7dcbe59006 /src/widgets/kernel | |
| parent | df97b6b2de6282bd6422f1e531a42475dadc980d (diff) | |
Style: pass widget to styleHint() where appropriate
QStyle::styleHint() take the QWidget as optional third parameter. Add
this to calls to styleHint() where appropriate.
Task-number: QTBUG-2501
Pick-to: 6.9 6.8
Change-Id: I62aa251f7dd9d78178ea8aefc1e2882d3ac040be
Reviewed-by: Volker Hilsheimer <[email protected]>
Diffstat (limited to 'src/widgets/kernel')
| -rw-r--r-- | src/widgets/kernel/qwidget_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/kernel/qwidget_p.h b/src/widgets/kernel/qwidget_p.h index 24d7c7ee16f..09b520a5746 100644 --- a/src/widgets/kernel/qwidget_p.h +++ b/src/widgets/kernel/qwidget_p.h @@ -565,7 +565,7 @@ public: Q_Q(QWidget); if (qApp->autoSipEnabled()) { QStyle::RequestSoftwareInputPanel behavior = QStyle::RequestSoftwareInputPanel( - q->style()->styleHint(QStyle::SH_RequestSoftwareInputPanel)); + q->style()->styleHint(QStyle::SH_RequestSoftwareInputPanel, nullptr, q)); if (!clickCausedFocus || behavior == QStyle::RSIP_OnMouseClick) { QGuiApplication::inputMethod()->show(); } |
