QT TabIndexAtClientPos / TabRect
Original Reporter info from Mantis: Martin @martin_frb
-
Reporter name: Martin Friebe
Original Reporter info from Mantis: Martin @martin_frb
- Reporter name: Martin Friebe
Description:
TNotebook.TabIndexAtClientPos only works for tabs on top, or tabs at the left side.
It always returns -1, for tabs at the bottom, or tabs at the right side.
----
TNotebook.TabRect(ATabIndex) seems to return a wrong client rect.
TabIndexAtClientPos takes a negative y coordinate for tabs on top (negative x for tabs on left), but the returned Rect has an Y (or X) coord starting at 0.
It should have a negative coordinate.
(It does at least on w32 widgetset, and gtk2 widgetset)
It also needs to be checked, what coords are expected by TNotebook.InvalidateRect ?
You should be able to pass the result of TabRect to InvalidateRect.
The current none negative y offset could be the reason SourceEditor is not drawing the drag/drop indicators under QT)
Mantis conversion info:
- Mantis ID: 16461
- Version: 0.9.29 (SVN)
- Fixed in version: 0.9.30
- Fixed in revision: 25354 (#bc8b2d3e)
- Target version: 0.9.29 (SVN)