Commit Graph

122 Commits

Author SHA1 Message Date
zeljko
58ce62d15b Qt: fixed PaintTo when we taking image of form.
git-svn-id: trunk@35604 -
2012-02-27 10:21:14 +00:00
zeljko
7a324ede40 Qt: make TQtImage.FHandle private, introduce Handle readonly property. issue #21235
git-svn-id: trunk@35203 -
2012-02-07 07:38:40 +00:00
zeljko
15e82e2123 Qt: now we keep track of fonts changing and respect ParentFont property.fixes issue #19695
git-svn-id: trunk@33309 -
2011-11-04 18:16:04 +00:00
zeljko
c156e119ce Qt: added property WidgetState:TQtWidgetStates (set of TQtWidgetState) to track when lcl called font or color change (needed because of QEventFontChanged and others)
git-svn-id: trunk@33299 -
2011-11-04 15:31:51 +00:00
zeljko
7a3d27f62c Qt: renamed TQtFont Widget: QFontH to FHandle: QFontH, also TQtFontMetrics Widget: QFontMetricsH to FHandle: QFontMetricsH
git-svn-id: trunk@33289 -
2011-11-04 10:31:30 +00:00
zeljko
da01ce8458 Qt: renamed TQtImage Handle: QImageH to FHandle: QImageH.
git-svn-id: trunk@33287 -
2011-11-04 10:22:59 +00:00
zeljko
649e6241af LCL: TGraphicControl.Update must be public.
Qt: cleanups

git-svn-id: trunk@31503 -
2011-07-02 13:49:54 +00:00
zeljko
7789de2338 Qt: fixed ugly behaviour of QPalette on some widgets issue #19612, also fixed crash with TQtTabWidget while processing key or mouse events and LCLObject handle is destroyed in the meantime.
git-svn-id: trunk@31330 -
2011-06-22 12:16:08 +00:00
zeljko
d1b2bde9aa Qt: cleanups, removed unused units, removed unreachable code
git-svn-id: trunk@30269 -
2011-04-12 06:33:04 +00:00
zeljko
1c92a3ea27 Qt: take into account vertical and horizontal scrollbars position when setting bounds for children of TScrollBox.issue #18993
git-svn-id: trunk@30072 -
2011-03-29 16:25:19 +00:00
juha
f38190794b Formatting: joined lines where only ');' was split to its own line, in procedure defs.
git-svn-id: trunk@29871 -
2011-03-16 16:52:28 +00:00
juha
0928ead547 LCL: Changed function ColorToRGB's return value to TColorRef. Many related changes around the code.
git-svn-id: trunk@29734 -
2011-03-06 12:45:59 +00:00
paul
da4786c70b qt: support clDefault for Font colors
git-svn-id: trunk@28396 -
2010-11-22 06:37:37 +00:00
zeljko
4cc5ab25bf Qt: fixed TQtWSWinControl.SetChildZPosition().Partially fixes #17298
git-svn-id: trunk@27268 -
2010-09-04 17:00:08 +00:00
zeljko
d74087e32a Qt: load TCustomComboBox data and params inside CreateHandle, so avoid qt to set itemindex on it's own. fixes #16727
git-svn-id: trunk@26389 -
2010-07-01 13:46:43 +00:00
zeljko
ef9ab37cc9 Qt: moved ShowHide() to QtWSForms to reduce casts, call QApplication_syncX() on X11 to get better visual performance. fixes #16550
git-svn-id: trunk@25655 -
2010-05-26 08:07:54 +00:00
zeljko
b9d8f1fc2f Qt: added internal HASX11 define.It is used internally in qtlcl instead of IFDEF LINUX since X11 can be on FreeBsd or NetBsd.
git-svn-id: trunk@25456 -
2010-05-16 10:50:38 +00:00
paul
98777bd9db qt: fix setting default color for a widget
git-svn-id: trunk@25430 -
2010-05-15 15:47:47 +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
51c6bb8522 Qt: do not change MDIChild size/move if started maximized, overrided TQtWidget.Activate; in TQtMainWindow because MDIChild should be activated via it's MDIAreaHandle not by QWidget_activateWindow()
git-svn-id: trunk@25313 -
2010-05-11 07:29:19 +00:00
zeljko
591e0fa3a5 Qt: do not maximize form during design time when opening form for first time and windowstate=wsMaximized. Don't call LCL directly when laying out MDIChild form.
git-svn-id: trunk@25304 -
2010-05-10 17:54:56 +00:00
zeljko
c56405fef4 Qt: reinit current palette color if palette really changed.
git-svn-id: trunk@25140 -
2010-05-02 17:17:13 +00:00
zeljko
a5ba77a96e Qt: small optimization - do not send LM_SHOWWINDOW msg when LCL setted up visibility via ShowHide
git-svn-id: trunk@24208 -
2010-03-25 09:30:27 +00:00
zeljko
119ca527f6 Qt: reduce setParent() calls in TQtWSWinControl.AddControl() if parent is already same as new parent.
git-svn-id: trunk@24099 -
2010-03-19 13:38:09 +00:00
zeljko
d2280da4c6 Qt: performance boost in resize() & move() when setted up from LCL.
git-svn-id: trunk@24052 -
2010-03-16 21:23:07 +00:00
zeljko
cef549858e Qt: dragimagelist should respect DoLock and DoUnlock parameters.
git-svn-id: trunk@22192 -
2009-10-15 10:13:06 +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
zeljko
682e03ea72 Qt: fix visibility of titlebar for modal windows under macOSX - qt-4.5
git-svn-id: trunk@19585 -
2009-04-23 07:47:38 +00:00
paul
f02c53c71c merge lcl-smartlink branch:
------------------------------------------------------------------------
r19294 | paul | 2009-04-10 11:17:35 +0800 (Птн, 10 Апр 2009) | 1 line

