Qt: fixed problem with TCustomPanel.Color, when panel is painted via Frame3d.Problem raised with r41291 while fixing #24445


git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@41475 4005530d-fff6-0310-9dd1-cebe43e6787f