Review Request 125521: Added KDropWidgetDecorator copied from DropWidget in kile sources. Relicensed from GPL 2+ to LGPL 2+ with author's permission.
Jeremy Whiting
jpwhiting at kde.org
Sun Oct 4 20:28:51 UTC 2015
> On Oct. 4, 2015, 2:22 p.m., David Edmundson wrote:
> > src/kdropwidgetdecorator.h, line 37
> > <https://git.reviewboard.kde.org/r/125521/diff/2/?file=409641#file409641line37>
> >
> > This isn't really a decorator pattern. It's just a widget.
> >
> > A decorator would probably take a QTabBar as an argument and then create and show this widget as needed depending on how many tabs that tabbar had.
Should we just rename it to KDropWidget? Or should I make it act like a decorator?
> On Oct. 4, 2015, 2:22 p.m., David Edmundson wrote:
> > src/kdropwidgetdecorator.cpp, line 41
> > <https://git.reviewboard.kde.org/r/125521/diff/2/?file=409642#file409642line41>
> >
> > if nothing is connected, or it's a queuedconnection then b is uninitialised.
> >
> > For what this is trying to do, a function pointer might work better.
Yeah, the reason it's set up this way is because it can be a drop in replacement for the old KDELibs4Support KTabWidget.
- Jeremy
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/125521/#review86352
-----------------------------------------------------------
On Oct. 4, 2015, 1:43 p.m., Jeremy Whiting wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/125521/
> -----------------------------------------------------------
>
> (Updated Oct. 4, 2015, 1:43 p.m.)
>
>
> Review request for KDE Frameworks and Christoph Feck.
>
>
> Repository: kwidgetsaddons
>
>
> Description
> -------
>
> Added KDropWidgetDecorator copied from DropWidget in kile sources. Relicensed from GPL 2+ to LGPL 2+ with author's permission.
>
>
> Diffs
> -----
>
> src/CMakeLists.txt e03e9bbd6d73811873b0a465f86da269f4295138
> src/kdropwidgetdecorator.h PRE-CREATION
> src/kdropwidgetdecorator.cpp PRE-CREATION
>
> Diff: https://git.reviewboard.kde.org/r/125521/diff/
>
>
> Testing
> -------
>
> It builds, the headers I expect are in the right places, etc. I just noticed I'm not exporting the class though, will fix that and reupload.
>
>
> Thanks,
>
> Jeremy Whiting
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20151004/c6fdce7a/attachment.html>
More information about the Kde-frameworks-devel
mailing list