Qt: QComboBox custom paint, reduce rect size by 1.

git-svn-id: trunk@17530 -
This commit is contained in:
zeljko 2008-11-22 21:27:46 +00:00
parent 04ae06b2af
commit 7e433b19e6

View File

@ -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;