zeljko
638f1c3e07
Qt: QtThemes - added DrawText(), teach treeview to draw items text, added DTFlagsToQtFlags() for reuse
...
git-svn-id: trunk@24890 -
2010-04-24 18:28:29 +00:00
zeljko
9a52809123
Qt: small optimisation in SetScrollInfo()
...
git-svn-id: trunk@24747 -
2010-04-20 17:25:41 +00:00
zeljko
cba1730e76
Qt: fixed problem with setScrollInfo(), use ScrollBar.BeginUpdate() & ScrollBar.EndUpdate() only when other params aren't setted up
...
(range,pagestep).Completely fixes #16255
git-svn-id: trunk@24746 -
2010-04-20 17:08:50 +00:00
zeljko
de4b9201df
Qt: implemented TQtWidgetSet.ScrollWindowEx()
...
git-svn-id: trunk@24733 -
2010-04-20 11:49:30 +00:00
zeljko
832a29abc0
Qt: fixed bug in SelectClipRgn(), we cannot translate region when painter clipping isn't enabled.
...
git-svn-id: trunk@24520 -
2010-04-08 17:19:55 +00:00
paul
82492703f2
lcl: correct declaration of TRIVERTEX, add TTriVertex, TGradientRect types, fix Qt and Gtk versions of GradientFill
...
git-svn-id: trunk@24458 -
2010-04-06 07:10:10 +00:00
zeljko
88eea5b789
Qt: use cheaper TFPList instead of TList for SavedDCList.
...
git-svn-id: trunk@24367 -
2010-04-02 09:30:53 +00:00
zeljko
be3e5448c6
gtk,gtk2,qt: fixed IsWindow() to check for all handles, not windows (forms) only.
...
git-svn-id: trunk@24288 -
2010-03-29 14:50:37 +00:00
zeljko
caf4b2dd3f
LCL: added IsWindow(HWND), implemeted IsWindow() for qt, gtk and gtk2.
...
git-svn-id: trunk@24283 -
2010-03-29 12:42:58 +00:00
paul
518fc97931
qt: fix SelectClipRgn which is uses device coordinates and Qt uses logical
...
git-svn-id: trunk@24166 -
2010-03-22 08:23:33 +00:00
zeljko
63dec4e6f8
Qt: implemented qtwinapi SetWindowPos()
...
git-svn-id: trunk@24114 -
2010-03-20 16:33:18 +00:00
zeljko
f8b2fa9e8f
Qt: updated qt bindings to version 2.1, library name is changed in this bindings version.
...
git-svn-id: trunk@23858 -
2010-03-07 10:20:29 +00:00
paul
d6ffb794fb
lcl: further work on TWinControl.ParentWindow:
...
- implement LCLIntf.SetParent for win32, wince and qt
- implement TWinControl.SetParentWindow
git-svn-id: trunk@23846 -
2010-03-06 19:40:29 +00:00
paul
3f076b14b9
lcl: implement TControlScrollBar.Tracking for win32, qt and gtk2 (issue #0007981 )
...
git-svn-id: trunk@23596 -
2010-01-29 17:32:40 +00:00
marc
eae138c2f6
* winapi: added GetDoubleClickTime, RedrawWindow, SubtractRect as part of lclextentions integration
...
git-svn-id: trunk@23550 -
2010-01-24 18:06:08 +00:00
zeljko
1039496739
Qt: replaced obsoleted class QMatrix with QTransform.
...
git-svn-id: trunk@23523 -
2010-01-21 17:08:53 +00:00
zeljko
a789d15c12
Qt: optimized TQtRegion.getClipRegion(), fixed bug inside SelectClipRgn() for UNIX ifdef - setting QtNoClip should be different only for QPaintEngineX11, not for others (like using QPaintEngineRaster on linux).
...
git-svn-id: trunk@23522 -
2010-01-21 15:59:50 +00:00
zeljko
30bad26a1b
Qt: fixed TQtWidgetSet.ExtSelectClipRgn()
...
git-svn-id: trunk@23489 -
2010-01-19 20:11:10 +00:00
zeljko
bed0cd55e7
Qt: simplified & optimized TQtWidgetSet.SelectClipRgn().
...
git-svn-id: trunk@23488 -
2010-01-19 20:04:04 +00:00
zeljko
a6d1c188e0
Qt: fixed wrong results from WindowFromPoint(). fixes #11298 .
...
git-svn-id: trunk@23416 -
2010-01-10 11:46:24 +00:00
mattias
703970233e
qt intf: clean up
...
git-svn-id: trunk@23368 -
2010-01-04 18:18:31 +00:00
sekelsenmat
5509fc02c5
Implements LCLIntf.CreateRoundRectRgn purely with other LCL routines, using CreateRectRgn, CreateEllipticRgn and CombineRgn. Also fixes a crash in LCL-Qt
...
git-svn-id: trunk@23359 -
2010-01-03 14:49:46 +00:00
paul
45e870d575
win32, gtk, qt: implement viewport affine transformation functions by tk (issue #0014857 )
...
git-svn-id: trunk@23137 -
2009-12-14 05:59:52 +00:00
zeljko
3849c571f9
Qt: fixed crash in TQtWidgetSet.SelectClipRgn() caused by PolyRegion, THtmlPort now doesn't crash anymore.
...
git-svn-id: trunk@23128 -
2009-12-13 20:25:10 +00:00
zeljko
a0ff72d2f1
Qt: added TQtRegion.numRects(), cleanups, formatting
...
git-svn-id: trunk@22995 -
2009-12-06 09:16:45 +00:00
paul
91640c8d2b
gtk, qt: don't raise any exception when hatches brush is requested but hatch is not set - use solid brush as windows do in this case (fixes bug #0015195 )
...
git-svn-id: trunk@22994 -
2009-12-06 06:59:46 +00:00
zeljko
9df47277cd
Qt: avoid crash because of poly region.QPolygon have it's own boundingRect(), and QRegion_isEmpty() cannot be called if created form QPolygon.
...
git-svn-id: trunk@22935 -
2009-12-03 10:22:19 +00:00
zeljko
f25b61f322
Qt: implemented TQtWidgetSet.CreateCompatibleBitmap()
...
git-svn-id: trunk@22925 -
2009-12-02 14:18:42 +00:00
zeljko
06a978b8e3
Qt: fix segfault when creating QRegion with negative width or height.Fixed implementation of GetRgnBox, so it doesn't ask for QRegion_boundingRect() if returned region type is ERROR or NULLREGION.
...
git-svn-id: trunk@22881 -
2009-11-30 20:43:38 +00:00
paul
b89b28de7c
lcl: remove lclintf ComboBoxDropDown, create 2 methods instead in TWSCustomCombobox: one to get DroppedDown status, another to set it. + implementation for all widgetsets except carbon
...
git-svn-id: trunk@22285 -
2009-10-26 10:21:56 +00:00
zeljko
5c093cf06a
Qt: qtwinapi - implemented CreatePatternBrush()
...
git-svn-id: trunk@22227 -
2009-10-19 06:43:58 +00:00
zeljko
1ac7f1cedc
Qt: fix for #14840 , autocalcrange of scrollbar.
...
git-svn-id: trunk@22225 -
2009-10-18 11:47:13 +00:00
zeljko
5bd9a0fbc9
Qt: fixed compilation under win32 R2_XXX is different under windows.
...
git-svn-id: trunk@22101 -
2009-10-12 10:39:22 +00:00
zeljko
3a6bcf71c5
Qt: qtwinapi - initial implementation of RasterOp modes (getRop2() & setRop2())
...
git-svn-id: trunk@22099 -
2009-10-12 09:44:34 +00:00
zeljko
1f47e04ef2
Qt: rework of getCapture(), setCapture() under win32, now we use native windows calls instead of buggy grabMouse() qt proc. Fixes #14779 .
...
git-svn-id: trunk@22096 -
2009-10-11 16:08:58 +00:00
zeljko
49c3771c08
Qt: avoid crash in TQtAbstractSlider.SlotValueChanged() because of update in SetScrollInfo()
...
git-svn-id: trunk@22063 -
2009-10-07 18:47:08 +00:00
zeljko
666fea3cc7
Qt: *ATTENTION* qt45 is default from now on (no more USE_QT_XX defines, qt43 and qt44 are not supported anymore)
...
default bindings version is 1.72.
git-svn-id: trunk@21913 -
2009-09-29 11:24:31 +00:00
paul
00ec699a6e
lcl: rename AttachMenuToWindow to SetMenu for winapi compatibility
...
git-svn-id: trunk@21868 -
2009-09-25 16:09:33 +00:00
zeljko
e62f9ab988
Qt: bugfix -> TQtWidgetSet.GetScrollBarSize() returned wrong results.
...
git-svn-id: trunk@21820 -
2009-09-22 13:53:16 +00:00
paul
72b7bf8ca6
lcl: add IsIconic, IsZommed win32 compatibility functions
...
git-svn-id: trunk@21711 -
2009-09-15 09:34:41 +00:00
zeljko
6e76b2ff8a
Qt: small cleanup
...
git-svn-id: trunk@20930 -
2009-07-23 10:06:38 +00:00
paul
e93e11b149
lcl: add an ability to select cleartype fonts on windows.
...
qt: add support for cleartype font requests
git-svn-id: trunk@20907 -
2009-07-20 14:19:09 +00:00
zeljko
222aa23fd7
Qt: bugfix for wrong reported windowstate when we minimize maximized window.
...
git-svn-id: trunk@20886 -
2009-07-18 10:47:16 +00:00
zeljko
fd84610a3c
Qt: added check for handle parameter inside TQtWidgetSet.getParent(), cleanup.
...
git-svn-id: trunk@20885 -
2009-07-18 09:43:14 +00:00
zeljko
aa154fe07a
Qt: cleanup, use TQtDeviceContext.getClipping insted of QPainter_hasClipping() in qtwinapi.
...
git-svn-id: trunk@20884 -
2009-07-18 09:22:39 +00:00
paul
b8d1a1adec
lcl: formatting
...
git-svn-id: trunk@20179 -
2009-05-25 02:10:05 +00:00
zeljko
99c2e458af
Qt: Added Qt-4.5 bindings - 1.69. Default for win32 is qt-4.5.
...
git-svn-id: trunk@19501 -
2009-04-19 09:33:34 +00:00
paul
a75bb49700
lcl: make sure HMONITOR <> 0 for valid monitors
...
git-svn-id: trunk@19263 -
2009-04-07 04:58:55 +00:00
paul
4db59e3374
qt, carbon: improve EnumDisplayMonitors
...
git-svn-id: trunk@19261 -
2009-04-07 01:42:16 +00:00
paul
a7562d799f
qt: fix TMonitor support (tested on 2 monitor system)
...
git-svn-id: trunk@19247 -
2009-04-06 12:22:48 +00:00
paul
3a19dfff75
lcl: add TMonitor class which represents single screen monitor, add TScreen.MonitorCount, TScreen.Monitors[]
...
win32, qt, gtk2: implement EnumDisplayMonitors, GetMonitorInfo
git-svn-id: trunk@19239 -
2009-04-06 08:14:58 +00:00
paul
624659d92d
qt: implement image flipping in StretchMaskBlt (part of issue #0013059 )
...
git-svn-id: trunk@19214 -
2009-04-04 11:46:32 +00:00
zeljko
ead98ef613
Qt: bugfix for #13191
...
git-svn-id: trunk@19153 -
2009-03-29 14:21:17 +00:00
zeljko
cad3c62030
Qt: bugfix for #13083 .
...
git-svn-id: trunk@19142 -
2009-03-28 18:46:45 +00:00
zeljko
c8f9a5f2ca
Qt: teach GetActiveWindow() to return MDI child if any active.
...
git-svn-id: trunk@18905 -
2009-03-06 18:38:33 +00:00
paul
d95ab32577
gtk, qt: don't draw a Ellipse if Width or Height = 0
...
git-svn-id: trunk@18866 -
2009-03-02 03:44:16 +00:00
paul
821bda50ea
gtk, qt: don't draw a RoundRect if Width or Height = 0
...
git-svn-id: trunk@18865 -
2009-03-02 03:32:11 +00:00
paul
980be4b83e
gtk, qt: don't draw a rectangle if Width or Height = 0 (bug #0010980 )
...
git-svn-id: trunk@18864 -
2009-03-02 03:19:19 +00:00
paul
a723a0f5eb
qt: ellipse should be one pixel less (by hint of JoshyFun)
...
git-svn-id: trunk@18837 -
2009-02-27 16:29:13 +00:00
paul
9f70078354
qt: fix Frame3D drawing:
...
- decrease rect always even if we draw with bvNone (consistent behavior with carbon and gtk)
- improve drawing of Frame3D with bvLowered, bvRaised
git-svn-id: trunk@18802 -
2009-02-23 08:18:54 +00:00
paul
705b320a3a
qt: replace UTF8Encode by UTF16ToUTF8 and UTF8Decode by UTF8ToUTF16
...
git-svn-id: trunk@18731 -
2009-02-17 13:52:40 +00:00
sekelsenmat
80be9b456a
Initial implementation for restricting the visible part of a window to a region, also known as shaped windows. qt-only at the moment.
...
git-svn-id: trunk@18663 -
2009-02-13 14:09:05 +00:00
zeljko
00da47ed08
Qt: bugfix - TQtWidgetSet.Polygon() was wrong on MacOsX.
...
git-svn-id: trunk@18620 -
2009-02-09 17:01:26 +00:00
zeljko
ad8694a8b2
Qt: optimize qtwinapi function WindowFromPoint() - QApplication_widgetAt() is slower than QApplication_topLevelAt().
...
git-svn-id: trunk@18544 -
2009-02-03 19:17:41 +00:00
zeljko
9c9c8716f2
Qt: TQtWinapi.DrawArc() bugfix, use TRect to draw arc because of qt bug (seem so).
...
git-svn-id: trunk@18317 -
2009-01-16 20:53:46 +00:00
zeljko
b35698ba06
Qt: apply clearFocus() to win32 too.
...
git-svn-id: trunk@18287 -
2009-01-14 12:15:29 +00:00
zeljko
a08869b964
Qt: bugfix for #12924 - ide segfault
...
git-svn-id: trunk@18167 -
2009-01-06 13:07:34 +00:00
zeljko
738fb1f569
Qt: reduce getSysColor() overhead by caching colors.
...
git-svn-id: trunk@17700 -
2008-12-06 13:03:05 +00:00
zeljko
9a5c600991
Qt: bugfix GetDCOriginRelativeToWindow() returned wrong origin when form contains mainmenu.
...
git-svn-id: trunk@17683 -
2008-12-04 16:19:14 +00:00
zeljko
d2a489e5c4
Qt: better DrawFocusRect() patch.
...
git-svn-id: trunk@17654 -
2008-12-01 20:30:20 +00:00
zeljko
e23cf3a342
Qt: fixed bug inside SelectClipRgn(), reproducable on Mac & Linux only (now FastCube works fine ;) ).
...
git-svn-id: trunk@17653 -
2008-12-01 19:14:24 +00:00
paul
893a5a4867
qt: don't draw DrawEdge for empty rects
...
git-svn-id: trunk@17651 -
2008-12-01 16:58:34 +00:00
paul
cbdd72b1b2
qt: fix retrieving of few menu system colors
...
git-svn-id: trunk@17650 -
2008-12-01 15:54:32 +00:00
zeljko
5411abe0a1
Qt: fixed DrawFocusRect().
...
git-svn-id: trunk@17649 -
2008-12-01 15:43:42 +00:00
paul
3c5d2f3da3
qt: retrieve more correct titlebar colors. use direct windows call under qt-windows
...
git-svn-id: trunk@17648 -
2008-12-01 15:31:30 +00:00
zeljko
befdca0dbb
Qt: drawEdge(), removed unecesarry color conversions.
...
git-svn-id: trunk@17647 -
2008-12-01 15:15:01 +00:00
paul
1e9b89230d
qt: remove last pixel on line draw if pen is cosmetic (to mimic windows)
...
git-svn-id: trunk@17646 -
2008-12-01 15:03:36 +00:00
paul
eda677114d
qt: fix few issues with DrawEdge
...
git-svn-id: trunk@17645 -
2008-12-01 14:23:42 +00:00
paul
cda2f61ad0
qt: fix DrawEdge colors
...
git-svn-id: trunk@17644 -
2008-12-01 13:35:25 +00:00
zeljko
f861906cc1
Qt: implemented GetDCOriginRelativeToWindow()
...
git-svn-id: trunk@17623 -
2008-11-28 15:35:35 +00:00
zeljko
87d2d92f67
Qt: fixed few bugs inside getTextMetrics()
...
git-svn-id: trunk@17509 -
2008-11-22 11:17:34 +00:00
paul
ffa494672e
lcl: remove CLX colors. They are nowhere defined, nowhere used and nobody wants to support them for years
...
git-svn-id: trunk@17458 -
2008-11-20 01:53:23 +00:00
zeljko
419086f5a8
Qt: new TQtTimer signal handler, remove posted events before destroy TQtObject, fixed result of TQtWidgetset.DeleteObject()
...
git-svn-id: trunk@17386 -
2008-11-14 09:36:00 +00:00
paul
04ac30b1eb
license: fix asterisk position in the license block
...
git-svn-id: trunk@17372 -
2008-11-13 15:06:20 +00:00
paul
25e9426c10
lcl: MaxLength redo:
...
- MaxLength = 0 => no limit, MaxLength > 0 => limit. Default = 0 for memo, combo and edit
- fix gtk, gtk2 code where MaxLength = -1 was used for unlimited length in Memo (why? combo and edit used 0)
- fix qt combobox SetLength (was occasional forgotten?)
- cleanup
git-svn-id: trunk@17365 -
2008-11-13 06:42:37 +00:00
zeljko
ee19b1a320
Qt: added winapi function PtInRegion(), added containsPoint(), containsRect() to TQtRegion.
...
git-svn-id: trunk@17357 -
2008-11-12 16:18:14 +00:00
zeljko
9a0a1e6215
Qt: clearFocus only on IQtEdit interface.
...
git-svn-id: trunk@17278 -
2008-11-08 14:37:03 +00:00
paul
227502e9d1
qt: implement custom pen dashes for qt4.4
...
git-svn-id: trunk@17260 -
2008-11-07 02:15:43 +00:00
zeljko
df87cd1869
Qt: fix wrong result position inside setWindowOrgEx()
...
git-svn-id: trunk@17216 -
2008-11-04 12:11:21 +00:00
zeljko
5fcf051437
Qt: update to qt-4.4.X, use define USE_QT_44 for qt-4.4.X.
...
git-svn-id: trunk@17196 -
2008-11-03 13:13:33 +00:00
tombo
c5e876817b
LCL:
...
* SetScrollInfo - return new position
* SetScrollPos - return previous position
git-svn-id: trunk@17173 -
2008-11-01 17:24:46 +00:00
paul
f0b96b997f
lcl: declare TExtLogPen
...
qt: return ExtLogPen in GetObject if pen was created by ExtCreatePen
git-svn-id: trunk@17136 -
2008-10-27 08:40:27 +00:00
paul
3461ad0f49
lcl: start ExtCreatePen function to allow pen creation with different cap style, join style, and pattern
...
qt: start implementation of ExtCreatePen
git-svn-id: trunk@17119 -
2008-10-24 09:29:53 +00:00
tombo
59cdf3550a
LCL qt: implemented TFont.Quality (...anti-aliasing)
...
git-svn-id: trunk@16915 -
2008-10-07 13:06:06 +00:00
paul
05e23ab608
qt: if nil is passed to GetObject return needed Size
...
qt, gtk: forget that GetObject.Result = SizeOf structure
git-svn-id: trunk@16806 -
2008-09-30 05:45:19 +00:00
paul
ab9944c497
Qt:
...
- use cosmetic pens for GetStockObject
- better handling of passed Pen.Width (0 = cosmetic, > 0 = geometric)
- implement GetObject for HPEN
git-svn-id: trunk@16803 -
2008-09-30 04:59:55 +00:00
paul
c6336bf30d
qt: cleanup, remove PS_USERSTYLE from case since it can be only passed in EXTLOGPEN not in LOGPEN
...
git-svn-id: trunk@16802 -
2008-09-30 03:28:08 +00:00
paul
cdbcd54d0e
qt: fix pen position after lineTo (fixes Jesus troubles with grid)
...
git-svn-id: trunk@16716 -
2008-09-25 06:25:02 +00:00
paul
7f06e41a7c
qt:
...
- improve LineTo
- PolyLine must skip last pixel to be delphi/win32 compatible
git-svn-id: trunk@16690 -
2008-09-24 01:44:22 +00:00
paul
09983c4aa0
qt: clCaptionText color must be visible on clActiveCaption bg
...
git-svn-id: trunk@16666 -
2008-09-21 14:01:58 +00:00