> On May 12, 2015, 10:23 p.m., David Edmundson wrote:
> > applets/digital-clock/plugin/timezonemodel.h, line 34
> > <https://git.reviewboard.kde.org/r/123740/diff/1/?file=368406#file368406line34>
> >
> >     it's worth always having a NOTIFY, otherwise if in the future anything 
> > binds to filterString it'll not work properly.

Ok, I'll add one.


- Martin


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


On May 12, 2015, 10:05 p.m., Martin Klapetek wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/123740/
> -----------------------------------------------------------
> 
> (Updated May 12, 2015, 10:05 p.m.)
> 
> 
> Review request for Plasma.
> 
> 
> Bugs: 346681
>     https://bugs.kde.org/show_bug.cgi?id=346681
> 
> 
> Repository: plasma-workspace
> 
> 
> Description
> -------
> 
> Adds a simple QSortFilterProxyModel on top of TimeZonesModel and reimplements 
> filterAcceptsRow using QStringMatcher (supposedly faster according to qtdocs).
> 
> Sidenote: Originally I did try to implement this using the "filterCallback" 
> in PlasmaCore.SortFilterModel, but this worked very very wonkily. Basically 
> on "z" it would match correctly, on "zu" the list is suddenly empty. 
> Sometimes. No matter what I tried, I couldn't get that to work and work 
> reliably (it also requires changes in plasma-framework to call the 
> invalidate() after each char is typed in and a "get(int row)" function in the 
> TimeZoneModel). After spending manymany hours on this, I just went for this 
> simple 50 lines addition instead. And it just works (tm).
> 
> 
> Diffs
> -----
> 
>   applets/digital-clock/package/contents/ui/configTimeZones.qml ef04381 
>   applets/digital-clock/plugin/digitalclockplugin.cpp d4bfad4 
>   applets/digital-clock/plugin/timezonemodel.h 761d78d 
>   applets/digital-clock/plugin/timezonemodel.cpp 27698a3 
> 
> Diff: https://git.reviewboard.kde.org/r/123740/diff/
> 
> 
> Testing
> -------
> 
> Timezones are now correctly filtered by both city and region.
> 
> 
> Thanks,
> 
> Martin Klapetek
> 
>

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to