Commit Graph

1574 Commits

Author SHA1 Message Date
juha
ef3f193b45 LCL: Make menu items call OnClick correctly when moving mouse sideways, on GTK2 and QT. (On Windows works). Patch from August Klein, issue #17565
git-svn-id: trunk@30426 -
2011-04-22 09:09:28 +00:00
zeljko
8822907751 Qt: fixed bug where TPanel wasn't painted with defined color in case when BevelInner and BevelOuter are bvNone.
git-svn-id: trunk@30407 -
2011-04-21 07:38:52 +00:00
zeljko
28c26d4e9e Qt: fixed bug with application crash because of recursive repaint calls when an exception occured inside paint event.Now it shows correct exception msg (if any) and application isn't crashed.
git-svn-id: trunk@30303 -
2011-04-15 16:38:36 +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
juha
c84b0737b7 LCL: Clean out unused variables and code.
git-svn-id: trunk@30261 -
2011-04-10 17:07:43 +00:00
zeljko
a3d3512da0 Qt: stop signals from qt when deleting an item from list. issue #19127
git-svn-id: trunk@30246 -
2011-04-08 18:05:50 +00:00
zeljko
0048e84bad Qt: fixed wrong TQtWidgetSet.SetParent() behaviour. Flags shouldn't be setted up if form is reparented to other control.
git-svn-id: trunk@30223 -
2011-04-06 16:15:18 +00:00
zeljko
719cc8fa83 Qt: fixed assertions from Qt when drawing win panels with negative width or height.
git-svn-id: trunk@30221 -
2011-04-06 14:48:14 +00:00
zeljko
c6bdd569fa Qt: fixed strange behaviour of QTreeWidget selection when multiselection is enabled (TListView.Style = vsReport). issue #18972
git-svn-id: trunk@30198 -
2011-04-05 06:19:50 +00:00
zeljko
1049bada99 Qt: issues.xml - added TBitBtn.Layout to restrictions. We cannot change glyph layout inside QPushButton. issue #19088
git-svn-id: trunk@30188 -
2011-04-04 18:03:21 +00:00
zeljko
ee25740910 Qt: simplified TCN_SELCHANGING for qt < 4.7
git-svn-id: trunk@30172 -
2011-04-04 09:11:48 +00:00
zeljko
53bf526a50 Qt: fixed mouse wheel event with qt < 4.7. Now it does same as qt-4.7.
git-svn-id: trunk@30169 -
2011-04-04 08:59:42 +00:00
zeljko
fe743caa95 Qt: remove redundant line breaks when reading from lfm.Patch by Vladimir Zhirov issue #18278.
git-svn-id: trunk@30168 -
2011-04-04 07:53:38 +00:00
zeljko
343e50d39c Qt: fixed bug where TPageControl.OnChanging AllowChange param wasn't respected, so if AllowChange=False, qt changed page anyway.
git-svn-id: trunk@30159 -
2011-04-03 18:24:44 +00:00
zeljko
7674b680b6 Qt: fixed bug when control doesn't have csCaptureMouse, but mouse is higher than width or height of control.
git-svn-id: trunk@30153 -
2011-04-03 13:39:55 +00:00
paul
aecfd2f738 lcl: implement TListBox.ScrollWidth:
- win32, wince: set/get scrollwidth using LB_SETHORIZONTALEXTENT/LB_GETHORIZONTALEXTENT (issue #0018912)
  - qt, gtk2: don't show listbox horizontal scrollbar by default. show it only when scrollwidth > content area

git-svn-id: trunk@30138 -
2011-04-02 17:30:44 +00:00
zeljko
bf7ad8a2f9 Qt: fixed msg providing to LCL when deselection of items occured by mouse click into listview viewport. issue #18972
git-svn-id: trunk@30078 -
2011-03-30 09:53:16 +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
zeljko
a0ceb2bdb1 *Qt: invalidate clientrect cache when scrollbar range is changed.part of issue #18993
git-svn-id: trunk@30068 -
2011-03-29 11:44:29 +00:00
zeljko
e65ea3f1b8 Qt: always DetachEvents, also do not call QObject_delete() from TQtWidget.DestroyWidget if InEvent=True, postpone as
QObject_deleteLater(). fixes crashes when huge amount of input events is processed but object is destroyed in the meantime.

git-svn-id: trunk@30005 -
2011-03-23 13:17:13 +00:00
zeljko
e99faf3fd1 Qt: nil each hook variable after destroying hook.
git-svn-id: trunk@30003 -
2011-03-23 12:16:39 +00:00
zeljko
64e944c92e Qt: more checks for LCLObject in input events. Assign 1 to LResult of DeliverMessage in case of input event, so eventfilter
will stop with Result = True in case of error.

git-svn-id: trunk@29991 -
2011-03-23 07:32:59 +00:00
zeljko
f965d18fea Qt: Set true result if LCLObject dissapeared inside key event
git-svn-id: trunk@29984 -
2011-03-22 20:06:49 +00:00
paul
0373c8de84 lcl: make ScrollBy more delphi compatible:
- invert direction of scroll
  - add TWinControl.ScrollBy to scroll inner controls
  - scroll controls in TScrollingWinControl (fixes issue #0016721)

git-svn-id: trunk@29944 -
2011-03-21 02:41:43 +00:00
zeljko
2447f949f5 Qt: changed behaviour of exception in TQtWidget.DeliverMessage() for input events (kbd, mouse), since it segfault complete app in cases when
LCLObject = nil and Widget = nil. In that case just raise Exception.

git-svn-id: trunk@29901 -
2011-03-18 21:02:32 +00:00
mattias
de999b53f3 lcl: fixed Makefile.compiled
git-svn-id: trunk@29887 -
2011-03-17 12:19:41 +00:00
juha
5d796b9cbb LCL: Remove OldShortCut from SetShortCut parameters and add the real shortcut keys there.
git-svn-id: trunk@29872 -
2011-03-16 16:53:36 +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
4e95f6a390 LCL: Show menu shortcuts also when they are sequencial keys combinations (like Ctrl+Q, B)
git-svn-id: trunk@29853 -
2011-03-15 14:05:55 +00:00
zeljko
ef4e2fb352 Qt: fixed bug in TQtCalendar, where mouse move,enter and leave weren't propagated to LCL from dates (QAbstractScrollArea) part of calendar.
git-svn-id: trunk@29836 -
2011-03-14 09:22:44 +00:00
paul
1f7c7a9d74 wince, qt: remove EventTrace method
git-svn-id: trunk@29829 -
2011-03-14 02:38:46 +00:00
juha
01db3bb47c LCL (mostly), Replace Assert(False... with //DebugLn(... Now Assert can be used for its original purpose again.
git-svn-id: trunk@29820 -
2011-03-13 18:21:51 +00:00
paul
5bb62f9253 qt: use QMenu->exec instead of QMenu->popup to simulate win32 behavior
git-svn-id: trunk@29781 -
2011-03-10 06:47:44 +00:00
zeljko
3d675e65b1 Qt: fixed wheel events passing for qt < 4.7. issue #18880
git-svn-id: trunk@29738 -
2011-03-07 07:26:33 +00:00
zeljko
b5cbc333ba Qt: proper paint of TQtCustomControl viewport. issue #18880
git-svn-id: trunk@29737 -
2011-03-07 07:17:49 +00:00
juha
282bb3de33 QT: Prevent assigning a negative value to a Word, cought by range-check. Sould fix issue #18876.
git-svn-id: trunk@29735 -
2011-03-06 16:55:13 +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
zeljko
a2e292da52 Qt: fixed compilation and range check crashes with TColorRef
git-svn-id: trunk@29718 -
2011-03-03 15:23:38 +00:00
paul
7a9b188e2c lcl, win32, wince, qt, gtk2, carbon: implement OffsetRGN winapi compatible function
git-svn-id: trunk@29697 -
2011-03-01 07:37:42 +00:00
zeljko
eec60401f7 Qt: do not send LM_CHANGED when TCheckListBox is invisible.
git-svn-id: trunk@29654 -
2011-02-22 15:32:26 +00:00
zeljko
5784d739e7 Qt: optimized signalling from qt to lcl in case of TQtTabWidget.
git-svn-id: trunk@29649 -
2011-02-22 08:11:08 +00:00
zeljko
d832146b1b Qt: qtthemes, implemented DrawText of teTooltip
git-svn-id: trunk@29646 -
2011-02-22 07:38:14 +00:00
mattias
2829b842e8 LCL: small optimization
git-svn-id: trunk@29589 -
2011-02-17 10:07:01 +00:00
zeljko
f73311c159 Qt: introduced TQtToolBox class, fixed problem with messages delivery to LCL. issue #18757
git-svn-id: trunk@29569 -
2011-02-15 21:54:45 +00:00
zeljko
4382974f54 Qt: do not allow QtTool for modal windows under win32, otherwise global actions are fired.issue #18709
git-svn-id: trunk@29547 -
2011-02-14 15:37:03 +00:00
zeljko
8308cf24d5 Qt: creation of QMainWindow class could fail in case when splash screen is shown before Application.MainForm is created, so we never have MainForm=True (eg. lazarus on win32 - triggers sometimes).Returned checking of QKeySequence_isEmpty() for global actions.
git-svn-id: trunk@29545 -
2011-02-14 13:23:54 +00:00
zeljko
0080ce812a Qt: do not ask if QKeySequence_isEmpty for global action, otherwise it won't be added to global actions list.
git-svn-id: trunk@29544 -
2011-02-14 12:26:53 +00:00
zeljko
4aa7b988f1 Qt: added global actions handling (Alt+Key in app main form).issue #18478
git-svn-id: trunk@29543 -
2011-02-14 11:50:23 +00:00
mattias
b3a8dd03b1 fixed typos: childs
git-svn-id: trunk@29440 -
2011-02-10 09:37:16 +00:00
zeljko
78e92fd32f Qt: reworked selection handling of TQtTreeWidget, now we use QTreeWidget_selectedItems() instead of
asking QTreeWidgetItem_isSelected() which is more accurate, and avoid crashes in some circumstances, eg.watchesdlg,breakpointdlg etc.

git-svn-id: trunk@29422 -
2011-02-08 15:24:57 +00:00