diff options
| author | Mitch Curtis <mitch.curtis@qt.io> | 2023-08-22 18:17:50 +0800 |
|---|---|---|
| committer | Mitch Curtis <mitch.curtis@qt.io> | 2023-08-28 15:57:06 +0800 |
| commit | 950cd5888e3098bc4c04fc0af4beabe265c78a6e (patch) | |
| tree | aab5b20bdc011b7f32a2c5b50b2eaf83465aa6ae /src/quickcontrols/doc/snippets | |
| parent | e73f7a45c3820e63c2fe0aff354b1b70fd577cd6 (diff) | |
Fix child popup palette inheritance
Qt Quick Controls Popups are always top-level popups, even if declared
as a child of another popup. Therefore, e.g. a font set on a parent
popup should not propagate to a child popup. The same behavior applies
to palettes, but we regressed with this in
1875ad7f92cad270cc5857d71096a4b46c27c562 and/or
31f5c21ddb571d744efd1885c0687816b3a12225.
This patch fixes the regression by returning the window's palette in
QQuickPaletteProviderPrivateBase<I, Impl>::parentPalette() if I is
a QQuickPopup.
Fixes: QTBUG-115707
Pick-to: 6.5 6.6
Change-Id: Ib89852787dd45e3edc9e846b6c182340c052f0fd
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/quickcontrols/doc/snippets')
0 files changed, 0 insertions, 0 deletions