lcl, win32: start optimizations: imglist (all), controls (all), combtrls (statubar)
------------------------------------------------------------------------
r19305 | martin | 2009-04-10 21:53:27 +0800 (Птн, 10 Апр 2009) | 1 line

Moved "DoneRegisterCheck" to global LCL
------------------------------------------------------------------------
r19306 | martin | 2009-04-10 22:14:57 +0800 (Птн, 10 Апр 2009) | 1 line

Moved "DoneRegisterCheck" to global LCL (more)
------------------------------------------------------------------------
r19307 | martin | 2009-04-10 22:22:44 +0800 (Птн, 10 Апр 2009) | 1 line

changed case true => True
------------------------------------------------------------------------
r19308 | paul | 2009-04-10 22:28:28 +0800 (Птн, 10 Апр 2009) | 1 line

fix file case
------------------------------------------------------------------------
r19311 | martin | 2009-04-10 23:09:16 +0800 (Птн, 10 Апр 2009) | 1 line

Moved Registration of TCustomCalendar
------------------------------------------------------------------------
r19312 | martin | 2009-04-10 23:28:03 +0800 (Птн, 10 Апр 2009) | 1 line

Moved PropertyToSkip for TCalender
------------------------------------------------------------------------
r19314 | paul | 2009-04-10 23:50:30 +0800 (Птн, 10 Апр 2009) | 1 line

merge r13913 #999e8b059d
------------------------------------------------------------------------
r19315 | paul | 2009-04-10 23:53:07 +0800 (Птн, 10 Апр 2009) | 1 line

cleanup WSCalendar
------------------------------------------------------------------------
r19316 | paul | 2009-04-11 00:37:44 +0800 (Сбт, 11 Апр 2009) | 1 line

finish with ComCtrls
------------------------------------------------------------------------
r19318 | martin | 2009-04-11 01:37:40 +0800 (Сбт, 11 Апр 2009) | 1 line

Moved dialogs
------------------------------------------------------------------------
r19319 | martin | 2009-04-11 01:47:30 +0800 (Сбт, 11 Апр 2009) | 1 line

Moved dialogs
------------------------------------------------------------------------
r19320 | martin | 2009-04-11 02:47:52 +0800 (Сбт, 11 Апр 2009) | 1 line

Moved ExtCtrls, ExtDlgs
------------------------------------------------------------------------
r19321 | martin | 2009-04-11 03:23:32 +0800 (Сбт, 11 Апр 2009) | 1 line

Moved PropertyToSkip
------------------------------------------------------------------------
r19322 | martin | 2009-04-11 03:37:39 +0800 (Сбт, 11 Апр 2009) | 1 line

Moved StdCtrls
------------------------------------------------------------------------
r19323 | martin | 2009-04-11 04:05:50 +0800 (Сбт, 11 Апр 2009) | 1 line

Moved Buttons
------------------------------------------------------------------------
r19325 | paul | 2009-04-11 11:02:26 +0800 (Сбт, 11 Апр 2009) | 1 line

remove DirSel
------------------------------------------------------------------------
r19326 | paul | 2009-04-11 11:11:37 +0800 (Сбт, 11 Апр 2009) | 1 line

RegisterArrow
------------------------------------------------------------------------
r19327 | paul | 2009-04-11 11:32:09 +0800 (Сбт, 11 Апр 2009) | 1 line

register WS classes only for TCustomXXX classes if they are available (like TCustomScrollBar instead of TScrollBar) and only for those descendants which really differ (like TRadioButton, TToggleButton)
------------------------------------------------------------------------
r19328 | paul | 2009-04-11 11:40:00 +0800 (Сбт, 11 Апр 2009) | 1 line

RegisterCustomCheckBox
------------------------------------------------------------------------
r19329 | paul | 2009-04-11 11:57:22 +0800 (Сбт, 11 Апр 2009) | 1 line

