Commit Graph

362 Commits

Author SHA1 Message Date
zeljko
cd8a98a15d Qt: fixed TQtWidgetSet.DrawText() when ARect param is out of bounds of clipRect, also added QT_DRAWTEXT_MAP_TO_CLIPRECT define if someone want's that drawText respects DT_WORDBREAK flag if included. fixes #17678
git-svn-id: trunk@27779 -
2010-10-21 07:27:47 +00:00
zeljko
084fed8f6c Qt: fixed bug with QPainter translation in TQtWidgetSet.GetClipBox(). fixes #17670
git-svn-id: trunk@27769 -
2010-10-20 06:38:47 +00:00
zeljko
a072a15271 Qt: fixed crash inside TQtWidgetSet.SetFocus when parent form isn't visible yet, but trying to activate.
git-svn-id: trunk@27653 -
2010-10-11 12:13:33 +00:00
zeljko
ae23055240 Qt: fixed TQtWidgetSet.SetFocus(), it should activate parent form if we call setfocus for control which is on inactive form.
git-svn-id: trunk@27614 -
2010-10-08 07:36:15 +00:00
zeljko
376cb466ca Qt: fixed result of TQtWidgetSet.SetForegroundWindow()
git-svn-id: trunk@27599 -
2010-10-07 09:38:55 +00:00
zeljko
71bf9bda93 Qt: fixed result of TQtWidgetSet.EnableWindow()
git-svn-id: trunk@27548 -
2010-10-02 16:41:32 +00:00
zeljko
13bd9d7378 Qt,Gtk2: corrected return of Size.cx, simplified and fixed code in qt implementation about Size.cx returned values.
git-svn-id: trunk@27416 -
2010-09-20 06:54:25 +00:00
zeljko
a67a2dce83 Qt: implemented TQtWidgetSet.GetTextExtentExPoint()
git-svn-id: trunk@27398 -
2010-09-17 17:33:09 +00:00
zeljko
bfc3350f00 Qt: implemented GetBkColor(). part of #14792
git-svn-id: trunk@27390 -
2010-09-17 06:33:19 +00:00
zeljko
6f8a1be510 Qt: fixed result of TQtWidgetSet.SetFocus(), in case when handle param is invalid.
git-svn-id: trunk@27379 -
2010-09-16 06:27:30 +00:00
zeljko
fe09cbf97c Qt: cleanup unused local variables.
git-svn-id: trunk@27343 -
2010-09-13 06:18:35 +00:00
zeljko
ed177fd3aa Qt: improved TQtWidgetSet.WindowFromPoint() returning from cache.
git-svn-id: trunk@27338 -
2010-09-12 17:50:15 +00:00
zeljko
c7feb3efb5 Qt: added helper functions for WindowFromPoint() cache.
git-svn-id: trunk@27310 -
2010-09-11 16:44:11 +00:00
zeljko
00d38fd701 Qt: added caching of TQtWidgetSet.WindowFromPoint() to avoid unnecesarry calls of very slow QApplication_widgetAt() function. Now TQtWidgetSet.WindowFromPoint() returns same as Win32 WindowFromPoint(), especially in case if mouse isn't moved but widget under it has been disabled or hidden, or new widget is shown above it.
git-svn-id: trunk@27309 -
2010-09-11 16:11:48 +00:00
mattias
369aa3055c fixed typo dont
git-svn-id: trunk@27304 -
2010-09-11 14:05:21 +00:00
zeljko
cf350c8d33 Qt: fixed TQtWidgetSet.WindowFromPoint() when TQtViewport returned instead of TQtCustomControl, also result won't be returned anymore if widget is disabled (like MSDN says).
git-svn-id: trunk@27287 -
2010-09-09 20:41:04 +00:00
zeljko
bfa8ee5124 Qt: fixed wrong return value of TQtWidgetSet.GetWindowRect(), value should be in screen coordinates.
git-svn-id: trunk@27279 -
2010-09-07 18:56:07 +00:00
zeljko
bb84c35d61 Qt: TQtWidgetSet.DrawText() implemented usage of DT_MODIFYSTRING and DT_END_ELLIPSIS.
git-svn-id: trunk@27264 -
2010-09-04 11:27:53 +00:00
zeljko
42a3b3918b Qt: fixed TQtWidgetSet.drawText() according to msdn docs.fixed #17329
git-svn-id: trunk@27249 -
2010-09-02 08:34:33 +00:00
zeljko
7456e34bba Qt: workaround for Qt bug where QPainter refuses to setFont() when used by CreateFromPainter(). fixes #16646
git-svn-id: trunk@27232 -
2010-08-29 15:33:24 +00:00
zeljko
2148f60765 Qt: fix ScrollWindowEx(): scroll child control only when SW_SCROLLCHILDREN flag exists. fixes #17175
git-svn-id: trunk@27209 -
2010-08-27 05:37:26 +00:00
zeljko
add468dac9 Qt: use COLOR_GRAYTEXT from QPaletteDisabled. fixes #16994
git-svn-id: trunk@26759 -
2010-07-21 05:46:32 +00:00
zeljko
cbc5a306cd Qt: cleanup
git-svn-id: trunk@26625 -
2010-07-13 14:40:29 +00:00
zeljko
df68a7ddf6 Qt: big performance boost in StretchMaskBlt(), now mask is stretched (if needed) to image size.Removed destination width & height stretching from StretchMaskBlt(), since it is done internally in TQtDeviceContext.DrawImage()
git-svn-id: trunk@26607 -
2010-07-12 11:14:37 +00:00
zeljko
5c853d1f08 Qt: StretchMaskBlt(): fixed bug in statement for stretching dst width & height. fixes #16910
git-svn-id: trunk@26603 -
2010-07-11 20:03:57 +00:00
zeljko
e1c4c31217 Qt: fixed bug in TQtWidgetSet.ScrollWindowEx().Wrong argument passed to TQtWidget.scroll()
git-svn-id: trunk@26509 -
2010-07-07 16:31:12 +00:00
blikblum
3d4516b088 lcl: implement GetCurrentObject for Gtk, Gtk2, Qt, Carbon and WinCe. Part of 14792
git-svn-id: trunk@26265 -
2010-06-22 20:36:58 +00:00
zeljko
48e9743c3e Qt: fixed GetWindowRect() wrong result.Do not mapToGlobal() if parent doesn't have LCLObject.fixes #16717
git-svn-id: trunk@26188 -
2010-06-19 13:33:34 +00:00
mattias
62d2ab1ab0 qt intf: fixed GetWindowRect right and bottom
git-svn-id: trunk@26108 -
2010-06-14 11:16:28 +00:00
zeljko
b2c3ca1536 Qt: fixed returning rect from TQtWidgetSet.GetClipBox, region must be translated first.
git-svn-id: trunk@25976 -
2010-06-08 15:41:28 +00:00
zeljko
a19f9a2883 Qt: added todo for TQtWidgetSet.MessageBox
git-svn-id: trunk@25701 -
2010-05-27 16:13:57 +00:00
zeljko
b35fff5bcc Qt: improved mousewheel scroll by Mattias. fixes #16560
git-svn-id: trunk@25687 -
2010-05-27 12:01:09 +00:00
zeljko
d71e168a3e Qt: cleanup
git-svn-id: trunk@25608 -
2010-05-24 15:03:22 +00:00
zeljko
fb35fbd33b Qt: implemented TQtWidgetSet.GetCmdLineParamDescForInterface. Fixes #16536
git-svn-id: trunk@25582 -
2010-05-22 15:05:08 +00:00
zeljko
143400e6ce Qt: use LCL's RoundRect() instead of qt's, call QPainter_roundedRect() instead QPainter_roundRect() since roundedRect() is what LCL expects.
git-svn-id: trunk@25571 -
2010-05-21 20:32:17 +00:00
zeljko
8aeeea4e28 Qt: move offset recalculation before really drawing text, exclude alignments except DT_TOP or DT_LEFT.
git-svn-id: trunk@25568 -
2010-05-21 18:15:45 +00:00
zeljko
db7287fd2a Qt: fix asserts from qtlib.
git-svn-id: trunk@25566 -
2010-05-21 16:16:56 +00:00
zeljko
52894be663 Qt: properly draw text if font.orientation <> 0.Now TLabel looks nice with Font.Orientation <> 0.
git-svn-id: trunk@25565 -
2010-05-21 14:48:59 +00:00
zeljko
276aef1701 Qt: fixed Qt forms reparenting, recreateWnd() when changing FormStyle or BorderStyle when form is parented to another control,
otherwise it looses it's parent.

