[Kde-games-devel] Review Request: Adapt KGamePopupItem to Qt 4.5 and 4.6 improvements
Dmitry Suzdalev
dimsuz at gmail.com
Sat Nov 28 23:04:35 CET 2009
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/2296/#review3324
-----------------------------------------------------------
Wow, great things coming :)
/trunk/KDE/kdegames/libkdegames/kgamepopupitem.cpp
<http://reviewboard.kde.org/r/2296/#comment2621>
I'd suggest to split this function into a smaller ones if possible. This would improve readability. Large functions tend to grow even larger and this makes them difficult to read :)
Well, at least the 'switch' configuring state machine can be separated, if i'm not mistaken.
/trunk/KDE/kdegames/libkdegames/kgamepopupitem.cpp
<http://reviewboard.kde.org/r/2296/#comment2622>
Is there any reason to keep these internal methods (a couple of them below) if they are dummy now? Or you'll remove them in future?
- Dmitry
On 2009-11-28 19:44:51, Stefan Majewsky wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/2296/
> -----------------------------------------------------------
>
> (Updated 2009-11-28 19:44:51)
>
>
> Review request for KDE Games and Dmitry Suzdalev.
>
>
> Summary
> -------
>
> Apart from some general cleanup, the most interesting changes are:
> * Use QGraphicsItem::opacity. (KGamePopupItem::messageOpacity is deprecated now.)
> * Use QGraphicsPathItem and QGraphicsPixmapItem instead of painting primitives.
> * Improve event handling of the QGraphicsTextItem.
> * Radically simplify internal layouting code.
> * Instead of QTimeLine, animations are now implemented as QPropertyAnimations and orchestrated by a QStateMachine.
>
> Note that the changes are rather extensive. (I estimate that 80% of the codebase has already changed, and I'm not finished yet.) If you prefer that, I can also send you 12 separate patches of the single commits I made in my git-svn repository.
>
>
> Diffs
> -----
>
> /trunk/KDE/kdegames/libkdegames/kgamepopupitem.h 1054906
> /trunk/KDE/kdegames/libkdegames/kgamepopupitem.cpp 1054906
> /trunk/KDE/kdegames/libkdegames/kgamepopupitem_p.h PRE-CREATION
>
> Diff: http://reviewboard.kde.org/r/2296/diff
>
>
> Testing
> -------
>
> I have used kgamepopupitemtest to keep regressions at a minimum. I'm aware of and investigating the issue that hiding is not animated.
>
>
> Thanks,
>
> Stefan
>
>
More information about the kde-games-devel
mailing list