[Qt] TScrollBar patch

zeljko zeljko at holobit.net
Tue May 29 15:47:42 CEST 2007


On Monday 28 May 2007 23:19, Felipe Monteiro de Carvalho wrote:
> The only problem is that the function would become too big. If another
> function is really needed I would rather have a private function on
> TQtWidgetSet class. This will force the function to not use the
> private variables of the main one, and thus improve it's design.

I've finished those functions, (DoTheJob() renamed to PrepareScrollInfo) and I 
think that it should stay here , cause only SetScrollInfo() is caller of this 
function, also the size of SetScrollInfo will not be bigger than it is (maybe 
few lines more).

New patch is attached, scrollbars works nice, but with one exception, if U 
enable scrollbars on TScrollingWinControl() (TForm), it'll raise AV. I'll try 
to fix this next days.

CHANGES:
1.New QAbstractSliderH events added (SlotValueChange, SlotSliderMoved,   
SlotSliderPressed, SlotSliderReleased, SlotRangeChange)
2.TStringGrid now have fully functional TScrollBar and it becomes to look 
   like a real TStringGrid ;)


cheers,
   zeljko
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qtupdate-r11216.patch
Type: text/x-diff
Size: 18308 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/qt/attachments/20070529/b23165e2/attachment.patch>


More information about the Qt mailing list