Review Request 121145: A button which appears on the side of a splitter handle and allows easy collapsing of the widget on the opposite side

Laurent Montel montel at kde.org
Mon Nov 17 15:54:54 UTC 2014



> On nov. 17, 2014, 3:24 après-midi, Christoph Feck wrote:
> > src/ksplittercollapserbutton.cpp, line 276
> > <https://git.reviewboard.kde.org/r/121145/diff/3/?file=328890#file328890line276>
> >
> >     Please pass at least a QStyleOption to pixelMetric(). For some styles, the metric depends on the font size, which might be different depending on which screen the widget is used.

It's just a button with a icon not text.
So why is it necessary ?


> On nov. 17, 2014, 3:24 après-midi, Christoph Feck wrote:
> > src/ksplittercollapserbutton.cpp, line 277
> > <https://git.reviewboard.kde.org/r/121145/diff/3/?file=328890#file328890line277>
> >
> >     Please also expandTo the app's globalStrut for any clickable region, especially since you are making it smaller than the scroll bar size.

You want that I increase size ?
I don't understand what you want that I do.


- Laurent


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/121145/#review70515
-----------------------------------------------------------


On nov. 17, 2014, 3:39 après-midi, Laurent Montel wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/121145/
> -----------------------------------------------------------
> 
> (Updated nov. 17, 2014, 3:39 après-midi)
> 
> 
> Review request for KDE Frameworks, Christoph Feck and David Faure.
> 
> 
> Repository: kwidgetsaddons
> 
> 
> Description
> -------
> 
> This new widget adds a button on splitter to collapse it.
> 
> 
> Diffs
> -----
> 
>   autotests/ksplittercollapserbuttontest.cpp PRE-CREATION 
>   autotests/ksplittercollapserbuttontest.h PRE-CREATION 
>   autotests/CMakeLists.txt 26c479f 
>   src/CMakeLists.txt 059d5d9 
>   src/ksplittercollapserbutton.h PRE-CREATION 
>   src/ksplittercollapserbutton.cpp PRE-CREATION 
>   tests/CMakeLists.txt 5086ac0 
>   tests/ksplittercollapserbuttongui_test.h PRE-CREATION 
>   tests/ksplittercollapserbuttongui_test.cpp PRE-CREATION 
> 
> Diff: https://git.reviewboard.kde.org/r/121145/diff/
> 
> 
> Testing
> -------
> 
> Created a lot of unittest.
> 
> I already done a lot of review code with David (thanks).
> 
> This widget can be show in kmail->compositor->snipset for example (in 4.14).
> 
> 
> Thanks,
> 
> Laurent Montel
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20141117/5b92e3a0/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list