[Kde-games-devel] A new highscore manager - KScoreManager
Matt Williams
matt at milliams.com
Tue Apr 29 15:43:32 CEST 2008
On Tuesday 29 April 2008 14:36:56 Dmitry Suzdalev wrote:
> On Tuesday 29 April 2008 17:32:10 Matt Williams wrote:
> > I think I prefer the former but what do you guys think?
>
> +1 for the former as it would produce a more obvious and readable code
>
> showScoreDialog()
> showScoreGraphicsWidget()
>
> Any ideas for the names?
Well I'm thinking that since these function call won't actually _show_
anything, they'll simply return an object for you to display, something like:
KDialog scoreDialog(const ScoreDisplay& scoreDisplay = ScoreDisplay()) const;
QGraphicsWidget scoreGraphicsWidget(const ScoreDisplay scoreDisplay =
ScoreDisplay()) const;
would make sense. Or perhaps getScoreDialog(..) and getScoreGraphicsWidget(..)
since in a way it's 'getting' the dialog?
Matt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-games-devel/attachments/20080429/33678d2a/attachment.pgp
More information about the kde-games-devel
mailing list