scrollToBottom / auto-scrolling for ProcessWidget diverted classes

Pieter Pareit pieter.pareit at planetinternet.be
Mon Oct 13 22:50:07 UTC 2003


Op zaterdag 11 oktober 2003 14:23, schreef Pieter Pareit:
> Hello
>
> I needed to see output of my application in the Application Part. This only
> was possible for the first messages, so I looked in the code of kdevelop to
> see what was going on. I came up with this changes in processwidget.h/cpp,
> The qApp->processEvents() is needed because otherwise the listbox is not
> yet updated before the scroll down. I tried to do the same using a QTimer,
> but then I would only get good results when the listbox was not yet very
> big.
>
> Pieter
>
<previous diff>

I now added a check to see if we are not somewhere in the midle of the output, 
meaning the user has scrolled back. I attached the diff (against kdevelop-cvs 
of 13/10/03) as a file, if this is not common practice, let me know.

Pieter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pp-kdevelop-031013.diff
Type: text/x-diff
Size: 2556 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20031013/e19c4554/attachment.bin>


More information about the KDevelop-devel mailing list