From 42a885a9384017d68c0cc794ef421671b21ac7ea Mon Sep 17 00:00:00 2001 From: Fabian Vogt Date: Fri, 27 Nov 2020 22:46:05 +0100 Subject: [PATCH] Fix drawing of styled frames for QQuickItems There is a special case for comboboxes when drawing a styled frame, but for some reason it didn't actually check whether the QQuickItem is a combobox, there was only a comment... This adds the check, which means that QQuickItems get a proper frame now instead of a combobox popup. --- kstyle/breezestyle.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kstyle/breezestyle.cpp b/kstyle/breezestyle.cpp index e53727c6..a4ff518a 100644 --- a/kstyle/breezestyle.cpp +++ b/kstyle/breezestyle.cpp @@ -5424,7 +5424,8 @@ namespace Breeze case QFrame::StyledPanel: { - if( isQtQuickControl( option, widget ) ) + if( isQtQuickControl( option, widget ) + && option->styleObject->property( "elementType" ).toString() == QLatin1String( "combobox" ) ) { // ComboBox popup frame