mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 02:59:17 +02:00
Qt: use QPixmap instead of QImage for QBrush constructor. issue #26464
git-svn-id: trunk@45818 -
This commit is contained in:
parent
600fc1036c
commit
cc5b5002df
@ -1386,7 +1386,8 @@ begin
|
|||||||
AMask := QBitmap_create();
|
AMask := QBitmap_create();
|
||||||
QPixmap_mask(APixmap, AMask);
|
QPixmap_mask(APixmap, AMask);
|
||||||
QWidget_setMask(FDragImageList, 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);
|
APalette := QWidget_palette(FDragImageList);
|
||||||
QPalette_setBrush(APalette, QPaletteWindow, ABrush);
|
QPalette_setBrush(APalette, QPaletteWindow, ABrush);
|
||||||
QBrush_destroy(ABrush);
|
QBrush_destroy(ABrush);
|
||||||
|
Loading…
Reference in New Issue
Block a user