Commit Graph

175 Commits

Author SHA1 Message Date
paul
a5a7bd7796 Qt:
- more checks while setting / getting scroll info
- another trial to speedup TCustomControl

git-svn-id: trunk@12171 -
2007-09-25 01:57:10 +00:00
paul
5269651533 Qt: implement PostMessage as postponed TWinControl.Perform
git-svn-id: trunk@12164 -
2007-09-24 12:37:29 +00:00
paul
a22f679f0d Qt:
- minor changes for menu
- cleanup

git-svn-id: trunk@12156 -
2007-09-24 07:49:58 +00:00
paul
763779959f Qt: menu rework (also fixed issue with destroying menu items - they had not destroyed their handles)
git-svn-id: trunk@12153 -
2007-09-24 06:03:19 +00:00
paul
55a9f353b2 Qt:
- fix problem with grabbing mouse capture for TCustomControl
- remove toolbar and toolbutton implementation into ifdefs since ToolBar and ToolButton are TCustomControl descendants and fully implemented by LCL means

git-svn-id: trunk@12148 -
2007-09-23 06:52:30 +00:00
paul
015e551c12 qt: probably fix tab change by mouse click in TPageControl
git-svn-id: trunk@12142 -
2007-09-23 02:56:28 +00:00
paul
589219fcdc Qt: implement SendMessage
git-svn-id: trunk@12137 -
2007-09-22 17:34:53 +00:00
paul
76329d2b67 Qt:
- improve key handling:
  a) it is possible now to stop key handling if OnKeyDown/KeyUp/KeyPress charcode become 0
  b) it is possible now to change vk code or char code in Key events
- implement WantReturns for TCustomMemo

git-svn-id: trunk@12135 -
2007-09-22 15:55:39 +00:00
paul
08ba2c42af Qt: trial to sppedup qt paintings through -dQtGraphicsSpeedUp
git-svn-id: trunk@12134 -
2007-09-22 13:02:04 +00:00
paul
dd07f217c6 reduce hints
git-svn-id: trunk@12127 -
2007-09-22 08:13:08 +00:00
paul
e05a24834f Qt:
- install global application EvenFilter (now it is used to remove Tab FocusPolicy from widgets)
- fix Tabbing
- move QtObjectFromWidgetH to right place

git-svn-id: trunk@12116 -
2007-09-21 18:41:42 +00:00
paul
63185c68cf Qt:
- fix statusbar panels width
- change statusbar penels frame to styled

git-svn-id: trunk@12114 -
2007-09-21 16:01:14 +00:00
paul
34cccaa939 Qt:
- set mode objfpc instead of delphi in qtwidgets.pas
- some fixes for Tabbing

