mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 20:19:16 +02:00
Cocoa/ListView: Icon settings Improved
This commit is contained in:
parent
26ee30a703
commit
0abdb4de1e
@ -619,7 +619,7 @@ begin
|
|||||||
itemView.item:= self;
|
itemView.item:= self;
|
||||||
|
|
||||||
imageControl:= NSImageView.alloc.initWithFrame( NSZeroRect );
|
imageControl:= NSImageView.alloc.initWithFrame( NSZeroRect );
|
||||||
imageControl.cell.setImageScaling( NSImageScaleProportionallyUpOrDown );
|
imageControl.setImageScaling( NSImageScaleProportionallyUpOrDown );
|
||||||
self.setImageView( imageControl );
|
self.setImageView( imageControl );
|
||||||
itemView.addSubview( imageControl );
|
itemView.addSubview( imageControl );
|
||||||
|
|
||||||
@ -647,6 +647,7 @@ begin
|
|||||||
_checkBox:= nil;
|
_checkBox:= nil;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
self.imageView.setImage( nil );
|
||||||
self.view.removeFromSuperview;
|
self.view.removeFromSuperview;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -975,7 +975,7 @@ begin
|
|||||||
Exit;
|
Exit;
|
||||||
|
|
||||||
imageControl:= NSImageView.alloc.initWithFrame( NSZeroRect );
|
imageControl:= NSImageView.alloc.initWithFrame( NSZeroRect );
|
||||||
imageControl.cell.setImageScaling( NSImageScaleProportionallyUpOrDown );
|
imageControl.setImageScaling( NSImageScaleProportionallyUpOrDown );
|
||||||
self.setImageView( imageControl );
|
self.setImageView( imageControl );
|
||||||
self.addSubview( imageControl );
|
self.addSubview( imageControl );
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user