[rekonq] Re: Review Request: Use of QSignalMapper for switchToTab() method in terms of code unification
Andrea Diamantini
adjam7 at gmail.com
Fri Apr 29 11:16:45 CEST 2011
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/101246/#review2959
-----------------------------------------------------------
src/mainwindow.cpp
<http://git.reviewboard.kde.org/r/101246/#comment2538>
Probably this is no more needed, then...
- Andrea
On April 28, 2011, 12:27 a.m., Thomas Murach wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/101246/
> -----------------------------------------------------------
>
> (Updated April 28, 2011, 12:27 a.m.)
>
>
> Review request for rekonq.
>
>
> Summary
> -------
>
> The principle of tab switching by shortcut (switchToTab()) is pretty much the same as loading favorites by shortcut (loadFavorite(const int index)), therefore a similar code should be used for both method invocations. As I was recommended to use QSignalMapper for loadFavorite(...), this class is now also used for switchToTab(...) as well.
> I couldn't figure out how to do this without having to instance another object of QSignalMapper class. Thus I have to use two seperate objects, which should be fine, I guess.
>
>
> Diffs
> -----
>
> src/mainview.cpp 19e4aae
> src/mainwindow.cpp 1ded983
> src/mainview.h d01bb5b
>
> Diff: http://git.reviewboard.kde.org/r/101246/diff
>
>
> Testing
> -------
>
>
> Thanks,
>
> Thomas
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/rekonq/attachments/20110429/e56c1889/attachment.htm
More information about the rekonq
mailing list