Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Timezone picking screen #7

PedroHLC opened this issue Oct 8, 2019 · 0 comments


Copy link

commented Oct 8, 2019

A new screen is required to select the new computer timezone (/etc/localtime), for that one may query the directory /usr/share/timezone recursively, listing only TZif2 files.

The user has to be able to select one and only one timezone from the list, a RadioButton in a ListView is recommended to achieve that.

It's not necessary to create a symlink in /etc/localtime as that will be appended to the setup script so the user can review it on later steps. So only saving which file was chosen is enough.

For layout/design inspirations, one can consult other screens like KeyboardPicker and LocaleSelect.

Estimated complexity: 100 lines of C code + 100 lines of QML.

Files that may be created:

  • src/lib/timezone.hpp
  • src/lib/timezone.cpp
  • qml/TimePicker.qml

Files that have to be modified:

  • src/main.cpp: Add include, instantiate new class, connect to a QML property.
  • qml/MainContainer.qml: Needs to instantiate the new component and assign an id to it.
  • Add new cpp and hpp to the build system.
@PedroHLC PedroHLC changed the title [Planning] Timezone picking screen [Feature] Timezone picking screen Oct 8, 2019
@PedroHLC PedroHLC referenced this issue Oct 8, 2019
10 of 21 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.