Review Request 127050: [kdevplatform] Show job progress in Task Manager
René J.V. Bertin
rjvbertin at gmail.com
Tue Jun 14 18:22:49 UTC 2016
> On Feb. 12, 2016, 1:13 a.m., Milian Wolff wrote:
> > shell/runcontroller.cpp, line 659
> > <https://git.reviewboard.kde.org/r/127050/diff/1/?file=444068#file444068line659>
> >
> > static cast to float here if you want, or don't and just do
> >
> > ...->setProgress((totalProgress + 1) / jobCount);
> >
> > the result should be the same as a floating point devision + qRound afaik.
Except that that integer division can yield a final progress of 101% presuming that `KJob::percent()` returns 100% when an operation is done.
- René J.V.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127050/#review92282
-----------------------------------------------------------
On Feb. 14, 2016, 12:11 p.m., Kai Uwe Broulik wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/127050/
> -----------------------------------------------------------
>
> (Updated Feb. 14, 2016, 12:11 p.m.)
>
>
> Review request for KDevelop and Kevin Funk.
>
>
> Repository: kdevplatform
>
>
> Description
> -------
>
> Using the Unity Launcher API. Not super optimal of using this unstable private DBus thingie but whatever. Maybe some day we'll have KF5 Window Metadata :)
>
> QtCreator also shows a badge with the number of build problems which is kinda neat but this is probably in KDevelop somewhere and not the platform?
>
>
> Diffs
> -----
>
> shell/CMakeLists.txt 83d4db0
> shell/runcontroller.h a6684f9
> shell/runcontroller.cpp 9f5259a
> shell/unitylauncher.h PRE-CREATION
> shell/unitylauncher.cpp PRE-CREATION
>
> Diff: https://git.reviewboard.kde.org/r/127050/diff/
>
>
> Testing
> -------
>
> Video: https://www.youtube.com/watch?v=9pwhurPo--M
>
> While at it I replaced keys() creating a temporary QList just to iterate over it with iterators and using .key() - unfortunately we cannot use keyBegin() yet
>
> I could move all of this into the RunControllerPrivate (my initial much more complex attempt registered a dbus service so I used a separate class)
>
>
> Thanks,
>
> Kai Uwe Broulik
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20160614/68b00083/attachment.html>
More information about the KDevelop-devel
mailing list