git-svn-id: trunk@12113 -
2007-09-21 14:55:56 +00:00
paul
764b474b83 Qt:
- fix TQtWinControl.CanFocus
- fix FocusPolicy for widgets - they now have only Click policy. Tab policy is not needed since LCL handle tabbing itself
- remove setTabOrders and related code since LCL handle tabbing itself
(issue #0009726)

git-svn-id: trunk@12102 -
2007-09-21 05:08:35 +00:00
paul
aab25fd9e6 Qt:
- fix listbox selection (extended selection was turned on single select mode too)

git-svn-id: trunk@12093 -
2007-09-20 14:35:43 +00:00
paul
feb1dfe899 Qt:
- rework FileDialogs - now they understand more options and handle events (disadvantage - FileDialogs are no more native)
- fix ColorDialog (was wrong selected color)
- introduce TQtStringList which encapsulates QStringListH
- fix compilation of qt 4.2

git-svn-id: trunk@12083 -
2007-09-20 06:56:09 +00:00
paul
f40ff94387 Qt: use native VK code provided by qt in TLMKey under windows instead of qt key code -> VK mapping
git-svn-id: trunk@12079 -
2007-09-19 15:46:16 +00:00
paul
615e7fb75a Qt:
- move erase before paint in invalidateRect
- fix TQtWSCustomNotebook.GetTabIndexAtPos
- some code formatting and cleanup

git-svn-id: trunk@12078 -
2007-09-19 15:39:26 +00:00
zeljko
06f54aae9b (Qt): Fixed AV when deleting item from TCustomListView.
git-svn-id: trunk@12074 -
2007-09-19 07:25:16 +00:00
zeljko
36f9cf22e2 (Qt): Implemented AutoSelect for comboboxes.
git-svn-id: trunk@12058 -
2007-09-17 19:29:29 +00:00
paul
98dc3ac6bd Qt: misc
git-svn-id: trunk@12049 -
2007-09-17 03:09:29 +00:00
paul
6eb5685e9e Qt: cleanup
git-svn-id: trunk@12046 -
2007-09-16 15:39:51 +00:00
paul
dd8597614f Qt: TQtWSCustomNotebook and TQtWSCustomPage improvements
git-svn-id: trunk@12042 -
2007-09-16 10:01:36 +00:00
paul
48565b37bf Qt: simplify TQtWSTrackBar code
git-svn-id: trunk@12038 -
2007-09-15 16:45:31 +00:00
paul
03a4859cb0 Qt: simplify TQtWSStatusBar
git-svn-id: trunk@12037 -
2007-09-15 16:27:39 +00:00
paul
fa25ff1432 qt: workaround TQtPage - getIndex, getText, setText (solves problem found by Zeljan)
git-svn-id: trunk@12036 -
2007-09-15 15:40:49 +00:00
paul
7da6e8a36f Qt:
- protect most qtwscontrols.pp class methods by WSCheckHandleAllocated
- cleanup

git-svn-id: trunk@12027 -
2007-09-14 05:05:19 +00:00
paul
5b1d9ef4a8 Qt: fix close event
git-svn-id: trunk@12026 -
2007-09-14 00:56:11 +00:00
paul
c0a25e0eff Qt:
- introduce IQtEdit interface and implement it in Edit, Memo, Combo and Spin widgets
- switch TQtWsCustomEdit to use of IQtEdit is Widget supports it
- remove unneeded more code

git-svn-id: trunk@12022 -
2007-09-13 15:37:16 +00:00
paul
64c80e1a0e Qt:
- reimplement TQtListStrings (now sort is also work)
- more TQtWSCustomListBox methods

git-svn-id: trunk@12019 -
2007-09-13 07:55:47 +00:00
paul
bede463f83 Qt:
- reimplement getText and setText for TQtWsWinControl
- cleanup

git-svn-id: trunk@12016 -
2007-09-13 05:37:38 +00:00
paul
d1df9f09e5 qt: cleanup
git-svn-id: trunk@12015 -
2007-09-13 03:17:06 +00:00
paul
6890ddcf11 Qt:
- update bindings to 1.49
- complete SpinEdit
- fix problem with open form contains TWsCustomEdit descendants

git-svn-id: trunk@12014 -
2007-09-13 01:52:12 +00:00
paul
a6de3a8e90 Qt: improve spin logic
git-svn-id: trunk@12009 -
2007-09-12 14:13:35 +00:00
paul
d9c22fbfcf Qt: simplify spinbox code a bit
git-svn-id: trunk@12006 -
2007-09-12 09:25:31 +00:00
paul
fb5cf75ef9 Qt: port TQtWSWinControl.SetChildZPosition from gtk to qt widgetset
git-svn-id: trunk@12005 -
2007-09-12 09:11:19 +00:00
paul
9b01dc0727 Qt:
- complete TQtWsCustomStaticText
- some code moving for TQtWsCustomMemo

git-svn-id: trunk@11996 -
2007-09-11 09:23:38 +00:00
paul
9f7f8da245 Qt:
- complete TQtWSCustomCheckBox, TQtWSToggleBox, TQtWSRadioButton
- fixed typos in TQtWSCustomFloatSpinEdit declaration
- temporary removed TQtWsButton.GetPrefferedSize due to non adequate return values

git-svn-id: trunk@11988 -
2007-09-10 15:44:43 +00:00
paul
2a2f1d799f Qt:
- complete TQtWSCustomMemo
- cleanup

git-svn-id: trunk@11986 -
2007-09-10 08:41:29 +00:00
paul
ff9b99ac43 Qt:
- complete TQtWSCustomEdit
- cleanup

git-svn-id: trunk@11985 -
2007-09-10 06:47:30 +00:00
paul
1e97d6741f Qt:
- remove unnecessary TQtWsBitBtn code (it is already in TQtWsButton)
- implement setShortcut and GetPreferedSize for TQtWsButton
- fix TQtWsButton.setText
- fix mem leak on setting shortcut

git-svn-id: trunk@11980 -
2007-09-09 17:01:51 +00:00
paul
0a0600c8a9 Qt:
- fix double mouse move message sending (cause by Hover event when mouse pressed - in this case MouseMove event is also called. More over Hover event in case of mouse pressed gives mouse position relative to client area but not widget area and as result produce bugs)
- fix some key to virtual key translating problems
- implement TQtRubberBand (will be used later by designer)

git-svn-id: trunk@11947 -
2007-09-06 02:04:51 +00:00
paul
3d77f2e0a2 Qt:
- postoned Destroying of widgets in case of destroy during event processing (introduced Release method)
- safer DeliverMessage
- cleanup

git-svn-id: trunk@11933 -
2007-09-04 02:28:26 +00:00
paul
d00181d3e6 forgotten files + cleanup
git-svn-id: trunk@11927 -
2007-09-03 08:04:01 +00:00
paul
146f5e01f2 Qt:
- remove unneeded widget destructors (use mostly TQtWidget.destroy)
- handle TForm.FormStyle = fsStayOnTop

git-svn-id: trunk@11925 -
2007-09-03 06:05:28 +00:00
paul
ed062327ae Qt: fix setvisible/getvisible for menu items
git-svn-id: trunk@11923 -
2007-09-03 03:05:35 +00:00
paul
fa4fffcebe LCL: add posibility to crDefault to have zero handle
Qt: fix controls default cursor (it was Arrow and now it is default control cursor) issue #0009200 

git-svn-id: trunk@11900 -
2007-09-01 13:09:20 +00:00
sekelsenmat
09e1f9441a Small fixes for the qt4 interface on mac os x
git-svn-id: trunk@11894 -
2007-08-31 21:44:03 +00:00
paul
184385e598 - partially fix qt key handling (mostly ported from carbon)
git-svn-id: trunk@11885 -
2007-08-30 15:49:06 +00:00
paul
ae8d388a83 (Qt):
- fix set OwnerDrawn flag for listbox
- implement OwnerDrawn combobox

git-svn-id: trunk@11881 -
2007-08-30 02:43:28 +00:00