mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 11:30:28 +02:00
Qt: fixed bug where classes inherited from THintWindow can flick, and never reach visible state.
git-svn-id: trunk@33043 -
This commit is contained in:
parent
c494088e5e
commit
e767e18cee
@ -13272,13 +13272,14 @@ var
|
||||
W,H: integer;
|
||||
begin
|
||||
// must use ClassType comparision here since qt is buggy about hints.#16551
|
||||
if AVisible and (LCLObject.ClassType = THintWindow) then
|
||||
if AVisible and
|
||||
((LCLObject.ClassType = THintWindow) or
|
||||
(LCLObject.InheritsFrom(THintWindow))) then
|
||||
begin
|
||||
R := getGeometry;
|
||||
W := R.Right - R.Left;
|
||||
H := R.Bottom - R.Top;
|
||||
LCLIntf.GetCursorPos(P);
|
||||
|
||||
{we must make proper positioning of our hint if
|
||||
hint geometry intersects current cursor pos - issue #15882}
|
||||
if PtInRect(R, P) then
|
||||
@ -13314,7 +13315,6 @@ begin
|
||||
P.Y := D.Bottom - D.Top - H;
|
||||
|
||||
Pt := getPos;
|
||||
|
||||
if (P.X >= Pt.X) and (P.X <= Pt.X + W) then
|
||||
move(P.X + ToolTipOffset, P.Y)
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user