Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / qt / 2007-05

new qt patch

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Felipe Monteiro de Carvalho
to zeljko

Thanks, applied.

In some places you override the eventFilter like this:

+function TQtTabWidget.EventFilter(Sender: QObjectH; Event: QEventH):
Boolean; cdecl;
+begin
+  Result := False;
+
+  inherited EventFilter(Sender, Event);
+end;
+

What setting the result to false and calling inherited will do?

Felipe Monteiro de Carvalho
zeljko
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 14 lines
Thanks, applied. In some places you override the eventFilter like this: +function TQtTabWidget.EventFilter(Sender: QObjectH; Event: QEventH): Boolean; cdecl; +begin + Result := False; + + inherited EventFilter(Sender, Event); +end; + What setting the result to false and calling inherited will do?

1.Nothing, just let Qt to have event and call inherited, pls. leave it as it is, I'll put some code inside next days.

2.I've almost finished patch for scrollbars (SetScrollInfo, GetScrollInfo) and it seem that it works nice ;), I'll send the patch as soon as I finish painting issues :) , screenshoot attached :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stringgridscrollbars.png
Type: image/png
Size: 25145 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/qt/attachments/20070528/a4b85487/attachment.png>

Daniel Jesús Pérez Burgos
to zeljko

Thanks a lot zeljko for your work.

Best Regards

2007/5/28, zeljko :

Show quoted text 33 lines
On Monday 28 May 2007 13:02, Felipe Monteiro de Carvalho wrote: > Thanks, applied. > > In some places you override the eventFilter like this: > > +function TQtTabWidget.EventFilter(Sender: QObjectH; Event: QEventH): > Boolean; cdecl; > +begin > + Result := False; > + > + inherited EventFilter(Sender, Event); > +end; > + > > What setting the result to false and calling inherited will do? 1.Nothing, just let Qt to have event and call inherited, pls. leave it as it is, I'll put some code inside next days. 2.I've almost finished patch for scrollbars (SetScrollInfo, GetScrollInfo) and it seem that it works nice ;), I'll send the patch as soon as I finish painting issues :) , screenshoot attached :) _______________________________________________ Qt mailing list http://www.lazarus.freepascal.org/mailman/listinfo/qt

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/qt/attachments/20070528/ca5d1d92/attachment.html>