mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 10:59:29 +02:00
Qt: QComboBox custom paint, reduce rect size by 1.
git-svn-id: trunk@17530 -
This commit is contained in:
parent
04ae06b2af
commit
7e433b19e6
@ -6126,6 +6126,10 @@ begin
|
||||
TQtDeviceContext(Msg.DC).restore;
|
||||
end;
|
||||
|
||||
inc(R.Top);
|
||||
dec(R.Bottom);
|
||||
QPainter_setClipRect(TQTDeviceContext(Msg.DC).Widget, @R);
|
||||
|
||||
DrawStruct.ItemID := TCustomComboBox(LCLObject).Items.IndexOf(TCustomComboBox(LCLObject).Text);
|
||||
DrawStruct.Area := R;
|
||||
DrawStruct.DC := Msg.DC;
|
||||
|
Loading…
Reference in New Issue
Block a user