Commit c55e1a9c authored by Željan Rikalo's avatar Željan Rikalo 🏊🏼
Browse files

Qt: fixed returning empty rect for TListView.ItemDisplayRect when using drIcon. issue #27659

git-svn-id: trunk@48303 -
parent e3541a5e
......@@ -1602,7 +1602,7 @@ begin
try
QListWidgetItem_icon(LWI, AIcon);
if QIcon_isNull(AIcon) then
IconRect := Rect(Result.Left, Result.Top, Result.Left, Result.Top)
IconRect := Rect(Result.Left, Result.Top, Result.Right, Result.Bottom)
else
begin
Size.cx := 0;
......@@ -1664,7 +1664,7 @@ begin
try
QTreeWidgetItem_icon(TWI, AIcon, ASubItem);
if QIcon_isNull(AIcon) then
IconRect := Rect(Result.Left, Result.Top, Result.Left, Result.Top)
IconRect := Rect(Result.Left, Result.Top, Result.Right, Result.Bottom)
else
begin
Size.cx := 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment