Provide window palette for quickcontrol application window

The quickcontrols window use default palette to determine window frame
color and this is different from quick theme palette which causes
incorrect window frame color. This patch allows quickcontrol to provides
quicktheme palette to determine frame color.

Fixes: QTBUG-111491
Pick-to: 6.5
Change-Id: I672d8214ebe5d8399086055c26e5169b15b14397
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Santhosh Kumar 2023-02-26 09:30:10 +01:00
parent 12e4871465
commit 489b070b6e
1 changed files with 1 additions and 0 deletions

View File

@ -112,6 +112,7 @@ public:
void itemVisibilityChanged(QQuickItem *item) override;
void itemImplicitWidthChanged(QQuickItem *item) override;
void itemImplicitHeightChanged(QQuickItem *item) override;
QPalette windowPalette() const override { return defaultPalette(); }
void updateFont(const QFont &f);
inline void setFont_helper(const QFont &f) {