RegisterXXX for Forms
------------------------------------------------------------------------
r19330 | paul | 2009-04-11 12:13:05 +0800 (Сбт, 11 Апр 2009) | 1 line

RegisterCustomGrid + move of RegisterPropertyToSkip
------------------------------------------------------------------------
r19331 | paul | 2009-04-11 12:24:29 +0800 (Сбт, 11 Апр 2009) | 1 line

RegisterXXX for Menus
------------------------------------------------------------------------
r19332 | paul | 2009-04-11 12:35:16 +0800 (Сбт, 11 Апр 2009) | 1 line

RegisterXXX for PairSplitter
------------------------------------------------------------------------
r19333 | paul | 2009-04-11 12:47:39 +0800 (Сбт, 11 Апр 2009) | 1 line

RegisterXXX for Spin
------------------------------------------------------------------------
r19334 | paul | 2009-04-11 12:58:55 +0800 (Сбт, 11 Апр 2009) | 1 line

RegisterCustomRubberBand
------------------------------------------------------------------------
r19335 | paul | 2009-04-11 13:31:43 +0800 (Сбт, 11 Апр 2009) | 1 line

remove 2 initialization sections
------------------------------------------------------------------------
r19336 | paul | 2009-04-11 13:46:26 +0800 (Сбт, 11 Апр 2009) | 1 line

remove TPopupNotifier.png from LCL
------------------------------------------------------------------------
r19338 | paul | 2009-04-11 13:54:03 +0800 (Сбт, 11 Апр 2009) | 1 line

cleanup
------------------------------------------------------------------------
r19341 | paul | 2009-04-11 14:59:27 +0800 (Сбт, 11 Апр 2009) | 1 line

cleanup
------------------------------------------------------------------------
r19343 | martin | 2009-04-11 19:59:18 +0800 (Сбт, 11 Апр 2009) | 1 line

Reduced Unit-Circles, by moving Register* into WS* units
------------------------------------------------------------------------
r19344 | martin | 2009-04-11 20:22:49 +0800 (Сбт, 11 Апр 2009) | 1 line

Dummy file for gtk
------------------------------------------------------------------------
r19345 | martin | 2009-04-11 21:06:55 +0800 (Сбт, 11 Апр 2009) | 1 line

Initial move of gtk1 register
------------------------------------------------------------------------
r19346 | martin | 2009-04-11 21:19:48 +0800 (Сбт, 11 Апр 2009) | 1 line

Missing dependencies in gtk1 wsfactory
------------------------------------------------------------------------
r19347 | martin | 2009-04-11 22:36:42 +0800 (Сбт, 11 Апр 2009) | 1 line

Declare register* in interface, to keep external linker happy
------------------------------------------------------------------------
r19348 | martin | 2009-04-11 23:34:16 +0800 (Сбт, 11 Апр 2009) | 1 line

Declare register* in interface, to keep external linker happy 
------------------------------------------------------------------------
r19349 | martin | 2009-04-11 23:39:20 +0800 (Сбт, 11 Апр 2009) | 1 line

moved uses for factory
------------------------------------------------------------------------
r19350 | martin | 2009-04-11 23:41:57 +0800 (Сбт, 11 Апр 2009) | 1 line

corrected a few accidental "Result := False"
------------------------------------------------------------------------
r19351 | paul | 2009-04-12 00:04:15 +0800 (Вск, 12 Апр 2009) | 1 line

removed unused units
------------------------------------------------------------------------
r19352 | paul | 2009-04-12 00:05:26 +0800 (Вск, 12 Апр 2009) | 1 line

qt: move RegisterWS calls to qtwsfactory
------------------------------------------------------------------------
r19354 | paul | 2009-04-12 01:04:04 +0800 (Вск, 12 Апр 2009) | 1 line

wince: move RegisterWS calls to WinCEWSFactory
------------------------------------------------------------------------
r19356 | martin | 2009-04-12 01:39:56 +0800 (Вск, 12 Апр 2009) | 1 line

moved GTK2
------------------------------------------------------------------------
r19357 | martin | 2009-04-12 01:45:31 +0800 (Вск, 12 Апр 2009) | 1 line

moved GTK2 / missing units
------------------------------------------------------------------------
r19358 | martin | 2009-04-12 01:57:43 +0800 (Вск, 12 Апр 2009) | 1 line

Fixed one return value from register
------------------------------------------------------------------------
r19360 | martin | 2009-04-12 02:47:42 +0800 (Вск, 12 Апр 2009) | 1 line

Gtk2 , needs 2 registrations for WinControl
------------------------------------------------------------------------
r19361 | martin | 2009-04-12 02:57:58 +0800 (Вск, 12 Апр 2009) | 1 line

