Qt: fix for #15192 also tab moving now works in ide source editor.

git-svn-id: trunk@22809 -
This commit is contained in:
zeljko 2009-11-26 20:13:16 +00:00
parent 7d0ed7d072
commit 2dcd8e4b2b

View File

@ -5954,7 +5954,13 @@ function TQtTabWidget.tabAt(APoint: TPoint): Integer;
var
AQtPoint: TQtPoint;
begin
AQtPoint := QtPoint(APoint.x, APoint.y);
if ((APoint.Y < 0) or (APoint.X < 0))
and QWidget_underMouse(TabBar.Widget) then
begin
QCursor_pos(@AQtPoint);
QWidget_mapFromGlobal(TabBar.Widget, @AQtPoint, @AQtPoint);
end else
AQtPoint := QtPoint(APoint.x, APoint.y);
Result := QTabBar_tabAt(QTabBarH(TabBar.Widget), @AQtPoint);
end;