git-svn-id: trunk@25364 -
2010-05-13 14:25:14 +00:00
zeljko
7bb3ea0c82 Qt: fixed scrolling with mouse wheel, fixes #16460
git-svn-id: trunk@25349 -
2010-05-13 06:48:18 +00:00
zeljko
4c4f7a342f Qt: removed unneeded "fix" in SelectClipRgn(), ExtSelectClipRgn() was buggy and it's fixed in r25180 #cce49136d6
git-svn-id: trunk@25315 -
2010-05-11 10:29:17 +00:00
zeljko
e2a8f33ce7 Qt: remove unneded clearFocus from SetFocus() after focus changes in LCL.
git-svn-id: trunk@25287 -
2010-05-10 06:50:31 +00:00
paul
6b1168a249 gtk: implement LPtoDP, DPtoLP
git-svn-id: trunk@25237 -
2010-05-07 07:21:00 +00:00
paul
256161bfc7 lcl: add LPtoDP - symmetrical to DPtoLP winapi compatibility method
win32: implement LPtoDP, DPtoLP
qt: implement LPtoDP

git-svn-id: trunk@25236 -
2010-05-07 07:08:43 +00:00
zeljko
cce49136d6 Qt: proper world transform of region in ExtSelectClipRgn()
git-svn-id: trunk@25180 -
2010-05-04 12:23:49 +00:00
zeljko
8d37468fe5 Qt: invalidate only handles of syscolor brushes when style is dynamically changed, otherwise we have segfault, because brush can be in saveddc data.
git-svn-id: trunk@25136 -
2010-05-02 15:25:31 +00:00
zeljko
e76087acbe Qt: getSysColorBrush(), we must use copy of brush, fixed sigabrt
git-svn-id: trunk@25135 -
2010-05-02 14:41:02 +00:00
paul
cab0b73317 qt: implement GetSysColorBrush through qt brushes instead of solid colors, simplify GetSysColor
git-svn-id: trunk@25132 -
2010-05-02 11:52:06 +00:00
paul
ecccf982ed qt: initial implementation for GetSysColorBrush + various cleanup and bug fixes
git-svn-id: trunk@25131 -
2010-05-02 11:26:52 +00:00
zeljko
9cfcda57d1 Qt: fixed wrong implementation of TQtWidgetSet.RectVisible(), now it works few times faster, added TQtScrollBar.setFocusPolicy, TQtRegion.intersects().
git-svn-id: trunk@25091 -
2010-05-01 10:59:43 +00:00