Review Request: Close the outline menu in case the parent moves

Milian Wolff mail at milianw.de
Sun Dec 23 16:57:15 UTC 2012



> On Dec. 23, 2012, 4:54 p.m., Milian Wolff wrote:
> > plugins/quickopen/quickopenplugin.cpp, line 90
> > <http://git.reviewboard.kde.org/r/107882/diff/1/?file=100850#file100850line90>
> >
> >     Could you please rewrite this as a loop?
> >     
> >     while (widget) {
> >       if (ancestor == widget->parentWidget()) {
> >         return true;
> >       }
> >       widget = widget->parentWidget();
> >     }
> >     return false;

and you could make the signature like this:

static bool isParentWidgetOf(const QWidget* widget, const QWidget* const ancestor)


- Milian


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/107882/#review23910
-----------------------------------------------------------


On Dec. 23, 2012, 3:25 p.m., Kevin Funk wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/107882/
> -----------------------------------------------------------
> 
> (Updated Dec. 23, 2012, 3:25 p.m.)
> 
> 
> Review request for KDevelop.
> 
> 
> Description
> -------
> 
> Close the outline menu in case the parent moves
> 
> Also works in case the outline toolbar is detached.
> 
> BUG: 260657
> 
> 
> Diffs
> -----
> 
>   plugins/quickopen/quickopenplugin.cpp edc743fa95a7a7edbb59d2076c76f470e12fa95a 
> 
> Diff: http://git.reviewboard.kde.org/r/107882/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Kevin Funk
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20121223/12375b89/attachment-0001.html>


More information about the KDevelop-devel mailing list