Qt: fixed TQtHintWindow.setVisible() for non THintWindow classtypes. fixes #16551

git-svn-id: trunk@25713 -
This commit is contained in:
zeljko 2010-05-27 21:04:44 +00:00
parent 885dfcc950
commit c350840ac0

View File

@ -11365,7 +11365,8 @@ var
ScreenNumber: integer; ScreenNumber: integer;
W,H: integer; W,H: integer;
begin begin
if AVisible then // must use ClassType comparision here since qt is buggy about hints.#16551
if AVisible and (LCLObject.ClassType = THintWindow) then
begin begin
R := getGeometry; R := getGeometry;
W := R.Right - R.Left; W := R.Right - R.Left;