> On Sept. 1, 2012, 4:25 p.m., Frank Reininghaus wrote:
> > dolphin/src/kitemviews/kstandarditemlistwidget.cpp, line 990
> > <http://git.reviewboard.kde.org/r/106304/diff/1/?file=82643#file82643line990>
> >
> >     I would write ... - (additionalRolesCount - emptyRolesCount) here. That 
> > makes it more obvious what happens IMHO.

I'll fix this


> On Sept. 1, 2012, 4:25 p.m., Frank Reininghaus wrote:
> > dolphin/src/kitemviews/private/knepomukrolesprovider.cpp, line 112
> > <http://git.reviewboard.kde.org/r/106304/diff/1/?file=82644#file82644line112>
> >
> >     Hm, at first sight this looks like the loop does essentially nothing - 
> > if it finds an empty string in the hash, it puts an empty string with the 
> > same key into the hash. Am I overlooking something, or could the entire 
> > loop be removed?

That depends on whether we can guarantee that the values will always only be 
strings.  I assumed that since it uses a qvariant that this cannot be 
guaranteed, in which case the loop overwrites non-string values with an empty 
string.  If we can guarantee it will always be a string, then does it really 
need to be a qvariant?


- Todd


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


On Sept. 1, 2012, 12:17 p.m., Todd Jennings wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/106304/
> -----------------------------------------------------------
> 
> (Updated Sept. 1, 2012, 12:17 p.m.)
> 
> 
> Review request for Dolphin and KDE Base Apps.
> 
> 
> Description
> -------
> 
> Hide empty additional information lines in icons view mode.  Previously they 
> were "-", which took up a lot of space while providing no additional 
> information.
> 
> 
> This addresses bug 304752.
>     http://bugs.kde.org/show_bug.cgi?id=304752
> 
> 
> Diffs
> -----
> 
>   dolphin/src/kitemviews/kstandarditemlistwidget.cpp 
> 7ae7e2efcffc2f68c72a05cdbc3b29abc4c3aff4 
>   dolphin/src/kitemviews/private/knepomukrolesprovider.cpp 
> 0ae9b6bd3edf88ea48c40bb491ef9e57148b8062 
> 
> Diff: http://git.reviewboard.kde.org/r/106304/diff/
> 
> 
> Testing
> -------
> 
> Tested and it works
> 
> 
> Thanks,
> 
> Todd Jennings
> 
>

Reply via email to