mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 09:19:22 +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;
|
TQtDeviceContext(Msg.DC).restore;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
inc(R.Top);
|
||||||
|
dec(R.Bottom);
|
||||||
|
QPainter_setClipRect(TQTDeviceContext(Msg.DC).Widget, @R);
|
||||||
|
|
||||||
DrawStruct.ItemID := TCustomComboBox(LCLObject).Items.IndexOf(TCustomComboBox(LCLObject).Text);
|
DrawStruct.ItemID := TCustomComboBox(LCLObject).Items.IndexOf(TCustomComboBox(LCLObject).Text);
|
||||||
DrawStruct.Area := R;
|
DrawStruct.Area := R;
|
||||||
DrawStruct.DC := Msg.DC;
|
DrawStruct.DC := Msg.DC;
|
||||||
|
Loading…
Reference in New Issue
Block a user