Qt: use QPixmap instead of QImage for QBrush constructor. issue #26464

git-svn-id: trunk@45818 -
This commit is contained in:
zeljko 2014-07-09 11:21:51 +00:00
parent 600fc1036c
commit cc5b5002df

View File

@ -1386,7 +1386,8 @@ begin
AMask := QBitmap_create();
QPixmap_mask(APixmap, AMask);
QWidget_setMask(FDragImageList, AMask);
ABrush := QBrush_create(AImage);
// issue #26464, use QPixmap instead of QImage in QBrush constructor.
ABrush := QBrush_create(APixmap);
APalette := QWidget_palette(FDragImageList);
QPalette_setBrush(APalette, QPaletteWindow, ABrush);
QBrush_destroy(ABrush);