[rekonq] Re: Review Request: The find bar is now closed with esc even with a shortcut override

Pierre Rossi pierre.rossi at gmail.com
Mon Feb 7 22:56:40 CET 2011


On Mon, Feb 7, 2011 at 22:52, Andrea Diamantini <adjam7 at gmail.com> wrote:

>    This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/100538/
>
> On February 7th, 2011, 9:21 p.m., *Pierre Rossi* wrote:
>
>   src/mainwindow.cpp<http://git.reviewboard.kde.org/r/100538/diff/5/?file=8552#file8552line1123> (Diff
> revision 5)
>
> bool MainWindow::event(QEvent *event)
>
>    1115
>
>         QKeyEvent *kev = static_cast<QKeyEvent *>(event);
>
>   What if it's a QShortcutEvent ?
>
>  I'm seeing in the docs that QEvent::ShortcutOverride && QEvent::KeyPress ARE QKeyEvent(s). So, the assertion and the static_cast are safe. Am I missing something?
>
>
>
My bad ! I never used it before and the name lead me to believe it was a
QShortcutEvent, you're absolutely right, then everything is fine for me too.
Just fix  the whitespace and "Ship It !"™

Cheers,
--
Pierre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/rekonq/attachments/20110207/ba8493ec/attachment-0001.htm 


More information about the rekonq mailing list