[Marble-devel] Review Request: Move duplicated print methods to ControlView
Dennis Nienhüser
earthwings at gentoo.org
Sat Sep 4 23:39:58 CEST 2010
> On 2010-09-03 19:20:39, Torsten Rahn wrote:
> > Nice.
> > I wonder whether this stuff shouldn't actually go into MarbleWidget/MarbleMap instead. This would be similarly inspired to:
> >
> > void QWebView::print ( QPrinter * printer ) const [slot]
> > void QTextEdit::print ( QPrinter * printer ) const
Yes, true. We need to decide what to do with print options (patch coming soon: print background, print legend, print driving instructions) though. Possible options are
- Ask the user in a dialog
- Use another options parameter, e.g. MarbleWidget::print(QPrinter*, PrintOptions)
- Options can be modified in the settings
- Only support default values
I'll commit this one now, we can discuss this further in the next review.
- Dennis
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://svn.reviewboard.kde.org/r/5250/#review7394
-----------------------------------------------------------
On 2010-09-03 19:07:47, Dennis Nienhüser wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://svn.reviewboard.kde.org/r/5250/
> -----------------------------------------------------------
>
> (Updated 2010-09-03 19:07:47)
>
>
> Review request for marble.
>
>
> Summary
> -------
>
> QtMainWindow and marble_part have four printing related methods with nearly identical code. The patch moves them to ControlView to avoid the redundancy.
>
>
> Diffs
> -----
>
> /trunk/KDE/kdeedu/marble/src/ControlView.h 1171147
> /trunk/KDE/kdeedu/marble/src/ControlView.cpp 1171147
> /trunk/KDE/kdeedu/marble/src/QtMainWindow.h 1171147
> /trunk/KDE/kdeedu/marble/src/QtMainWindow.cpp 1171147
> /trunk/KDE/kdeedu/marble/src/marble_part.h 1171147
> /trunk/KDE/kdeedu/marble/src/marble_part.cpp 1171147
>
> Diff: http://svn.reviewboard.kde.org/r/5250/diff
>
>
> Testing
> -------
>
> Qt and KDE version.
>
>
> Thanks,
>
> Dennis
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/marble-devel/attachments/20100904/9ea3062a/attachment.htm
More information about the Marble-devel
mailing list