mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 14:40:24 +02:00
Qt: getSysColorBrush(), we must use copy of brush, fixed sigabrt
git-svn-id: trunk@25135 -
This commit is contained in:
parent
1ad1d06743
commit
e76087acbe
@ -2919,7 +2919,7 @@ function TQtWidgetSet.GetSysColorBrush(nIndex: Integer): HBrush;
|
||||
QApplication_palette(Handle, ClassName);
|
||||
|
||||
Result := HBrush(TQtBrush.Create(False));
|
||||
TQtBrush(Result).Widget := QPalette_brush(Handle, Group, Role);
|
||||
TQtBrush(Result).Widget := QBrush_create(QPalette_brush(Handle, Group, Role));
|
||||
TQtBrush(Result).FShared := True;
|
||||
|
||||
QPalette_destroy(Handle);
|
||||
|
Loading…
Reference in New Issue
Block a user