From 15dc88089b3dab7cdef0c225e5c3edc6621c3997 Mon Sep 17 00:00:00 2001 From: zeljko Date: Sun, 19 May 2013 13:00:21 +0000 Subject: [PATCH] Qt: fixed LCLIntf.Frame3D. When FillBrush isn't filled then draw shaded box without brush (applies painter brush).issue #24445 git-svn-id: trunk@41291 - --- lcl/interfaces/qt/qtobjects.pas | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lcl/interfaces/qt/qtobjects.pas b/lcl/interfaces/qt/qtobjects.pas index e4520e1644..6ff273f9af 100644 --- a/lcl/interfaces/qt/qtobjects.pas +++ b/lcl/interfaces/qt/qtobjects.pas @@ -2534,12 +2534,8 @@ begin if lineWidth > 1 then q_DrawWinPanel(Widget, x, y, w, h, Palette, Sunken, FillBrush) else - begin - if FillBrush = nil then - q_DrawShadePanel(Widget, x, y, w, h, Palette, Sunken, 1, QPalette_background(Palette)) - else - q_DrawShadePanel(Widget, x, y, w, h, Palette, Sunken, 1, FillBrush); - end; + q_DrawShadePanel(Widget, x, y, w, h, Palette, Sunken, 1, FillBrush); + if AppPalette <> nil then begin QPalette_destroy(AppPalette);