Merge lp:~mterry/unity8/oobe-timezone into lp:~lukas-kde/unity8/oobe
| Status: | Merged |
|---|---|
| Merged at revision: | 2118 |
| Proposed branch: | lp:~mterry/unity8/oobe-timezone |
| Merge into: | lp:~lukas-kde/unity8/oobe |
| Diff against target: |
665 lines (+193/-222) 11 files modified
CMakeLists.txt (+1/-0) debian/control (+1/-1) plugins/Wizard/CMakeLists.txt (+2/-4) plugins/Wizard/plugin.cpp (+0/-1) plugins/Wizard/timezonemodel.cpp (+152/-141) plugins/Wizard/timezonemodel.h (+22/-55) qml/Wizard/Pages.qml (+0/-11) qml/Wizard/Pages/10-welcome.qml (+0/-1) qml/Wizard/Pages/50-timezone.qml (+13/-3) tests/mocks/Wizard/CMakeLists.txt (+2/-4) tests/mocks/Wizard/mockplugin.cpp (+0/-1) |
| To merge this branch: | bzr merge lp:~mterry/unity8/oobe-timezone |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Lukáš Tinkl | 2016-02-29 | Approve on 2016-03-02 | |
|
Review via email:
|
|||
Description of the Change
Switch to libgeonames and add an ActivityIndicator.
Needs https:/
| Lukáš Tinkl (lukas-kde) wrote : | # |
| Michael Terry (mterry) wrote : | # |
The model itself is now the filter model, basically. The backing model is internal to libgeonames. And we just query it for filtered results. So our model now just stores the query results.
You say "filter on both at the same time". What do you mean by that?
I don't think your inline comments survived LP.
| Lukáš Tinkl (lukas-kde) wrote : | # |
Inline comments (re)added
- 2119. By Michael Terry on 2016-02-29
-
Sort default cities by name, not population
- 2120. By Michael Terry on 2016-03-01
-
Fix some review comments
| Michael Terry (mterry) wrote : | # |
> No need to cast the result to QVariant explicitely, also it should be sth like:
>
> QStringLiteral("%1, %2, %3).arg(
Fixed this (don't cast to QVariant, and use QStringLiteral). But I didn't use ::fromUtf8, because the QString constructor assumes Utf8 already.
> const QList<GeonamesCity *> &locations
Fixed.
> The default country should be the one from root.country (set in the first page).
In this MP, I've removed root.countryCode. I can add it back if you insist, but I didn't understand why it existed in the first place. The language page already saves the chosen language in the shared value i18n.language. We don't need to store country separately, right?
The less special cross-page variables, the better, in my book.
| Lukáš Tinkl (lukas-kde) wrote : | # |
> > No need to cast the result to QVariant explicitely, also it should be sth
> like:
> >
> > QStringLiteral("%1, %2, %3).arg(
>
> Fixed this (don't cast to QVariant, and use QStringLiteral). But I didn't use
> ::fromUtf8, because the QString constructor assumes Utf8 already.
>
> > const QList<GeonamesCity *> &locations
>
> Fixed.
>
> > The default country should be the one from root.country (set in the first
> page).
>
> In this MP, I've removed root.countryCode. I can add it back if you insist,
> but I didn't understand why it existed in the first place. The language page
> already saves the chosen language in the shared value i18n.language. We don't
> need to store country separately, right?
>
> The less special cross-page variables, the better, in my book.
Yup, looks good now
- 2121. By Michael Terry on 2016-03-02
-
Go back to sorting cities (when no search pattern entered) by population; Paty liked it

Nice work, one remark tho - why did you remove the filter model? We need to filter on both at the same time.
Otherwise a few small comments inline