mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 04:18:48 +02:00
Qt5: implemented SetBitmapScaleRatio, issue #41299
This commit is contained in:
parent
1aed29d27c
commit
59f26575d6
@ -868,6 +868,12 @@ begin
|
||||
// todo
|
||||
end;
|
||||
|
||||
procedure TQtWidgetSet.SetBitmapScaleRatio(aBMP: HBITMAP; const AScaleRatio: double);
|
||||
begin
|
||||
if IsValidGDIObject(aBmp) then
|
||||
QImage_setDevicePixelRatio(TQtImage(aBmp).Handle, AScaleRatio);
|
||||
end;
|
||||
|
||||
procedure TQtWidgetSet.SetEventHandlerFlags(AHandler: PEventHandler;
|
||||
NewFlags: dword);
|
||||
var
|
||||
|
@ -73,6 +73,7 @@ procedure RemovePipeEventHandler(var AHandler: PPipeEventHandler); override;
|
||||
procedure RemoveProcessEventHandler(var AHandler: PProcessEventHandler); override;
|
||||
|
||||
procedure SetEventHandlerFlags(AHandler: PEventHandler; NewFlags: dword); override;
|
||||
procedure SetBitmapScaleRatio(aBmp: HBITMAP; const AScaleRatio: double); override;
|
||||
function SetComboMinDropDownSize(Handle: HWND; MinItemsWidth, MinItemsHeight, MinItemCount: integer): boolean; override;
|
||||
procedure SetRubberBandRect(const ARubberBand: HWND; const ARect: TRect); override;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user