summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel
diff options
context:
space:
mode:
authorChristian Ehrlicher <[email protected]>2024-11-21 19:05:45 +0100
committerChristian Ehrlicher <[email protected]>2025-03-02 13:34:58 +0000
commit5b320c146b2d67bb9bec92d647ec7fb5ae6b601d (patch)
tree9a730a9b4f47fb272b37ded20b737d7dcbe59006 /src/widgets/kernel
parentdf97b6b2de6282bd6422f1e531a42475dadc980d (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.h2
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();
}