Gtk2 , needs 2nd registrations
------------------------------------------------------------------------
r19368 | paul | 2009-04-12 13:09:59 +0800 (Вск, 12 Апр 2009) | 1 line

cleanup
------------------------------------------------------------------------
r19373 | paul | 2009-04-12 13:45:17 +0800 (Вск, 12 Апр 2009) | 1 line

wince: forgotten file
------------------------------------------------------------------------
r19374 | paul | 2009-04-12 14:04:04 +0800 (Вск, 12 Апр 2009) | 1 line

carbon: move RegisterWSComponent to CarbonWSFactory
------------------------------------------------------------------------
r19375 | paul | 2009-04-12 14:27:47 +0800 (Вск, 12 Апр 2009) | 1 line

cleanup
------------------------------------------------------------------------

git-svn-id: trunk@19376 -
2009-04-12 08:46:31 +00:00
zeljko
d8105e2133 Qt: removed previous patch for interacting with tabwidget during designtime, introduced getDesignInteractive().
git-svn-id: trunk@19093 -
2009-03-24 18:48:06 +00:00
zeljko
02c50e3d3e Qt: implemented setBorderStyle for IQtEdit interface
git-svn-id: trunk@19020 -
2009-03-18 09:38:19 +00:00
zeljko
85316303bc Qt: introduced TQtCustomControl (was TQtAbstractScrollArea), now TQtAbstractScrollArea is intermediate class and our class hierarchy is same as in qt libs.
git-svn-id: trunk@18891 -
2009-03-04 09:16:34 +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
zeljko
1436d07d97 Qt: bugfix - don't set invalid windowstate for mdisubwindows.
git-svn-id: trunk@18682 -
2009-02-14 13:07:01 +00:00
paul
38ed3d71cc qt: set correct windows state in TQtWSCustomControl.ShowHide
git-svn-id: trunk@18681 -
2009-02-14 08:57:16 +00:00
zeljko
17982b9c1a Qt: fix WS classes, move methods from public to published sections.
git-svn-id: trunk@17597 -
2008-11-26 07:44:16 +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
zeljko
a5bb936929 Qt: Enable titlebar buttons (close,min,max) on modal windows under MacOsX
git-svn-id: trunk@16864 -
2008-10-04 08:45:18 +00:00
zeljko
707ff6d34c Qt: all color conversions changed from QColor_setRgb() to QColor_fromRgb(), cause it can return unexpected result.
git-svn-id: trunk@16626 -
2008-09-17 14:49:58 +00:00
zeljko
3693f2d51e Qt: Under linux we should group modal windows (setting it's parent), as in qt docs about QtDialog flag.
git-svn-id: trunk@15885 -
2008-07-27 08:16:04 +00:00
mattias
2996a3c332 rename COPYING.modifiedLGPL to COPYING.modifiedLGPL.txt
git-svn-id: trunk@15834 -
2008-07-22 09:48:15 +00:00
paul
66ca0835ec - lcl: use CreateIconIndirect as default implementation for CreateCursor and DestroyIcon for DestroyCursor
- win32: add CreateIconIndirect and remove CreateCursor
- qt: redo cursors through TQtCursor instead of QCursorH, remove CreateCursor and DestroyCursor, implement CreateIconIndirect and DestroyIcon

git-svn-id: trunk@15456 -
2008-06-18 03:21:33 +00:00
paul
25093a929a qt: redo sizing and positioning
git-svn-id: trunk@15143 -
2008-05-15 02:51:30 +00:00
paul
dbddffe2cb lcl: bidi mode patch from Ido with modifications
git-svn-id: trunk@14991 -
2008-04-27 14:24:22 +00:00
paul
c2db5ffa0f qt: bidimode depends on TControl.UseRightToLeftAlignment, TControl.UseRightToLeftReading,
TContorl.UseRightToLeftScrollBar more than on BidiMode property since that methods are virtual

git-svn-id: trunk@14847 -
2008-04-16 05:51:23 +00:00
paul
371075ffd8 qt: add bidimode support
git-svn-id: trunk@14846 -
2008-04-16 02:02:27 +00:00
zeljko
6202babb26 Qt: Fix default position of MDIChild form.
git-svn-id: trunk@14323 -
2008-02-29 17:59:28 +00:00
sekelsenmat
fa14be1de9 Removed the USE_QT_4_3 define. Now only Qt 4.3 or superior is supported.
git-svn-id: trunk@14057 -
2008-02-09 20:32:37 +00:00
paul
f1d8f78b0c initial implementation of TWinControl.SetShape for gtk, qt, win32 + example
git-svn-id: trunk@13874 -
2008-01-25 06:56:57 +00:00
paul
3092ac63d9 qt: TQtWSDragImageList implementation
git-svn-id: trunk@13756 -
2008-01-15 06:00:23 +00:00