Patch, WaitCursor during factorial
Raphael Kubo da Costa
kubito at gmail.com
Wed Apr 7 02:03:33 CEST 2010
On Thursday 01 April 2010 16:06:38 eike lange wrote:
> Hi!
>
> As reported in Bug 139397, kcalc takes long time to calculate the
> factorial of a big number. If numbers are big enough, kcalc freezes.
> IMHO, the user needs some visual feedback.
>
> The patch attached to this mail adds a WaitCursor during this long
> operation, which does not disturb too much, if the operation is in fact
> short.
>
> I could add a MessageDialog, which warns the user, if the input is
> larger than maybe 1,000,000 (configurable) or just add a ToolTip to the
> factorial button which shows, that this op may take long time.
>
> Eike
Hey there,
IMO, the patch would look cleaner if you just called
QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)) and
QApplication::restoreOverrideCursor(), and added the appropriate #includes.
Does kcalc currently have a maintainer?
More information about the Kde-utils-devel
mailing list