Merge lp:~ken-vandine/ubuntu-system-settings/slotsLayout into lp:ubuntu-system-settings

Proposed by Ken VanDine
Status: Merged
Approved by: Jonas G. Drange
Approved revision: 1586
Merged at revision: 1678
Proposed branch: lp:~ken-vandine/ubuntu-system-settings/slotsLayout
Merge into: lp:ubuntu-system-settings
Prerequisite: lp:~phablet-team/ubuntu-system-settings/settings-listitems
Diff against target: 4642 lines (+1262/-994)
70 files modified
plugins/about/EntryComponent.qml (+15/-7)
plugins/about/PageComponent.qml (+40/-43)
plugins/about/settings-about.svg (+136/-35)
plugins/battery/PageComponent.qml (+28/-16)
plugins/bluetooth/DevicePage.qml (+26/-50)
plugins/bluetooth/PageComponent.qml (+34/-61)
plugins/cellular/Components/MultiSim.qml (+9/-13)
plugins/cellular/Components/Sim.qml (+6/-2)
plugins/cellular/Components/SingleSim.qml (+20/-25)
plugins/cellular/PageCarrierAndApn.qml (+7/-7)
plugins/cellular/PageCarriersAndApns.qml (+36/-53)
plugins/cellular/PageChooseApn.qml (+17/-50)
plugins/cellular/PageComponent.qml (+1/-2)
plugins/flight-mode/EntryComponent.qml (+26/-16)
plugins/flight-mode/flight-mode.settings (+1/-1)
plugins/hotspot/HotspotSetup.qml (+19/-44)
plugins/hotspot/PageComponent.qml (+8/-5)
plugins/language/settings-language.svg (+112/-75)
plugins/mouse/PrimaryButtonSelector.qml (+1/-2)
plugins/orientation-lock/EntryComponent.qml (+29/-20)
plugins/orientation-lock/orientation-lock.settings (+1/-1)
plugins/phone/CallForwarding.qml (+1/-2)
plugins/reset/EntryComponent.qml (+15/-7)
plugins/reset/PageComponent.qml (+55/-20)
plugins/security-privacy/AppAccess.qml (+11/-10)
plugins/security-privacy/AppAccessControl.qml (+7/-6)
plugins/security-privacy/Location.qml (+9/-9)
plugins/security-privacy/LockSecurity.qml (+6/-5)
plugins/security-privacy/PageComponent.qml (+28/-23)
plugins/security-privacy/PhoneLocking.qml (+12/-13)
plugins/security-privacy/SimPin.qml (+15/-14)
plugins/security-privacy/diagnostics/DiagnosticsCheckEntry.qml (+3/-3)
plugins/security-privacy/diagnostics/PageComponent.qml (+10/-11)
plugins/sound/PageComponent.qml (+58/-50)
plugins/system-update/EntryComponent.qml (+18/-9)
plugins/time-date/ChooseTimeZone.qml (+4/-3)
plugins/time-date/PageComponent.qml (+8/-8)
plugins/time-date/Scroller.qml (+6/-7)
plugins/time-date/TimePicker.qml (+1/-2)
plugins/time-date/settings-time-date.svg (+139/-55)
plugins/wifi/AccessPoint.qml (+11/-22)
plugins/wifi/DivMenuItem.qml (+3/-3)
plugins/wifi/FramedMenuItem.qml (+7/-3)
plugins/wifi/MenuItemFactory.qml (+4/-4)
plugins/wifi/NetworkDetails.qml (+26/-29)
plugins/wifi/NetworkDetailsBrief.qml (+18/-17)
plugins/wifi/OtherNetwork.qml (+11/-11)
plugins/wifi/PageComponent.qml (+9/-13)
plugins/wifi/PreviousNetworks.qml (+3/-4)
plugins/wifi/SectionMenuItem.qml (+15/-30)
plugins/wifi/StandardMenuItem.qml (+6/-28)
plugins/wifi/SwitchMenuItem.qml (+2/-2)
src/CMakeLists.txt (+1/-0)
src/SystemSettings/ListItems/Icon.qml (+1/-1)
src/SystemSettings/ListItems/IconProgression.qml (+1/-1)
src/SystemSettings/ListItems/SingleControl.qml (+1/-1)
src/SystemSettings/ListItems/SingleValue.qml (+1/-1)
src/SystemSettings/ListItems/SingleValueProgression.qml (+1/-1)
src/SystemSettings/ListItems/Standard.qml (+1/-1)
src/SystemSettings/ListItems/StandardProgression.qml (+1/-1)
src/SystemSettings/SettingsItemTitle.qml (+1/-1)
src/SystemSettings/qmldir (+1/-0)
src/qml/CategoryGrid.qml (+90/-0)
src/qml/CategorySection.qml (+33/-24)
src/qml/MainWindow.qml (+18/-4)
src/ui.qrc (+1/-0)
tests/autopilot/ubuntu_system_settings/__init__.py (+9/-2)
tests/autopilot/ubuntu_system_settings/tests/test_cellular.py (+3/-1)
tests/autopilot/ubuntu_system_settings/tests/test_search.py (+2/-1)
tests/autopilot/ubuntu_system_settings/tests/test_security.py (+3/-3)
To merge this branch: bzr merge lp:~ken-vandine/ubuntu-system-settings/slotsLayout
Reviewer Review Type Date Requested Status
system-apps-ci-bot continuous-integration Needs Fixing
Jonas G. Drange (community) Approve
PS Jenkins bot continuous-integration Pending
Review via email: mp+298654@code.launchpad.net

Commit message

Ported to use Slots layout and updated visuals

Description of the change

Ported to use Slots layout and updated visuals

To post a comment you must log in.
Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1563
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/26/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/785/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/785
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/729
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/729
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/729
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/721/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/721/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/721/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/721/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/721/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/721/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/721/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/721/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/721/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/26/rebuild

review: Needs Fixing (continuous-integration)
1564. By Ken VanDine

Better alignment of the searching text

1565. By Ken VanDine

fixed horizonal alignment of buttons

Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1564
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/27/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/798/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/798
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/733
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/733
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/733
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/725/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/725/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/725/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/725/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/725/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/725/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/725/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/725/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/725/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/27/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1565
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/28/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/801/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/801
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/735
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/735
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/735
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/727/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/727/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/727/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/727/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/727/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/727/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/727/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/727/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/727/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/28/rebuild

review: Needs Fixing (continuous-integration)
1566. By Ken VanDine

Fixed test

1567. By Ken VanDine

Fixed some layout issues

Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1567
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/29/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/811/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/811
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/746
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/746
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/746
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/741/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/741/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/741/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/741/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/741/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/741/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/741/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/741/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/741/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/29/rebuild

review: Needs Fixing (continuous-integration)
1568. By Ken VanDine

SettingsItemTitle no longer has showDivider property

Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1568
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/30/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/822/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/822
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/757
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/757
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/757
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/759/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/759/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/759/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/759/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/759/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/759/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/759/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/759/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/759/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/30/rebuild

review: Needs Fixing (continuous-integration)
1569. By Ken VanDine

Fixed imports for brightness plugin

1570. By Ken VanDine

Make the hotspot switch enabled property follow the item enabled property

1571. By Ken VanDine

Reintroduce the grid mainview leaving the search in the header

Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1571
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/32/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/860/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/860
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/780
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/780
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/780
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/782/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/782/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/782/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/782/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/782/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/782/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/782/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/782/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/782/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/32/rebuild

review: Needs Fixing (continuous-integration)
1572. By Ken VanDine

Put the checkboxes on the leading edge to match the visuals

Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1572
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/34/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/866/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/866
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/786
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/786
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/786
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/788/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/788/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/788/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/788/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/788/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/788/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/788/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/788/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/788/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/34/rebuild

review: Needs Fixing (continuous-integration)
1573. By Ken VanDine

Fixed _select_network

Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1573
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/37/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/909/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/909
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/819
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/819
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/819
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/825/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/825/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/825/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/825/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/825/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/825/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/825/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/825/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/825/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/37/rebuild

review: Needs Fixing (continuous-integration)
1574. By Ken VanDine

Import old ListItem as ListItems

Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1574
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/38/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/921/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/921
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/831
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/831
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/831
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/831/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/831/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/831/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/831/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/831/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/831/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/831/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/831/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/831/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/38/rebuild

review: Needs Fixing (continuous-integration)
1575. By Ken VanDine

Reverted slotslayout port of the keyboard panel

1576. By Ken VanDine

Reverted slotslayout port of the phone panel

Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1576
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/41/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/947/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/947
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/852
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/852
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/852
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/849/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/849/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/849/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/849/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/849/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/849/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/849/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/849/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/849/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/41/rebuild

review: Needs Fixing (continuous-integration)
1577. By Ken VanDine

Dropped showDivider

Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1577
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/42/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/951/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/951
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/856
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/856
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/856
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/853/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/853/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/853/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/853/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/853/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/853/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/853/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/853/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/853/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/42/rebuild

review: Needs Fixing (continuous-integration)
1578. By Ken VanDine

Ported the search tests to work with the search action in the header

1579. By Ken VanDine

Skip test_remove_apn until we can get the CPO for ListItem trigger actions

Revision history for this message
Jonas G. Drange (jonas-drange) wrote :

There's one crash, some wrong copy right dates and other minor issues. Other than that, it looks great!

review: Needs Fixing
Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1578
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/43/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/961/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/961
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/865
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/865
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/865
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/862/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/862/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/862/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/862/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/862/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/862/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/862/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/862/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/862/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/43/rebuild

review: Needs Fixing (continuous-integration)
1580. By Ken VanDine

Merged in fixes for bug 1596529 from mardy

1581. By Ken VanDine

Merged mardy's fixes

Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1579
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/44/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/962/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/962
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/866
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/866
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/866
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/863/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/863/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/863/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/863/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/863/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/863/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/863/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/863/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/863/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/44/rebuild

review: Needs Fixing (continuous-integration)
1582. By Ken VanDine

Use the SettingsListItems.Icon for app permissions

1583. By Ken VanDine

bring back the multivalue

1584. By Ken VanDine

Added spacing

1585. By Ken VanDine

Removed testing code

Revision history for this message
Ken VanDine (ken-vandine) wrote :

> There's one crash, some wrong copy right dates and other minor issues. Other
> than that, it looks great!

What's the crash? I think I corrected all the other issues.

1586. By Ken VanDine

Last Updated doesn't need progression

Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1581
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/45/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/963/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/963
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/867
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/867
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/867
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/864/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/864/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/864/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/864/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/864/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/864/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/864/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/864/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/864/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/45/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1586
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/46/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/964/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/964
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/868
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/868
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/868
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/865/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/865/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/865/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/865/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/865/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/865/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/865/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/865/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/865/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/46/rebuild

review: Needs Fixing (continuous-integration)
1587. By Ken VanDine

Updated copyright

Revision history for this message
Jonas G. Drange (jonas-drange) wrote :

LGTM!

review: Approve
Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1587
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/48/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/974/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/974
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/876
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/876
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/876
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/873/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/873/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/873/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/873/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/873/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/873/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/873/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/873/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/873/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/48/rebuild

review: Needs Fixing (continuous-integration)
1588. By Ken VanDine

merged trunk

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'plugins/about/EntryComponent.qml'
--- plugins/about/EntryComponent.qml 2016-03-22 17:19:41 +0000
+++ plugins/about/EntryComponent.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of system-settings2 * This file is part of system-settings
3 *3 *
4 * Copyright (C) 2013 Canonical Ltd.4 * Copyright (C) 2013-2016 Canonical Ltd.
5 *5 *
6 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>6 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
7 *7 *
@@ -20,14 +20,22 @@
2020
21import QtQuick 2.421import QtQuick 2.4
22import Ubuntu.Components 1.322import Ubuntu.Components 1.3
23import Ubuntu.Components.ListItems 1.3 as ListItem
2423
25ListItem.Standard {24ListItem {
26 id: root25 id: root
2726
28 objectName: "entryComponent-about"27 objectName: "entryComponent-about"
29 iconSource: Qt.resolvedUrl(model.icon)28 height: layout.height
30 iconFrame: false29
31 text: i18n.tr(model.displayName)30 ListItemLayout {
32 progression: true31 id: layout
32 title.text: i18n.tr(model.displayName)
33 Icon {
34 SlotsLayout.position: SlotsLayout.Leading;
35 SlotsLayout.padding { top: 0; bottom: 0 }
36 source: Qt.resolvedUrl(model.icon)
37 height: units.gu(5)
38 }
39 ProgressionSlot {}
40 }
33}41}
3442
=== modified file 'plugins/about/PageComponent.qml'
--- plugins/about/PageComponent.qml 2016-02-05 22:05:19 +0000
+++ plugins/about/PageComponent.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of system-settings2 * This file is part of system-settings
3 *3 *
4 * Copyright (C) 2013 Canonical Ltd.4 * Copyright (C) 2013-2016 Canonical Ltd.
5 *5 *
6 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>6 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
7 *7 *
@@ -21,8 +21,9 @@
21import QtQuick 2.421import QtQuick 2.4
22import QtSystemInfo 5.022import QtSystemInfo 5.0
23import SystemSettings 1.023import SystemSettings 1.0
24import SystemSettings.ListItems 1.0 as SettingsListItems
24import Ubuntu.Components 1.325import Ubuntu.Components 1.3
25import Ubuntu.Components.ListItems 1.3 as ListItem26import Ubuntu.Components.ListItems 1.3 as ListItems
26import Ubuntu.SystemSettings.StorageAbout 1.027import Ubuntu.SystemSettings.StorageAbout 1.0
27import Ubuntu.SystemSettings.Update 1.028import Ubuntu.SystemSettings.Update 1.0
28import Ubuntu.SystemSettings.Bluetooth 1.029import Ubuntu.SystemSettings.Bluetooth 1.0
@@ -70,31 +71,30 @@
70 anchors.left: parent.left71 anchors.left: parent.left
71 anchors.right: parent.right72 anchors.right: parent.right
7273
73 ListItem.Empty {74 Column {
74 height: ubuntuLabel.height + deviceLabel.height + units.gu(6)75 anchors.left: parent.left
7576 anchors.right: parent.right
76 Column {77 Label {
77 anchors.left: parent.left78 id: ubuntuLabel
78 anchors.right: parent.right79 anchors {
79 anchors.centerIn: parent80 left: parent.left
80 spacing: units.gu(2)81 right: parent.right
81 Label {82 }
82 id: ubuntuLabel83 height: contentHeight + units.gu(2)
83 anchors.horizontalCenter: parent.horizontalCenter84 horizontalAlignment: Text.AlignHCenter
84 text: ""85 verticalAlignment: Text.AlignVCenter
85 fontSize: "x-large"86 text: ""
86 }87 fontSize: "x-large"
87 Label {88 }
88 id: deviceLabel89 Label {
89 objectName: "deviceLabel"90 id: deviceLabel
90 anchors.horizontalCenter: parent.horizontalCenter91 objectName: "deviceLabel"
91 text: deviceInfos.manufacturer() ? deviceInfos.manufacturer() + " " + deviceInfos.model() : backendInfos.vendorString92 anchors.horizontalCenter: parent.horizontalCenter
92 }93 text: deviceInfos.manufacturer() ? deviceInfos.manufacturer() + " " + deviceInfos.model() : backendInfos.vendorString
93 }94 }
94 highlightWhenPressed: false
95 }95 }
9696
97 ListItem.SingleValue {97 SettingsListItems.SingleValue {
98 id: serialItem98 id: serialItem
99 objectName: "serialItem"99 objectName: "serialItem"
100 text: i18n.tr("Serial")100 text: i18n.tr("Serial")
@@ -102,7 +102,7 @@
102 visible: backendInfos.serialNumber102 visible: backendInfos.serialNumber
103 }103 }
104104
105 ListItem.SingleValue {105 SettingsListItems.SingleValue {
106 objectName: "imeiItem"106 objectName: "imeiItem"
107 property string imeiNumber107 property string imeiNumber
108 imeiNumber: deviceInfos.imei(0)108 imeiNumber: deviceInfos.imei(0)
@@ -112,7 +112,8 @@
112 visible: modemsSorted.length == 1112 visible: modemsSorted.length == 1
113 }113 }
114114
115 ListItem.MultiValue {115 /* We still need a new ListItem for MultiValue */
116 ListItems.MultiValue {
116 text: "IMEI"117 text: "IMEI"
117 objectName: "imeiItems"118 objectName: "imeiItems"
118 values: {119 values: {
@@ -126,7 +127,7 @@
126 visible: modemsSorted.length > 1127 visible: modemsSorted.length > 1
127 }128 }
128129
129 ListItem.SingleValue {130 SettingsListItems.SingleValue {
130 property string address: wlinfo.macAddress(NetworkInfo.WlanMode, 0)131 property string address: wlinfo.macAddress(NetworkInfo.WlanMode, 0)
131 text: i18n.tr("Wi-Fi address")132 text: i18n.tr("Wi-Fi address")
132 value: address ? address.toUpperCase() : ""133 value: address ? address.toUpperCase() : ""
@@ -134,7 +135,7 @@
134 showDivider: bthwaddr.visible135 showDivider: bthwaddr.visible
135 }136 }
136137
137 ListItem.SingleValue {138 SettingsListItems.SingleValue {
138 id: bthwaddr139 id: bthwaddr
139 text: i18n.tr("Bluetooth address")140 text: i18n.tr("Bluetooth address")
140 value: bluetooth.adapterAddress141 value: bluetooth.adapterAddress
@@ -142,15 +143,14 @@
142 showDivider: false143 showDivider: false
143 }144 }
144145
145 ListItem.Divider {}146 ListItems.Divider {}
146147
147 ListItem.SingleValue {148 SettingsListItems.SingleValueProgression {
148 id: storageItem149 id: storageItem
149 objectName: "storageItem"150 objectName: "storageItem"
150 text: i18n.tr("Storage")151 text: i18n.tr("Storage")
151 /* TRANSLATORS: that's the free disk space, indicated in the most appropriate storage unit */152 /* TRANSLATORS: that's the free disk space, indicated in the most appropriate storage unit */
152 value: i18n.tr("%1 free").arg(Utilities.formatSize(backendInfos.getFreeSpace("/home")))153 value: i18n.tr("%1 free").arg(Utilities.formatSize(backendInfos.getFreeSpace("/home")))
153 progression: true
154 onClicked: pageStack.push(Qt.resolvedUrl("Storage.qml"))154 onClicked: pageStack.push(Qt.resolvedUrl("Storage.qml"))
155 }155 }
156156
@@ -159,7 +159,7 @@
159 text: i18n.tr("Software:")159 text: i18n.tr("Software:")
160 }160 }
161161
162 ListItem.SingleValue {162 SettingsListItems.SingleValueProgression {
163 property string versionIdentifier: {163 property string versionIdentifier: {
164 var num = UpdateManager.currentBuildNumber;164 var num = UpdateManager.currentBuildNumber;
165 var ota = UpdateManager.detailedVersionDetails['tag'];165 var ota = UpdateManager.detailedVersionDetails['tag'];
@@ -171,21 +171,21 @@
171 value: "Ubuntu %1%2"171 value: "Ubuntu %1%2"
172 .arg(deviceInfos.version(DeviceInfo.Os))172 .arg(deviceInfos.version(DeviceInfo.Os))
173 .arg(versionIdentifier ? " (%1)".arg(versionIdentifier) : "")173 .arg(versionIdentifier ? " (%1)".arg(versionIdentifier) : "")
174 progression: true
175 onClicked: pageStack.push(Qt.resolvedUrl("Version.qml"), {174 onClicked: pageStack.push(Qt.resolvedUrl("Version.qml"), {
176 version: versionIdentifier175 version: versionIdentifier
177 })176 })
178 }177 }
179178
180 ListItem.SingleValue {179 SettingsListItems.SingleValue {
181 objectName: "lastUpdatedItem"180 objectName: "lastUpdatedItem"
182 text: i18n.tr("Last updated")181 text: i18n.tr("Last updated")
183 value: UpdateManager.lastUpdateDate && !isNaN(UpdateManager.lastUpdateDate) ?182 value: UpdateManager.lastUpdateDate && !isNaN(UpdateManager.lastUpdateDate) ?
184 Qt.formatDate(UpdateManager.lastUpdateDate) : i18n.tr("Never")183 Qt.formatDate(UpdateManager.lastUpdateDate) : i18n.tr("Never")
185 }184 }
186185
187 ListItem.SingleControl {186 SettingsListItems.SingleControl {
188 control: Button {187
188 Button {
189 objectName: "updateButton"189 objectName: "updateButton"
190 text: i18n.tr("Check for updates")190 text: i18n.tr("Check for updates")
191 width: parent.width - units.gu(4)191 width: parent.width - units.gu(4)
@@ -210,26 +210,23 @@
210 text: i18n.tr("Legal:")210 text: i18n.tr("Legal:")
211 }211 }
212212
213 ListItem.Standard {213 SettingsListItems.StandardProgression {
214 objectName: "licenseItem"214 objectName: "licenseItem"
215 text: i18n.tr("Software licenses")215 text: i18n.tr("Software licenses")
216 progression: true
217 onClicked: pageStack.push(Qt.resolvedUrl("Software.qml"))216 onClicked: pageStack.push(Qt.resolvedUrl("Software.qml"))
218 }217 }
219218
220 ListItem.Standard {219 SettingsListItems.StandardProgression {
221 property var regulatoryInfo:220 property var regulatoryInfo:
222 pluginManager.getByName("regulatory-information")221 pluginManager.getByName("regulatory-information")
223 text: i18n.tr("Regulatory info")222 text: i18n.tr("Regulatory info")
224 progression: true
225 visible: regulatoryInfo223 visible: regulatoryInfo
226 onClicked: pageStack.push(regulatoryInfo.pageComponent)224 onClicked: pageStack.push(regulatoryInfo.pageComponent)
227 }225 }
228226
229 ListItem.SingleValue {227 SettingsListItems.SingleValueProgression {
230 objectName: "devmodeItem"228 objectName: "devmodeItem"
231 text: i18n.tr("Developer mode")229 text: i18n.tr("Developer mode")
232 progression: true
233 onClicked: pageStack.push(Qt.resolvedUrl("DevMode.qml"))230 onClicked: pageStack.push(Qt.resolvedUrl("DevMode.qml"))
234 }231 }
235 }232 }
236233
=== modified file 'plugins/about/settings-about.svg'
--- plugins/about/settings-about.svg 2013-06-18 19:17:18 +0000
+++ plugins/about/settings-about.svg 2016-07-22 14:36:34 +0000
@@ -9,14 +9,15 @@
9 xmlns="http://www.w3.org/2000/svg"9 xmlns="http://www.w3.org/2000/svg"
10 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"10 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"11 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
12 width="90"12 width="96"
13 height="90"13 height="96"
14 id="svg3180"14 id="svg4874"
15 version="1.1"15 version="1.1"
16 inkscape:version="0.48+devel r12322"16 inkscape:version="0.91+devel r"
17 sodipodi:docname="setting-about.svg">17 viewBox="0 0 96 96.000001"
18 sodipodi:docname="info.svg">
18 <defs19 <defs
19 id="defs3182" />20 id="defs4876" />
20 <sodipodi:namedview21 <sodipodi:namedview
21 id="base"22 id="base"
22 pagecolor="#ffffff"23 pagecolor="#ffffff"
@@ -24,18 +25,94 @@
24 borderopacity="1.0"25 borderopacity="1.0"
25 inkscape:pageopacity="0.0"26 inkscape:pageopacity="0.0"
26 inkscape:pageshadow="2"27 inkscape:pageshadow="2"
27 inkscape:zoom="7.9580786"28 inkscape:zoom="8.7812488"
28 inkscape:cx="25.634328"29 inkscape:cx="5.3352279"
29 inkscape:cy="36.849347"30 inkscape:cy="44.122411"
30 inkscape:document-units="px"31 inkscape:document-units="px"
31 inkscape:current-layer="layer1"32 inkscape:current-layer="g4780"
32 showgrid="false"33 showgrid="true"
34 showborder="true"
33 fit-margin-top="0"35 fit-margin-top="0"
34 fit-margin-left="0"36 fit-margin-left="0"
35 fit-margin-right="0"37 fit-margin-right="0"
36 fit-margin-bottom="0" />38 fit-margin-bottom="0"
39 inkscape:snap-bbox="true"
40 inkscape:bbox-paths="true"
41 inkscape:bbox-nodes="true"
42 inkscape:snap-bbox-edge-midpoints="true"
43 inkscape:snap-bbox-midpoints="true"
44 inkscape:object-paths="true"
45 inkscape:snap-intersection-paths="true"
46 inkscape:object-nodes="true"
47 inkscape:snap-smooth-nodes="true"
48 inkscape:snap-midpoints="true"
49 inkscape:snap-object-midpoints="true"
50 inkscape:snap-center="true"
51 showguides="true"
52 inkscape:guide-bbox="true">
53 <inkscape:grid
54 type="xygrid"
55 id="grid5451"
56 empspacing="8" />
57 <sodipodi:guide
58 orientation="1,0"
59 position="8,-8.0000001"
60 id="guide4063" />
61 <sodipodi:guide
62 orientation="1,0"
63 position="4,-8.0000001"
64 id="guide4065" />
65 <sodipodi:guide
66 orientation="0,1"
67 position="-8,88.000001"
68 id="guide4067" />
69 <sodipodi:guide
70 orientation="0,1"
71 position="-8,92.000001"
72 id="guide4069" />
73 <sodipodi:guide
74 orientation="0,1"
75 position="104,4"
76 id="guide4071" />
77 <sodipodi:guide
78 orientation="0,1"
79 position="-5,8.0000001"
80 id="guide4073" />
81 <sodipodi:guide
82 orientation="1,0"
83 position="92,-8.0000001"
84 id="guide4075" />
85 <sodipodi:guide
86 orientation="1,0"
87 position="88,-8.0000001"
88 id="guide4077" />
89 <sodipodi:guide
90 orientation="0,1"
91 position="-8,84.000001"
92 id="guide4074" />
93 <sodipodi:guide
94 orientation="1,0"
95 position="12,-8.0000001"
96 id="guide4076" />
97 <sodipodi:guide
98 orientation="0,1"
99 position="-5,12"
100 id="guide4078" />
101 <sodipodi:guide
102 orientation="1,0"
103 position="84,-9.0000001"
104 id="guide4080" />
105 <sodipodi:guide
106 position="48,-8.0000001"
107 orientation="1,0"
108 id="guide4170" />
109 <sodipodi:guide
110 position="-8,48"
111 orientation="0,1"
112 id="guide4172" />
113 </sodipodi:namedview>
37 <metadata114 <metadata
38 id="metadata3185">115 id="metadata4879">
39 <rdf:RDF>116 <rdf:RDF>
40 <cc:Work117 <cc:Work
41 rdf:about="">118 rdf:about="">
@@ -50,29 +127,53 @@
50 inkscape:label="Layer 1"127 inkscape:label="Layer 1"
51 inkscape:groupmode="layer"128 inkscape:groupmode="layer"
52 id="layer1"129 id="layer1"
53 transform="translate(456.42857,-738.79075)">130 transform="translate(67.857146,-78.50504)">
54 <g131 <g
55 transform="translate(-2219.4286,118.57139)"132 transform="matrix(0,-1,-1,0,373.50506,516.50504)"
56 id="g3270">133 id="g4845"
57 <rect134 style="display:inline">
58 style="color:#000000;fill:none;stroke:none;stroke-width:7.5;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"135 <g
59 id="rect3272"136 inkscape:export-ydpi="90"
60 width="90"137 inkscape:export-xdpi="90"
61 height="90"138 inkscape:export-filename="next01.png"
62 x="1763"139 transform="matrix(-0.9996045,0,0,1,575.94296,-611.00001)"
63 y="620.21936" />140 id="g4778"
64 <rect141 inkscape:label="Layer 1">
65 style="color:#000000;fill:none;stroke:none;stroke-width:6;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"142 <g
66 id="rect3274"143 transform="matrix(-1,0,0,1,575.99999,611)"
67 width="90"144 id="g4780"
68 height="90"145 style="display:inline">
69 x="1763"146 <rect
70 y="620.21936" />147 style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:none;stroke:none;stroke-width:4;marker:none;enable-background:accumulate"
71 <path148 id="rect4782"
72 inkscape:connector-curvature="0"149 width="96.037987"
73 style="fill:#808080;fill-opacity:1"150 height="96"
74 d="m 1808,635.21936 c -16.5688,0 -30,13.4314 -30,30 0,16.5675 13.4311,30 30,30 16.5686,0 30,-13.4325 30,-30 C 1838,648.65076 1824.5688,635.21936 1808,635.21936 z m 9.9375,8.3438 c 0.7694,-0.055 1.5628,0.1167 2.2813,0.5312 1.9159,1.1067 2.5752,3.553 1.4687,5.4688 -1.1053,1.9157 -3.553,2.575 -5.4687,1.4687 -1.9146,-1.1053 -2.5739,-3.554 -1.4688,-5.4687 C 1815.4418,644.36576 1816.6552,643.65406 1817.9375,643.56316 z m -9.9375,4.25 c 1.6106,0 3.176,0.2477 4.6562,0.6562 0.2611,1.6096 1.2269,3.0898 2.75,3.9688 1.5205,0.8764 3.2896,0.9503 4.8126,0.375 2.9615,2.9125 4.8754,6.8692 5.1562,11.2812 l -5.7188,0.094 c -0.5263,-5.9763 -5.5443,-10.6563 -11.6562,-10.6563 -1.7607,0 -3.4091,0.397 -4.9062,1.0937 l -2.7813,-5 C 1802.6368,648.47516 1805.2312,647.81316 1808,647.81316 z m -9.625,2.9374 2.9062,4.9063 c -3.0083,2.1176 -4.9687,5.6043 -4.9687,9.5625 0,3.9583 1.9604,7.4462 4.9687,9.5625 l -2.9062,4.9063 c -3.5057,-2.3425 -6.1366,-5.9003 -7.2188,-10.0938 1.2644,-1.0317 2.0938,-2.6155 2.0938,-4.375 0,-1.7605 -0.8294,-3.312 -2.0938,-4.3438 C 1792.2398,656.68336 1794.8707,653.09306 1798.375,650.75056 z m -10.75,10.4688 c 2.2119,0 4,1.787 4,4 0,2.2119 -1.7881,4 -4,4 -2.2132,0 -4,-1.7881 -4,-4 C 1783.625,663.00636 1785.4118,661.21936 1787.625,661.21936 z m 32.0312,5.0312 5.7188,0.094 c -0.2808,4.412 -2.1947,8.3687 -5.1562,11.2812 -1.523,-0.5753 -3.291,-0.4716 -4.8126,0.4063 -1.5227,0.8805 -2.4889,2.3592 -2.75,3.9687 -1.48,0.4098 -3.0456,0.625 -4.6562,0.625 -2.769,0 -5.3632,-0.6606 -7.6875,-1.8124 l 2.7813,-4.9688 c 1.497,0.6966 3.1455,1.0938 4.9062,1.0938 C 1814.1121,676.93806 1819.1311,672.22846 1819.6562,666.25056 z m -1.9374,12.6563 c 1.5484,-0.1918 3.1398,0.5329 3.9687,1.9687 1.1065,1.916 0.4468,4.3635 -1.4687,5.4688 -1.9158,1.1065 -4.3635,0.447 -5.4688,-1.4688 -1.1067,-1.9147 -0.447,-4.3622 1.4688,-5.4687 C 1816.6973,679.13056 1817.2026,678.97076 1817.7188,678.90686 Z"151 x="-438.00244"
75 id="path3" />152 y="345.36221"
153 transform="scale(-1,1)" />
154 <path
155 style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:none;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:4.00079107;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
156 d="m 432,393.36133 c 0,23.17268 -18.83506,42 -42.01562,42 -23.18057,0 -42.01758,-18.82732 -42.01758,-42 0,-23.17268 18.83701,-42 42.01758,-42 23.18056,0 42.01562,18.82732 42.01562,42 z m -4.00195,0 c 0,-21.00964 -16.99444,-37.99805 -38.01367,-37.99805 -21.01924,0 -38.01563,16.98841 -38.01563,37.99805 0,21.00963 16.99639,38 38.01563,38 21.01923,0 38.01367,-16.99037 38.01367,-38 z"
157 id="path4116"
158 inkscape:connector-curvature="0" />
159 <rect
160 style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:1;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:6.00118685;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate"
161 id="rect4173"
162 width="5.9999971"
163 height="32.012661"
164 x="-396.36221"
165 y="-397.98663"
166 transform="matrix(0,-1,-1,0,0,0)" />
167 <ellipse
168 style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:1;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:6;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate"
169 id="path4175"
170 cx="-393.36221"
171 cy="-408.99097"
172 transform="matrix(0,-1,-1,0,0,0)"
173 rx="5.0000143"
174 ry="5.0019927" />
175 </g>
176 </g>
76 </g>177 </g>
77 </g>178 </g>
78</svg>179</svg>
79180
=== modified file 'plugins/battery/PageComponent.qml'
--- plugins/battery/PageComponent.qml 2016-05-16 15:03:57 +0000
+++ plugins/battery/PageComponent.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of system-settings2 * This file is part of system-settings
3 *3 *
4 * Copyright (C) 2013 Canonical Ltd.4 * Copyright (C) 2013-2016 Canonical Ltd.
5 *5 *
6 * Contact: Sebastien Bacher <sebastien.bacher@canonical.com>6 * Contact: Sebastien Bacher <sebastien.bacher@canonical.com>
7 *7 *
@@ -23,8 +23,8 @@
23import QtQuick 2.423import QtQuick 2.4
24import QtSystemInfo 5.024import QtSystemInfo 5.0
25import SystemSettings 1.025import SystemSettings 1.0
26import SystemSettings.ListItems 1.0 as SettingsListItems
26import Ubuntu.Components 1.327import Ubuntu.Components 1.3
27import Ubuntu.Components.ListItems 1.3 as ListItem
28import Ubuntu.SystemSettings.Battery 1.028import Ubuntu.SystemSettings.Battery 1.0
29import Ubuntu.SystemSettings.SecurityPrivacy 1.029import Ubuntu.SystemSettings.SecurityPrivacy 1.0
30import Ubuntu.Settings.Components 0.1 as USC30import Ubuntu.Settings.Components 0.1 as USC
@@ -99,7 +99,7 @@
99 anchors.left: parent.left99 anchors.left: parent.left
100 anchors.right: parent.right100 anchors.right: parent.right
101101
102 ListItem.SingleValue {102 SettingsListItems.SingleValue {
103 id: chargingLevel103 id: chargingLevel
104 text: i18n.tr("Charge level")104 text: i18n.tr("Charge level")
105 value: {105 value: {
@@ -262,7 +262,7 @@
262 }262 }
263 }263 }
264264
265 ListItem.SingleValue {265 SettingsListItems.SingleValue {
266 id: chargingEntry266 id: chargingEntry
267 text: {267 text: {
268 if (indicatorPower.deviceState === "charging")268 if (indicatorPower.deviceState === "charging")
@@ -271,6 +271,8 @@
271 return i18n.tr("Last full charge")271 return i18n.tr("Last full charge")
272 else if (indicatorPower.deviceState === "fully-charged")272 else if (indicatorPower.deviceState === "fully-charged")
273 return i18n.tr("Fully charged")273 return i18n.tr("Fully charged")
274 else
275 return ""
274 }276 }
275277
276 value: {278 value: {
@@ -290,14 +292,13 @@
290 text: i18n.tr("Ways to reduce battery use:")292 text: i18n.tr("Ways to reduce battery use:")
291 }293 }
292294
293 ListItem.Standard {295 SettingsListItems.StandardProgression {
294 text: i18n.tr("Display brightness")296 text: i18n.tr("Display brightness")
295 progression: true
296 onClicked: pageStack.push(297 onClicked: pageStack.push(
297 pluginManager.getByName("brightness").pageComponent)298 pluginManager.getByName("brightness").pageComponent)
298 }299 }
299300
300 ListItem.SingleValue {301 SettingsListItems.SingleValueProgression {
301 property bool lockOnSuspend:302 property bool lockOnSuspend:
302 securityPrivacy.securityType !==303 securityPrivacy.securityType !==
303 UbuntuSecurityPrivacyPanel.Swipe304 UbuntuSecurityPrivacyPanel.Swipe
@@ -307,10 +308,10 @@
307 var timeout = powerSettings.activityTimeout308 var timeout = powerSettings.activityTimeout
308 return timeout == 0 ?309 return timeout == 0 ?
309 i18n.tr("Never") :310 i18n.tr("Never") :
310 (timeout < 60) ?311 (timeout < 60) ?
311 // TRANSLATORS: %1 is the number of seconds312 // TRANSLATORS: %1 is the number of seconds
312 i18n.tr("After %1 second",313 i18n.tr("After %1 second",
313 "After %1 seconds",314 "After %1 seconds",
314 timeout).arg(timeout) :315 timeout).arg(timeout) :
315 // TRANSLATORS: %1 is the number of minutes316 // TRANSLATORS: %1 is the number of minutes
316 i18n.tr("After %1 minute",317 i18n.tr("After %1 minute",
@@ -327,7 +328,14 @@
327 i18n.tr("Never")328 i18n.tr("Never")
328 }329 }
329 }330 }
330 progression: true331
332 Icon {
333 width: units.gu(2.5)
334 height: width
335 name: "network-secure"
336 SlotsLayout.position: SlotsLayout.First
337 }
338
331 onClicked: pageStack.push(339 onClicked: pageStack.push(
332 Qt.resolvedUrl("SleepValues.qml"),340 Qt.resolvedUrl("SleepValues.qml"),
333 { title: text, lockOnSuspend: lockOnSuspend })341 { title: text, lockOnSuspend: lockOnSuspend })
@@ -342,10 +350,12 @@
342 Component.onCompleted: start()350 Component.onCompleted: start()
343 }351 }
344352
345 ListItem.Standard {353 SettingsListItems.Icon {
346 // TRANSLATORS: “Wi-Fi used for hotspot” is hidden.354 // TRANSLATORS: “Wi-Fi used for hotspot” is hidden.
347 text: showAllUI ? i18n.tr("Wi-Fi used for hotspot") : i18n.tr("Wi-Fi")355 text: showAllUI ? i18n.tr("Wi-Fi used for hotspot") : i18n.tr("Wi-Fi")
348 control: Loader {356 iconName: "wifi-high"
357
358 Loader {
349 active: networkActionGroup.enabled.state != null359 active: networkActionGroup.enabled.state != null
350 sourceComponent: Switch {360 sourceComponent: Switch {
351 id: wifiSwitch361 id: wifiSwitch
@@ -376,10 +386,12 @@
376 Component.onCompleted: start()386 Component.onCompleted: start()
377 }387 }
378388
379 ListItem.Standard {389 SettingsListItems.Icon {
380 id: btListItem390 id: btListItem
381 text: i18n.tr("Bluetooth")391 text: i18n.tr("Bluetooth")
382 control: Loader {392 iconName: "bluetooth-active"
393
394 Loader {
383 active: bluetoothActionGroup.enabled.state != null395 active: bluetoothActionGroup.enabled.state != null
384 sourceComponent: Switch {396 sourceComponent: Switch {
385 id: btSwitch397 id: btSwitch
386398
=== modified file 'plugins/bluetooth/DevicePage.qml'
--- plugins/bluetooth/DevicePage.qml 2016-03-09 16:06:14 +0000
+++ plugins/bluetooth/DevicePage.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of ubuntu-system-settings2 * This file is part of ubuntu-system-settings
3 *3 *
4 * Copyright (C) 2013-2015 Canonical Ltd.4 * Copyright (C) 2013-2016 Canonical Ltd.
5 *5 *
6 * Contact: Charles Kerr <charles.kerr@canonical.com>6 * Contact: Charles Kerr <charles.kerr@canonical.com>
7 *7 *
@@ -21,9 +21,9 @@
21import QMenuModel 0.121import QMenuModel 0.1
22import QtQuick 2.022import QtQuick 2.0
23import SystemSettings 1.023import SystemSettings 1.0
24import SystemSettings.ListItems 1.0 as SettingsListItems
24import Ubuntu.Components 1.325import Ubuntu.Components 1.3
25import Ubuntu.Components.Popups 1.326import Ubuntu.Components.Popups 1.3
26import Ubuntu.Components.ListItems 1.3 as ListItem
27import Ubuntu.SystemSettings.Bluetooth 1.027import Ubuntu.SystemSettings.Bluetooth 1.0
2828
29Page {29Page {
@@ -97,64 +97,36 @@
97 right: parent.right97 right: parent.right
98 }98 }
9999
100 ListItem.SingleValue {100 SettingsListItems.SingleValue {
101 text: i18n.tr("Name")101 text: i18n.tr("Name")
102 value: backend.selectedDevice &&102 value: backend.selectedDevice &&
103 backend.selectedDevice.name.length > 0 ?103 backend.selectedDevice.name.length > 0 ?
104 backend.selectedDevice.name :104 backend.selectedDevice.name :
105 i18n.tr("None")105 i18n.tr("None")
106 }106 }
107 ListItem.Standard {107 SettingsListItems.SingleValue {
108 Rectangle {108 text: i18n.tr("Type")
109 color: "transparent"109 value: getTypeString(backend.selectedDevice ? backend.selectedDevice.type : Device.OTHER)
110 anchors.fill: parent110 Image {
111 anchors.topMargin: units.gu(1)111 height: units.gu(4)
112 anchors.leftMargin: units.gu(2)112 width: units.gu(4)
113 anchors.rightMargin: units.gu(2)113 source: backend.selectedDevice ? backend.selectedDevice.iconName : ""
114114 visible: source
115 Label {115 SlotsLayout.position: SlotsLayout.Trailing-1
116 anchors {
117 top: parent.top
118 left: parent.left
119 topMargin: units.gu(1)
120 }
121 height: units.gu(3)
122 text: i18n.tr("Type")
123 }
124 Image {
125 anchors {
126 right: deviceType.left
127 rightMargin: units.gu(1)
128 }
129 height: units.gu(4)
130 width: units.gu(4)
131 source: backend.selectedDevice ? backend.selectedDevice.iconName : ""
132 }
133 Label {
134 id: deviceType
135 anchors {
136 top: parent.top
137 right: parent.right
138 topMargin: units.gu(1)
139 }
140 height: units.gu(3)
141 text: getTypeString(backend.selectedDevice ? backend.selectedDevice.type : Device.OTHER)
142 }
143 }116 }
144 }117 }
145 ListItem.SingleValue {118 SettingsListItems.SingleValue {
146 text: i18n.tr("Status")119 text: i18n.tr("Status")
147 value: getStatusString(backend.selectedDevice ? backend.selectedDevice.connection : Device.Disconnected)120 value: getStatusString(backend.selectedDevice ? backend.selectedDevice.connection : Device.Disconnected)
148 }121 }
149 ListItem.SingleValue {122 SettingsListItems.SingleValue {
150 text: i18n.tr("Signal Strength")123 text: i18n.tr("Signal Strength")
151 value: getSignalString(backend.selectedDevice ? backend.selectedDevice.strength : Device.None)124 value: getSignalString(backend.selectedDevice ? backend.selectedDevice.strength : Device.None)
152 }125 }
153 ListItem.Standard {126 SettingsListItems.Standard {
154 id: trustedCheck127 id: trustedCheck
155 text: i18n.tr("Connect automatically when detected:")128 text: i18n.tr("Connect automatically when detected:")
156 visible: backend.selectedDevice.paired129 CheckBox {
157 control: CheckBox {
158 property bool serverChecked: backend.selectedDevice ? backend.selectedDevice.trusted : false130 property bool serverChecked: backend.selectedDevice ? backend.selectedDevice.trusted : false
159 onServerCheckedChanged: checked = serverChecked131 onServerCheckedChanged: checked = serverChecked
160 Component.onCompleted: checked = serverChecked132 Component.onCompleted: checked = serverChecked
@@ -165,10 +137,12 @@
165 }137 }
166 }138 }
167 }139 }
168 ListItem.SingleControl {140
169 control: Button {141 SettingsListItems.SingleControl {
142 Button {
143 anchors.centerIn: parent
144 width: parent.width - units.gu(8)
170 text: backend.selectedDevice && (backend.selectedDevice.connection == Device.Connected || backend.selectedDevice.connection == Device.Connecting) ? i18n.tr("Disconnect") : i18n.tr("Connect")145 text: backend.selectedDevice && (backend.selectedDevice.connection == Device.Connected || backend.selectedDevice.connection == Device.Connecting) ? i18n.tr("Disconnect") : i18n.tr("Connect")
171 width: parent.width - units.gu(8)
172 onClicked: {146 onClicked: {
173 if (backend.selectedDevice147 if (backend.selectedDevice
174 && (backend.selectedDevice.connection == Device.Connected148 && (backend.selectedDevice.connection == Device.Connected
@@ -185,10 +159,12 @@
185 enabled: backend.selectedDevice && backend.powered ? true : false159 enabled: backend.selectedDevice && backend.powered ? true : false
186 }160 }
187 }161 }
188 ListItem.SingleControl {162
189 control: Button {163 SettingsListItems.SingleControl {
164 Button {
165 anchors.centerIn: parent
166 width: parent.width - units.gu(8)
190 text: i18n.tr("Forget this device")167 text: i18n.tr("Forget this device")
191 width: parent.width - units.gu(8)
192 onClicked: {168 onClicked: {
193 backend.removeDevice();169 backend.removeDevice();
194 backend.resetSelectedDevice();170 backend.resetSelectedDevice();
195171
=== modified file 'plugins/bluetooth/PageComponent.qml'
--- plugins/bluetooth/PageComponent.qml 2016-03-10 07:28:42 +0000
+++ plugins/bluetooth/PageComponent.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of ubuntu-system-settings2 * This file is part of ubuntu-system-settings
3 *3 *
4 * Copyright (C) 2013-2015 Canonical Ltd.4 * Copyright (C) 2013-2016 Canonical Ltd.
5 *5 *
6 * Contact: Charles Kerr <charles.kerr@canonical.com>6 * Contact: Charles Kerr <charles.kerr@canonical.com>
7 *7 *
@@ -21,9 +21,9 @@
21import QMenuModel 0.121import QMenuModel 0.1
22import QtQuick 2.422import QtQuick 2.4
23import SystemSettings 1.023import SystemSettings 1.0
24import SystemSettings.ListItems 1.0 as SettingsListItems
24import Ubuntu.Components 1.325import Ubuntu.Components 1.3
25import Ubuntu.Components.Popups 1.326import Ubuntu.Components.Popups 1.3
26import Ubuntu.Components.ListItems 1.3 as ListItem
27import Ubuntu.SystemSettings.Bluetooth 1.027import Ubuntu.SystemSettings.Bluetooth 1.0
28import Ubuntu.Settings.Components 0.1 as USC28import Ubuntu.Settings.Components 0.1 as USC
2929
@@ -229,9 +229,9 @@
229 Component.onCompleted: start()229 Component.onCompleted: start()
230 }230 }
231231
232 ListItem.Standard {232 SettingsListItems.Standard {
233 text: i18n.tr("Bluetooth")233 text: i18n.tr("Bluetooth")
234 control: Switch {234 Switch {
235 id: btSwitch235 id: btSwitch
236 property bool serverChecked: bluetoothActionGroup.enabled.state != undefined ? bluetoothActionGroup.enabled.state : false236 property bool serverChecked: bluetoothActionGroup.enabled.state != undefined ? bluetoothActionGroup.enabled.state : false
237 USC.ServerPropertySynchroniser {237 USC.ServerPropertySynchroniser {
@@ -246,54 +246,28 @@
246 }246 }
247247
248 // Discoverability248 // Discoverability
249 ListItem.Standard {249 SettingsListItems.SingleValue {
250 text: backend.discoverable ? i18n.tr("Discoverable") : i18n.tr("Not discoverable")
251 value: backend.discoverable ? backend.adapterName() : ""
250 enabled: bluetoothActionGroup.enabled252 enabled: bluetoothActionGroup.enabled
251 showDivider: false253 showDivider: false
252254
253 Rectangle {255 Label {
254 color: "transparent"256 anchors {
255 anchors.fill: parent257 verticalCenter: parent.verticalCenter
256 anchors.topMargin: units.gu(1)258 right: parent.right
257 anchors.leftMargin: units.gu(2)259 rightMargin: units.gu(2)
258 anchors.rightMargin: units.gu(2)260 }
259261 color: "darkgrey"
260 Label {262 visible: backend.powered && !backend.discoverable
261 anchors {263 text: i18n.tr("Searching…")
262 top: parent.top264 fontSize: "x-small"
263 left: parent.left265 SlotsLayout.position: SlotsLayout.Trailing
264 topMargin: units.gu(1)266 SlotsLayout.overrideVerticalPositioning: true
265 }
266 height: units.gu(3)
267 text: backend.discoverable ? i18n.tr("Discoverable") : i18n.tr("Not discoverable")
268 }
269
270 Label {
271 anchors {
272 top: parent.top
273 right: parent.right
274 topMargin: units.gu(1)
275 }
276 height: units.gu(3)
277 text: backend.discoverable ? backend.adapterName : ""
278 color: "darkgrey"
279 visible: backend.discoverable
280 enabled: false
281 }
282
283 Label {
284 anchors {
285 top: parent.top
286 right: parent.right
287 topMargin: units.gu(1)
288 }
289 color: "darkgrey"
290 visible: backend.powered && !backend.discoverable
291 text: i18n.tr("Searching…")
292 }
293 }267 }
294 }268 }
295269
296 ListItem.Standard {270 SettingsItemTitle {
297 id: connectedHeader271 id: connectedHeader
298 text: i18n.tr("Connected devices:")272 text: i18n.tr("Connected devices:")
299273
@@ -313,11 +287,13 @@
313 Repeater {287 Repeater {
314 id: connectedRepeater288 id: connectedRepeater
315 model: backend.connectedDevices289 model: backend.connectedDevices
316 delegate: ListItem.Standard {290 delegate: SettingsListItems.IconProgression {
317 iconSource: iconPath291 iconSource: iconPath
318 iconFrame: false
319 text: getDisplayName(type, displayName)292 text: getDisplayName(type, displayName)
320 control: ActivityIndicator {293 layout.subtitle.text: connection == Device.Connecting ? i18n.tr("Connecting…") : i18n.tr("Connected")
294 layout.subtitle.color: UbuntuColors.green
295
296 ActivityIndicator {
321 visible: connection == Device.Connecting297 visible: connection == Device.Connecting
322 running: visible298 running: visible
323 }299 }
@@ -325,7 +301,6 @@
325 backend.setSelectedDevice(addressName);301 backend.setSelectedDevice(addressName);
326 pageStack.push(Qt.resolvedUrl("DevicePage.qml"), {backend: backend, root: root});302 pageStack.push(Qt.resolvedUrl("DevicePage.qml"), {backend: backend, root: root});
327 }303 }
328 progression: true
329 }304 }
330 }305 }
331 }306 }
@@ -334,15 +309,18 @@
334 id: disconnectedHeader309 id: disconnectedHeader
335 text: connectedList.visible ? i18n.tr("Connect another device:") : i18n.tr("Connect a device:")310 text: connectedList.visible ? i18n.tr("Connect another device:") : i18n.tr("Connect a device:")
336 enabled: bluetoothActionGroup.enabled.state != undefined ? bluetoothActionGroup.enabled.state : false311 enabled: bluetoothActionGroup.enabled.state != undefined ? bluetoothActionGroup.enabled.state : false
337 control: Label {312 Label {
338 anchors {313 anchors {
339 top: parent.top314 verticalCenter: parent.verticalCenter
340 right: parent.right315 right: parent.right
341 topMargin: units.gu(1)316 rightMargin: units.gu(2)
342 }317 }
343 color: "darkgrey"318 color: "darkgrey"
344 visible: backend.powered && backend.discovering319 visible: backend.powered && backend.discovering
345 text: i18n.tr("Searching…")320 text: i18n.tr("Searching…")
321 fontSize: "x-small"
322 SlotsLayout.position: SlotsLayout.Trailing
323 SlotsLayout.overrideVerticalPositioning: true
346 }324 }
347 }325 }
348326
@@ -358,23 +336,20 @@
358 Repeater {336 Repeater {
359 id: disconnectedRepeater337 id: disconnectedRepeater
360 model: backend.disconnectedDevices338 model: backend.disconnectedDevices
361 delegate: ListItem.Standard {339 delegate: SettingsListItems.IconProgression {
362 iconSource: iconPath340 iconSource: iconPath
363 iconFrame: false
364 text: getDisplayName(type, displayName)341 text: getDisplayName(type, displayName)
365 onClicked: {342 onClicked: {
366 backend.setSelectedDevice(addressName);343 backend.setSelectedDevice(addressName);
367 pageStack.push(Qt.resolvedUrl("DevicePage.qml"), {backend: backend, root: root});344 pageStack.push(Qt.resolvedUrl("DevicePage.qml"), {backend: backend, root: root});
368 }345 }
369 progression: true
370 }346 }
371 }347 }
372 }348 }
373 ListItem.Standard {349 SettingsListItems.Standard {
374 id: disconnectedNone350 id: disconnectedNone
375 text: i18n.tr("None detected")351 text: i18n.tr("None detected")
376 visible: !disconnectedList.visible && disconnectedHeader.visible352 visible: !disconnectedList.visible && disconnectedHeader.visible
377 enabled: false
378 }353 }
379354
380 SettingsItemTitle {355 SettingsItemTitle {
@@ -395,15 +370,13 @@
395 Repeater {370 Repeater {
396 id: autoconnectRepeater371 id: autoconnectRepeater
397 model: backend.autoconnectDevices372 model: backend.autoconnectDevices
398 delegate: ListItem.Standard {373 delegate: SettingsListItems.IconProgression {
399 iconSource: iconPath374 iconSource: iconPath
400 iconFrame: false
401 text: getDisplayName(type, displayName)375 text: getDisplayName(type, displayName)
402 onClicked: {376 onClicked: {
403 backend.setSelectedDevice(addressName);377 backend.setSelectedDevice(addressName);
404 pageStack.push(Qt.resolvedUrl("DevicePage.qml"), {backend: backend, root: root});378 pageStack.push(Qt.resolvedUrl("DevicePage.qml"), {backend: backend, root: root});
405 }379 }
406 progression: true
407 }380 }
408 }381 }
409 }382 }
410383
=== modified file 'plugins/cellular/Components/MultiSim.qml'
--- plugins/cellular/Components/MultiSim.qml 2016-03-16 13:44:42 +0000
+++ plugins/cellular/Components/MultiSim.qml 2016-07-22 14:36:34 +0000
@@ -1,5 +1,5 @@
1/*1/*
2 * Copyright (C) 2014 Canonical Ltd2 * Copyright (C) 2014-2016 Canonical Ltd
3 *3 *
4 * This program is free software: you can redistribute it and/or modify4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 3 as5 * it under the terms of the GNU General Public License version 3 as
@@ -20,9 +20,10 @@
20import QtQuick 2.420import QtQuick 2.4
21import GSettings 1.021import GSettings 1.0
22import SystemSettings 1.022import SystemSettings 1.0
23import SystemSettings.ListItems 1.0 as SettingsListItems
23import Ubuntu.Components 1.324import Ubuntu.Components 1.3
24import Ubuntu.Components.ListItems 1.3 as ListItem
25import Ubuntu.SystemSettings.Cellular 1.025import Ubuntu.SystemSettings.Cellular 1.0
26import Ubuntu.Components.ListItems 1.3 as ListItems
2627
27/* This is a temporary solution to the issue of Hotspots failing on mako. If28/* This is a temporary solution to the issue of Hotspots failing on mako. If
28the device is mako, we hide the hotspot entry. Will be removed once lp:143459129the device is mako, we hide the hotspot entry. Will be removed once lp:1434591
@@ -54,20 +55,17 @@
54 anchors { left: parent.left; right: parent.right }55 anchors { left: parent.left; right: parent.right }
55 }56 }
5657
57 ListItem.Standard {58 SettingsListItems.StandardProgression {
58 id: dataUsage59 id: dataUsage
59 text: i18n.tr("Data usage statistics")60 text: i18n.tr("Data usage statistics")
60 progression: true
61 visible: showAllUI61 visible: showAllUI
62 }62 }
6363
64 ListItem.Divider {}64 SettingsListItems.SingleValueProgression {
65
66 ListItem.SingleValue {
67 text: i18n.tr("Carriers")65 text: i18n.tr("Carriers")
68 id: chooseCarrier66 id: chooseCarrier
69 objectName: "carrierApnEntry"67 objectName: "carrierApnEntry"
70 progression: enabled68 progressionVisible: enabled
71 showDivider: false69 showDivider: false
72 onClicked: {70 onClicked: {
73 pageStack.push(Qt.resolvedUrl("../PageCarriersAndApns.qml"), {71 pageStack.push(Qt.resolvedUrl("../PageCarriersAndApns.qml"), {
@@ -76,26 +74,24 @@
76 }74 }
77 }75 }
7876
79 ListItem.Divider {}
80
81 SimEditor {77 SimEditor {
82 anchors { left: parent.left; right: parent.right }78 anchors { left: parent.left; right: parent.right }
83 }79 }
8480
85 ListItem.Divider {}81 ListItems.Divider {}
8682
87 DefaultSim {83 DefaultSim {
88 anchors { left: parent.left; right: parent.right }84 anchors { left: parent.left; right: parent.right }
89 }85 }
9086
91 ListItem.Divider {}87 ListItems.Divider {}
9288
93 SettingsItemTitle { text: i18n.tr("Connection type:") }89 SettingsItemTitle { text: i18n.tr("Connection type:") }
9490
95 Repeater {91 Repeater {
96 model: sims92 model: sims
9793
98 ListItem.ItemSelector {94 ListItems.ItemSelector {
99 id: radio95 id: radio
100 property var sim: modelData96 property var sim: modelData
10197
10298
=== modified file 'plugins/cellular/Components/Sim.qml'
--- plugins/cellular/Components/Sim.qml 2015-08-10 13:31:45 +0000
+++ plugins/cellular/Components/Sim.qml 2016-07-22 14:36:34 +0000
@@ -1,5 +1,5 @@
1/*1/*
2 * Copyright (C) 2014 Canonical Ltd2 * Copyright (C) 2014-2016 Canonical Ltd
3 *3 *
4 * This program is free software: you can redistribute it and/or modify4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 3 as5 * it under the terms of the GNU General Public License version 3 as
@@ -37,6 +37,10 @@
37 return name + (number ? " (" + number + ")" : "");37 return name + (number ? " (" + number + ")" : "");
38 }38 }
3939
40 function getTechString () {
41 return techToString(radioSettings.technologyPreference);
42 }
43
40 function techToString (tech) {44 function techToString (tech) {
41 var strings = {45 var strings = {
42 'gsm': i18n.tr("2G only (saves battery)"),46 'gsm': i18n.tr("2G only (saves battery)"),
@@ -44,7 +48,7 @@
44 'lte': i18n.tr("2G/3G/4G (faster)")48 'lte': i18n.tr("2G/3G/4G (faster)")
45 };49 };
46 strings['umts_enable'] = strings['umts'];50 strings['umts_enable'] = strings['umts'];
47 return strings[tech];51 return strings[tech] || "";
48 }52 }
4953
50 // adds umts_enable to an copy of model54 // adds umts_enable to an copy of model
5155
=== modified file 'plugins/cellular/Components/SingleSim.qml'
--- plugins/cellular/Components/SingleSim.qml 2016-06-22 16:40:40 +0000
+++ plugins/cellular/Components/SingleSim.qml 2016-07-22 14:36:34 +0000
@@ -1,5 +1,5 @@
1/*1/*
2 * Copyright (C) 2014 Canonical Ltd2 * Copyright (C) 2014-2016 Canonical Ltd
3 *3 *
4 * This program is free software: you can redistribute it and/or modify4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 3 as5 * it under the terms of the GNU General Public License version 3 as
@@ -20,8 +20,8 @@
20import QtQuick 2.420import QtQuick 2.4
21import SystemSettings 1.021import SystemSettings 1.0
22import Ubuntu.Connectivity 1.022import Ubuntu.Connectivity 1.0
23import SystemSettings.ListItems 1.0 as SettingsListItems
23import Ubuntu.Components 1.324import Ubuntu.Components 1.3
24import Ubuntu.Components.ListItems 1.3 as ListItem
2525
26Column {26Column {
2727
@@ -64,10 +64,10 @@
64 sort.property: "Index"64 sort.property: "Index"
65 sort.order: Qt.AscendingOrder65 sort.order: Qt.AscendingOrder
66 }66 }
6767 SettingsListItems.Standard {
68 ListItem.Standard {68 id: selector
69 text: i18n.tr("Cellular data")69 text: i18n.tr("Cellular data:")
70 control: Switch {70 Switch {
71 id: dataSwitch71 id: dataSwitch
72 objectName: "data"72 objectName: "data"
73 checked: Connectivity.mobileDataEnabled73 checked: Connectivity.mobileDataEnabled
@@ -86,9 +86,11 @@
86 }86 }
87 }87 }
88 }88 }
89 ListItem.Standard {89
90 SettingsListItems.Standard {
91 id: dataRoamingItem
90 text: i18n.tr("Data roaming")92 text: i18n.tr("Data roaming")
91 control: Switch {93 Switch {
92 id: roaming94 id: roaming
93 objectName: "roaming"95 objectName: "roaming"
94 enabled: singlesim.currentSim !== null && dataSwitch.checked96 enabled: singlesim.currentSim !== null && dataSwitch.checked
@@ -99,31 +101,24 @@
99 }101 }
100 }102 }
101103
102 ListItem.Standard {104 SettingsListItems.StandardProgression{
103 text: i18n.tr("Data usage statistics")105 text: i18n.tr("Data usage statistics")
104 progression: true
105 visible: showAllUI106 visible: showAllUI
106 }107 }
107108
108 ListItem.Divider {109 SettingsListItems.SingleValueProgression {
109 visible: radio.visible110 text: i18n.tr("Carrier & APN");
110 }
111
112 RadioSingleSim {
113 id: radio
114 anchors { left: parent.left; right: parent.right }
115 visible: radio.enabled
116 }
117
118 ListItem.Divider {}
119
120 ListItem.SingleValue {
121 text: i18n.tr("Carrier");
122 id: chooseCarrier111 id: chooseCarrier
123 objectName: "carrierApnEntry"112 objectName: "carrierApnEntry"
124 progression: enabled113 value: sim.netReg.name || ""
125 onClicked: pageStack.push(Qt.resolvedUrl("../PageCarrierAndApn.qml"), {114 onClicked: pageStack.push(Qt.resolvedUrl("../PageCarrierAndApn.qml"), {
126 sim: sim115 sim: sim
127 })116 })
128 }117 }
118
119 RadioSingleSim {
120 id: radio
121 anchors { left: parent.left; right: parent.right }
122 visible: radio.enabled
123 }
129}124}
130125
=== modified file 'plugins/cellular/PageCarrierAndApn.qml'
--- plugins/cellular/PageCarrierAndApn.qml 2015-08-10 13:31:45 +0000
+++ plugins/cellular/PageCarrierAndApn.qml 2016-07-22 14:36:34 +0000
@@ -1,5 +1,5 @@
1/*1/*
2 * Copyright (C) 2014 Canonical Ltd2 * Copyright (C) 2014-2016 Canonical Ltd
3 *3 *
4 * This program is free software: you can redistribute it and/or modify4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 3 as5 * it under the terms of the GNU General Public License version 3 as
@@ -19,12 +19,12 @@
19*/19*/
20import QtQuick 2.420import QtQuick 2.4
21import SystemSettings 1.021import SystemSettings 1.0
22import SystemSettings.ListItems 1.0 as SettingsListItems
22import Ubuntu.Components 1.323import Ubuntu.Components 1.3
23import Ubuntu.Components.ListItems 1.3 as ListItem
2424
25ItemPage {25ItemPage {
26 id: root26 id: root
27 title: i18n.tr("Carrier")27 title: i18n.tr("Carrier & APN")
28 objectName: "carrierApnPage"28 objectName: "carrierApnPage"
29 flickable: null29 flickable: null
3030
@@ -40,23 +40,23 @@
40 anchors.left: parent.left40 anchors.left: parent.left
41 anchors.right: parent.right41 anchors.right: parent.right
4242
43 ListItem.SingleValue {43 SettingsListItems.SingleValueProgression {
44 text: i18n.tr("Carrier")44 text: i18n.tr("Carrier")
45 objectName: "carrier"45 objectName: "carrier"
46 value: sim.netReg.name ? sim.netReg.name : i18n.tr("None")46 value: sim.netReg.name ? sim.netReg.name : i18n.tr("None")
47 enabled: (sim.netReg.status !== "") &&47 enabled: (sim.netReg.status !== "") &&
48 (sim.netReg.mode !== "auto-only")48 (sim.netReg.mode !== "auto-only")
49 progression: enabled49 progressionVisible: enabled
50 onClicked: pageStack.push(Qt.resolvedUrl("PageChooseCarrier.qml"), {50 onClicked: pageStack.push(Qt.resolvedUrl("PageChooseCarrier.qml"), {
51 sim: sim,51 sim: sim,
52 title: i18n.tr("Carrier")52 title: i18n.tr("Carrier")
53 })53 })
54 }54 }
5555
56 ListItem.Standard {56 SettingsListItems.SingleValueProgression {
57 text: i18n.tr("APN")57 text: i18n.tr("APN")
58 objectName: "apn"58 objectName: "apn"
59 progression: enabled59 progressionVisible: enabled
60 onClicked: pageStack.push(Qt.resolvedUrl("PageChooseApn.qml"), {60 onClicked: pageStack.push(Qt.resolvedUrl("PageChooseApn.qml"), {
61 sim: sim61 sim: sim
62 })62 })
6363
=== modified file 'plugins/cellular/PageCarriersAndApns.qml'
--- plugins/cellular/PageCarriersAndApns.qml 2015-08-10 13:31:45 +0000
+++ plugins/cellular/PageCarriersAndApns.qml 2016-07-22 14:36:34 +0000
@@ -1,5 +1,5 @@
1/*1/*
2 * Copyright (C) 2014 Canonical Ltd2 * Copyright (C) 2014-2016 Canonical Ltd
3 *3 *
4 * This program is free software: you can redistribute it and/or modify4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 3 as5 * it under the terms of the GNU General Public License version 3 as
@@ -19,12 +19,12 @@
19*/19*/
20import QtQuick 2.420import QtQuick 2.4
21import SystemSettings 1.021import SystemSettings 1.0
22import SystemSettings.ListItems 1.0 as SettingsListItems
22import Ubuntu.Components 1.323import Ubuntu.Components 1.3
23import Ubuntu.Components.ListItems 1.3 as ListItem
2424
25ItemPage {25ItemPage {
26 id: root26 id: root
27 title: i18n.tr("Carriers")27 title: i18n.tr("Carriers & APNs")
28 objectName: "carrierApnPage"28 objectName: "carrierApnPage"
29 flickable: null29 flickable: null
3030
@@ -40,56 +40,39 @@
40 anchors.left: parent.left40 anchors.left: parent.left
41 anchors.right: parent.right41 anchors.right: parent.right
4242
43 SettingsItemTitle {43 Repeater {
44 text: sims[0].title44 model: sims
45 }45
4646 Column {
47 ListItem.SingleValue {47 anchors.left: parent.left
48 text: i18n.tr("Carrier")48 anchors.right: parent.right
49 objectName: sims[0].path + "_carriers"49
50 value: sims[0].netReg.name ? sims[0].netReg.name :50 SettingsItemTitle {
51 i18n.tr("None")51 text: sims[index].title
52 enabled: (sims[0].netReg.status !== "") &&52 }
53 (sims[0].netReg.mode !== "auto-only")53
54 progression: enabled54 SettingsListItems.SingleValueProgression {
55 onClicked: pageStack.push(Qt.resolvedUrl("PageChooseCarrier.qml"), {55 text: i18n.tr("Carrier")
56 sim: sims[0],56 objectName: sims[index].path + "_carriers"
57 title: sims[0].title57 value: sims[index].netReg.name ? sims[index].netReg.name :
58 })58 i18n.tr("None")
59 }59 enabled: (sims[index].netReg.status !== "") &&
6060 (sims[index].netReg.mode !== "auto-only")
61 ListItem.Standard {61 progressionVisible: enabled
62 text: i18n.tr("APN")62 onClicked: pageStack.push(Qt.resolvedUrl("PageChooseCarrier.qml"), {
63 progression: enabled63 sim: sims[index],
64 onClicked: pageStack.push(Qt.resolvedUrl("PageChooseApn.qml"), {64 title: sims[index].title
65 sim: sims[0]65 })
66 })66 }
67 }67
6868 SettingsListItems.StandardProgression {
69 SettingsItemTitle {69 text: i18n.tr("APN")
70 text: sims[1].title70 progressionVisible: enabled
71 }71 onClicked: pageStack.push(Qt.resolvedUrl("PageChooseApn.qml"), {
7272 sim: sims[index]
73 ListItem.SingleValue {73 })
74 text: i18n.tr("Carrier")74 }
75 objectName: sims[1].path + "_carriers"75 }
76 value: sims[1].netReg.name ? sims[1].netReg.name :
77 i18n.tr("None")
78 enabled: (sims[1].netReg.status !== "") &&
79 (sims[1].netReg.mode !== "auto-only")
80 progression: enabled
81 onClicked: pageStack.push(Qt.resolvedUrl("PageChooseCarrier.qml"), {
82 sim: sims[1],
83 title: sims[1].title
84 })
85 }
86
87 ListItem.Standard {
88 text: i18n.tr("APN")
89 progression: enabled
90 onClicked: pageStack.push(Qt.resolvedUrl("PageChooseApn.qml"), {
91 sim: sims[1]
92 })
93 }76 }
94 }77 }
95 }78 }
9679
=== modified file 'plugins/cellular/PageChooseApn.qml'
--- plugins/cellular/PageChooseApn.qml 2016-05-17 23:28:16 +0000
+++ plugins/cellular/PageChooseApn.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of system-settings2 * This file is part of system-settings
3 *3 *
4 * Copyright (C) 2014 Canonical Ltd.4 * Copyright (C) 2014-2016 Canonical Ltd.
5 *5 *
6 * Contact: Pat McGowan <pat.mcgowan@canonical.com>,6 * Contact: Pat McGowan <pat.mcgowan@canonical.com>,
7 * Jonas G. Drange <jonas.drange@canonical.com>7 * Jonas G. Drange <jonas.drange@canonical.com>
@@ -25,9 +25,9 @@
2525
26import QtQuick 2.426import QtQuick 2.4
27import SystemSettings 1.027import SystemSettings 1.0
28import SystemSettings.ListItems 1.0 as SettingsListItems
28import Ubuntu.Components 1.329import Ubuntu.Components 1.3
29import Ubuntu.Components.Popups 1.330import Ubuntu.Components.Popups 1.3
30import Ubuntu.Components.ListItems 1.3 as ListItem
31import MeeGo.QOfono 0.231import MeeGo.QOfono 0.2
32import Ubuntu.SystemSettings.Cellular 1.032import Ubuntu.SystemSettings.Cellular 1.0
33import "apn_manager.js" as Manager33import "apn_manager.js" as Manager
@@ -289,16 +289,22 @@
289 Component {289 Component {
290 id: apnDelegate290 id: apnDelegate
291291
292 ListItem.Standard {292 SettingsListItems.StandardProgression {
293 id: apnListItem293 id: apnListItem
294 property alias text: apnItemName.text294 text: qml.name
295 layout.subtitle.text: qml.typeString
295 objectName: "edit_" + qml.name296 objectName: "edit_" + qml.name
296 height: units.gu(6)297
297 removable: true298 leadingActions: ListItemActions {
298 confirmRemoval: true299 actions: [
299 progression: true300 Action {
300301 iconName: "delete"
301 onItemRemoved: Manager.removeContext(path);302 name: i18n.tr("Delete")
303 onTriggered: Manager.removeContext(path)
304 }
305 ]
306 }
307
302 onClicked: {308 onClicked: {
303 editor = pageStack.push(pageApnEditor, {309 editor = pageStack.push(pageApnEditor, {
304 contextQML: qml,310 contextQML: qml,
@@ -308,7 +314,7 @@
308 });314 });
309 }315 }
310316
311 control: CheckBox {317 CheckBox {
312 id: check318 id: check
313 objectName: qml.name + "_preferred"319 objectName: qml.name + "_preferred"
314 property bool serverChecked: qml && qml.preferred320 property bool serverChecked: qml && qml.preferred
@@ -316,45 +322,6 @@
316 Component.onCompleted: checked = serverChecked322 Component.onCompleted: checked = serverChecked
317 onTriggered: Manager.setPreferred.call(this, qml, checked)323 onTriggered: Manager.setPreferred.call(this, qml, checked)
318 }324 }
319
320 Item {
321 anchors {
322 top: parent.top
323 bottom: parent.bottom
324 left: parent.left
325 leftMargin: units.gu(2)
326 right: parent.right
327 }
328
329 Label {
330 id: apnItemName
331 anchors {
332 topMargin: units.gu(1)
333 top: parent.top
334 left: parent.left
335 right: parent.right
336 }
337
338 text: qml.name
339 elide: Text.ElideRight
340 opacity: apnListItem.enabled ? 1.0 : 0.5
341 }
342
343 Label {
344 id: apnItemType
345 anchors {
346 left: parent.left
347 right: parent.right
348 top: apnItemName.bottom
349 }
350
351 text: qml.typeString
352 color: Theme.palette.normal.backgroundText
353 fontSize: "small"
354 wrapMode: Text.Wrap
355 maximumLineCount: 5
356 }
357 }
358 }325 }
359 }326 }
360327
361328
=== modified file 'plugins/cellular/PageComponent.qml'
--- plugins/cellular/PageComponent.qml 2015-08-13 13:13:57 +0000
+++ plugins/cellular/PageComponent.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of system-settings2 * This file is part of system-settings
3 *3 *
4 * Copyright (C) 2013 Canonical Ltd.4 * Copyright (C) 2013-2016 Canonical Ltd.
5 *5 *
6 * Contact: Iain Lane <iain.lane@canonical.com>6 * Contact: Iain Lane <iain.lane@canonical.com>
7 *7 *
@@ -22,7 +22,6 @@
22import SystemSettings 1.022import SystemSettings 1.0
23import Ubuntu.SystemSettings.Cellular 1.023import Ubuntu.SystemSettings.Cellular 1.0
24import Ubuntu.Components 1.324import Ubuntu.Components 1.3
25import Ubuntu.Components.ListItems 1.3 as ListItem
26import MeeGo.QOfono 0.225import MeeGo.QOfono 0.2
27import QMenuModel 0.126import QMenuModel 0.1
28import "Components" as LocalComponents27import "Components" as LocalComponents
2928
=== modified file 'plugins/flight-mode/EntryComponent.qml'
--- plugins/flight-mode/EntryComponent.qml 2015-08-10 13:31:45 +0000
+++ plugins/flight-mode/EntryComponent.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of system-settings2 * This file is part of system-settings
3 *3 *
4 * Copyright (C) 2013 Canonical Ltd.4 * Copyright (C) 2013-2016 Canonical Ltd.
5 *5 *
6 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>6 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
7 *7 *
@@ -20,25 +20,35 @@
2020
21import QtQuick 2.421import QtQuick 2.4
22import Ubuntu.Components 1.322import Ubuntu.Components 1.3
23import Ubuntu.Components.ListItems 1.3 as ListItem
24import Ubuntu.SystemSettings.FlightMode 1.0 as FlightMode23import Ubuntu.SystemSettings.FlightMode 1.0 as FlightMode
25import Ubuntu.Settings.Components 0.1 as USC24import Ubuntu.Settings.Components 0.1 as USC
2625
27ListItem.Standard {26ListItem {
28 id: root27 id: root
29 iconSource: model.icon28 height: layout.height
30 iconFrame: false29
31 text: i18n.tr(model.displayName)30 ListItemLayout {
32 control: Switch {31 id: layout
33 id: switchItem32 title.text: i18n.tr(model.displayName)
3433
35 USC.ServerPropertySynchroniser {34 Switch {
36 userTarget: switchItem35 id: switchItem
37 userProperty: "checked"36
38 serverTarget: helper37 SlotsLayout.position: SlotsLayout.Trailing
39 serverProperty: "inFlightMode"38 USC.ServerPropertySynchroniser {
4039 userTarget: switchItem
41 onSyncTriggered: helper.setFlightMode(value)40 userProperty: "checked"
41 serverTarget: helper
42 serverProperty: "inFlightMode"
43
44 onSyncTriggered: helper.setFlightMode(value)
45 }
46 }
47 Icon {
48 SlotsLayout.position: SlotsLayout.Leading;
49 SlotsLayout.padding { top: 0; bottom: 0 }
50 source: model.icon
51 height: units.gu(5)
42 }52 }
43 }53 }
4454
4555
=== modified file 'plugins/flight-mode/flight-mode.settings'
--- plugins/flight-mode/flight-mode.settings 2014-09-24 17:10:03 +0000
+++ plugins/flight-mode/flight-mode.settings 2016-07-22 14:36:34 +0000
@@ -3,7 +3,7 @@
3 "icon": "airplane-mode",3 "icon": "airplane-mode",
4 "translations": "ubuntu-system-settings",4 "translations": "ubuntu-system-settings",
5 "category": "uncategorized-top",5 "category": "uncategorized-top",
6 "priority": 1,6 "priority": 0,
7 "keywords": [7 "keywords": [
8 "flight",8 "flight",
9 "plane",9 "plane",
1010
=== modified file 'plugins/hotspot/HotspotSetup.qml'
--- plugins/hotspot/HotspotSetup.qml 2016-03-11 15:07:14 +0000
+++ plugins/hotspot/HotspotSetup.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of system-settings2 * This file is part of system-settings
3 *3 *
4 * Copyright (C) 2014 Canonical Ltd.4 * Copyright (C) 2014-2016 Canonical Ltd.
5 *5 *
6 * This program is free software: you can redistribute it and/or modify it6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 3, as published7 * under the terms of the GNU General Public License version 3, as published
@@ -19,8 +19,9 @@
19import QtQuick 2.419import QtQuick 2.4
20import QtQuick.Layouts 1.120import QtQuick.Layouts 1.1
21import SystemSettings 1.021import SystemSettings 1.0
22import SystemSettings.ListItems 1.0 as SettingsListItems
22import Ubuntu.Components 1.323import Ubuntu.Components 1.3
23import Ubuntu.Components.ListItems 1.3 as ListItem24import Ubuntu.Components.ListItems 1.3 as ListItems
24import Ubuntu.Components.Popups 1.325import Ubuntu.Components.Popups 1.3
25import Ubuntu.Connectivity 1.026import Ubuntu.Connectivity 1.0
26import Ubuntu.SystemSettings.Cellular 1.027import Ubuntu.SystemSettings.Cellular 1.0
@@ -187,35 +188,23 @@
187 width: parent.width188 width: parent.width
188 }189 }
189190
190 ListItem.Empty {191 SettingsListItems.Standard {
191 id: passwordRequired192 id: passwordRequired
192 onClicked: passwordRequiredToggle.trigger()193 text: i18n.tr("Require a password (recommended):")
194 showDivider: false
195 layout.padding.leading: 0
196 SlotsLayout.padding.leading: 0
193197
194 CheckBox {198 CheckBox {
195 id: passwordRequiredToggle199 id: passwordRequiredToggle
196 objectName: "passwordRequiredToggle"200 objectName: "passwordRequiredToggle"
197 checked: Connectivity.hotspotAuth === "wpa-psk"201 checked: Connectivity.hotspotAuth === "wpa-psk"
198 anchors {202 SlotsLayout.position: SlotsLayout.First
199 left: parent.left203 SlotsLayout.padding.leading: 0
200 verticalCenter: parent.verticalCenter
201 }
202 // FIXME: Workaround for lp:1415023204 // FIXME: Workaround for lp:1415023
203 activeFocusOnPress: false205 activeFocusOnPress: false
204 }206 }
205207 onClicked: passwordRequiredToggle.trigger()
206 Label {
207 id: passwordRequiredLabel
208 anchors {
209 left: passwordRequiredToggle.right
210 leftMargin: units.gu(1)
211 right: parent.right
212 verticalCenter: parent.verticalCenter
213 }
214
215 // FIXME: Workaround for label not wrapping (lp:1442851)
216 wrapMode: Text.Wrap
217 text: i18n.tr("Require a password (recommended):")
218 }
219 }208 }
220209
221 TextField {210 TextField {
@@ -229,39 +218,25 @@
229 width: parent.width218 width: parent.width
230 }219 }
231220
232 ListItem.Empty {221 SettingsListItems.Standard {
233 id: passwordVisible222 id: passwordVisible
234 enabled: passwordRequiredToggle.checked223 enabled: passwordRequiredToggle.checked
235 onClicked: passwordVisibleToggle.trigger()224 text: i18n.tr("Show password")
225 layout.padding.leading: 0
226 SlotsLayout.padding.leading: 0
236227
237 CheckBox {228 CheckBox {
238 id: passwordVisibleToggle229 id: passwordVisibleToggle
239 enabled: parent.enabled230 enabled: parent.enabled
240 anchors {231 SlotsLayout.position: SlotsLayout.First
241 left: parent.left232 SlotsLayout.padding.leading: 0
242 verticalCenter: parent.verticalCenter
243 }
244
245 // FIXME: Workaround for lp:1415023233 // FIXME: Workaround for lp:1415023
246 activeFocusOnPress: false234 activeFocusOnPress: false
247 }235 }
248236 onClicked: passwordVisibleToggle.trigger()
249 Label {
250 id: passwordVisibleLabel
251
252 /* FIXME: use enabled when lp:1491802 is fixed, or use
253 CheckBox.text once lp:1323238 is fixed. */
254 opacity: passwordRequiredToggle.checked ? 1 : 0.5
255 anchors {
256 left: passwordVisibleToggle.right
257 leftMargin: units.gu(1)
258 verticalCenter: parent.verticalCenter
259 }
260 text: i18n.tr("Show password")
261 }
262 }237 }
263238
264 ListItem.Caption {239 ListItems.Caption {
265 id: enableWifiCaption240 id: enableWifiCaption
266 anchors {241 anchors {
267 left: parent.left242 left: parent.left
268243
=== modified file 'plugins/hotspot/PageComponent.qml'
--- plugins/hotspot/PageComponent.qml 2015-09-18 14:18:11 +0000
+++ plugins/hotspot/PageComponent.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of system-settings2 * This file is part of system-settings
3 *3 *
4 * Copyright (C) 2014-2015 Canonical Ltd.4 * Copyright (C) 2014-2016 Canonical Ltd.
5 *5 *
6 * Contact: Jonas G. Drange <jonas.drange@canonical.com>6 * Contact: Jonas G. Drange <jonas.drange@canonical.com>
7 *7 *
@@ -20,8 +20,9 @@
2020
21import QtQuick 2.421import QtQuick 2.4
22import SystemSettings 1.022import SystemSettings 1.0
23import SystemSettings.ListItems 1.0 as SettingsListItems
24import Ubuntu.Components.ListItems 1.3 as ListItems
23import Ubuntu.Components 1.325import Ubuntu.Components 1.3
24import Ubuntu.Components.ListItems 1.3 as ListItem
25import Ubuntu.Components.Popups 1.326import Ubuntu.Components.Popups 1.3
26import Ubuntu.Connectivity 1.027import Ubuntu.Connectivity 1.0
2728
@@ -77,12 +78,14 @@
77 }78 }
78 spacing: units.gu(1)79 spacing: units.gu(1)
7980
80 ListItem.Standard {81 SettingsListItems.Standard {
81 id: hotspotItem82 id: hotspotItem
83 objectName: "hotspotItem"
82 text: i18n.tr("Hotspot")84 text: i18n.tr("Hotspot")
83 enabled: Connectivity.hotspotStored85 enabled: Connectivity.hotspotStored
84 onClicked: hotspotSwitch.trigger()86 onClicked: hotspotSwitch.trigger()
85 control: Switch {87
88 Switch {
86 id: hotspotSwitch89 id: hotspotSwitch
87 objectName: "hotspotSwitch"90 objectName: "hotspotSwitch"
88 enabled: parent.enabled91 enabled: parent.enabled
@@ -101,7 +104,7 @@
101 }104 }
102 }105 }
103106
104 ListItem.Caption {107 ListItems.Caption {
105 anchors {108 anchors {
106 left: parent.left109 left: parent.left
107 right: parent.right110 right: parent.right
108111
=== modified file 'plugins/language/settings-language.svg'
--- plugins/language/settings-language.svg 2013-06-28 14:53:07 +0000
+++ plugins/language/settings-language.svg 2016-07-22 14:36:34 +0000
@@ -9,14 +9,15 @@
9 xmlns="http://www.w3.org/2000/svg"9 xmlns="http://www.w3.org/2000/svg"
10 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"10 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"11 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
12 width="90"12 width="96"
13 height="90"13 height="96"
14 id="svg4230"14 id="svg4874"
15 version="1.1"15 version="1.1"
16 inkscape:version="0.48+devel r12277"16 inkscape:version="0.91+devel r"
17 sodipodi:docname="setting-language-text.svg">17 viewBox="0 0 96 96.000001"
18 sodipodi:docname="language-chooser.svg">
18 <defs19 <defs
19 id="defs4232" />20 id="defs4876" />
20 <sodipodi:namedview21 <sodipodi:namedview
21 id="base"22 id="base"
22 pagecolor="#ffffff"23 pagecolor="#ffffff"
@@ -24,18 +25,91 @@
24 borderopacity="1.0"25 borderopacity="1.0"
25 inkscape:pageopacity="0.0"26 inkscape:pageopacity="0.0"
26 inkscape:pageshadow="2"27 inkscape:pageshadow="2"
27 inkscape:zoom="5.0931703"28 inkscape:zoom="3.5967995"
28 inkscape:cx="21.204866"29 inkscape:cx="-41.870567"
29 inkscape:cy="6.4792647"30 inkscape:cy="69.839831"
30 inkscape:document-units="px"31 inkscape:document-units="px"
31 inkscape:current-layer="layer1-57"32 inkscape:current-layer="g4780"
32 showgrid="false"33 showgrid="true"
34 showborder="true"
33 fit-margin-top="0"35 fit-margin-top="0"
34 fit-margin-left="0"36 fit-margin-left="0"
35 fit-margin-right="0"37 fit-margin-right="0"
36 fit-margin-bottom="0" />38 fit-margin-bottom="0"
39 inkscape:snap-bbox="true"
40 inkscape:bbox-paths="true"
41 inkscape:bbox-nodes="true"
42 inkscape:snap-bbox-edge-midpoints="true"
43 inkscape:snap-bbox-midpoints="true"
44 inkscape:object-paths="true"
45 inkscape:snap-intersection-paths="true"
46 inkscape:object-nodes="true"
47 inkscape:snap-smooth-nodes="true"
48 inkscape:snap-midpoints="true"
49 inkscape:snap-object-midpoints="true"
50 inkscape:snap-center="true"
51 showguides="true"
52 inkscape:guide-bbox="true"
53 inkscape:snap-global="true">
54 <inkscape:grid
55 type="xygrid"
56 id="grid5451"
57 empspacing="8" />
58 <sodipodi:guide
59 orientation="1,0"
60 position="8,-8.0000001"
61 id="guide4063" />
62 <sodipodi:guide
63 orientation="1,0"
64 position="4,-8.0000001"
65 id="guide4065" />
66 <sodipodi:guide
67 orientation="0,1"
68 position="-8,88.000001"
69 id="guide4067" />
70 <sodipodi:guide
71 orientation="0,1"
72 position="-8,92.000001"
73 id="guide4069" />
74 <sodipodi:guide
75 orientation="0,1"
76 position="104,4"
77 id="guide4071" />
78 <sodipodi:guide
79 orientation="0,1"
80 position="-5,8.0000001"
81 id="guide4073" />
82 <sodipodi:guide
83 orientation="1,0"
84 position="88,-8.0000001"
85 id="guide4077" />
86 <sodipodi:guide
87 orientation="0,1"
88 position="-8,84.000001"
89 id="guide4074" />
90 <sodipodi:guide
91 orientation="1,0"
92 position="12,-8.0000001"
93 id="guide4076" />
94 <sodipodi:guide
95 orientation="1,0"
96 position="84,-8.0000001"
97 id="guide4080" />
98 <sodipodi:guide
99 position="48,-8.0000001"
100 orientation="1,0"
101 id="guide4170" />
102 <sodipodi:guide
103 position="-8,48"
104 orientation="0,1"
105 id="guide4172" />
106 <sodipodi:guide
107 position="92,-8.0000001"
108 orientation="1,0"
109 id="guide4760" />
110 </sodipodi:namedview>
37 <metadata111 <metadata
38 id="metadata4235">112 id="metadata4879">
39 <rdf:RDF>113 <rdf:RDF>
40 <cc:Work114 <cc:Work
41 rdf:about="">115 rdf:about="">
@@ -50,72 +124,35 @@
50 inkscape:label="Layer 1"124 inkscape:label="Layer 1"
51 inkscape:groupmode="layer"125 inkscape:groupmode="layer"
52 id="layer1"126 id="layer1"
53 transform="translate(-0.7143,-261.64789)">127 transform="translate(67.857146,-78.50504)">
54 <g128 <g
55 transform="translate(0.7143,-700.42863)"129 transform="matrix(0,-1,-1,0,373.50506,516.50504)"
56 id="g4081"130 id="g4845"
57 inkscape:label="Layer 1">131 style="display:inline">
58 <g132 <g
59 transform="translate(0,-1.1427923)"133 inkscape:export-ydpi="90"
60 id="layer1-57"134 inkscape:export-xdpi="90"
135 inkscape:export-filename="next01.png"
136 transform="matrix(-0.9996045,0,0,1,575.94296,-611.00001)"
137 id="g4778"
61 inkscape:label="Layer 1">138 inkscape:label="Layer 1">
62 <g139 <g
63 id="g4136"140 transform="matrix(-1,0,0,1,575.99999,611)"
64 transform="matrix(1.875,0,0,1.875,-990,-829.95977)">141 id="g4780"
65 <rect142 style="display:inline">
66 style="color:#000000;fill:none;stroke:none;stroke-width:7.5;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"143 <rect
67 id="rect4134"144 style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:none;stroke:none;stroke-width:4;marker:none;enable-background:accumulate"
68 width="48"145 id="rect4782"
69 height="48"146 width="96.037987"
70 x="528"147 height="96"
71 y="544"148 x="-438.00244"
72 transform="translate(0,412.36217)" />149 y="345.36221"
73 </g>150 transform="scale(-1,1)" />
74 <g151 <path
75 transform="translate(-528,48.000013)"152 style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.99960446;marker:none;enable-background:accumulate"
76 id="g3466">153 d="M 48 6.0019531 C 24.82764 6.0019531 6 24.828928 6 48 C 6 71.171082 24.82764 89.998047 48 89.998047 C 71.17237 89.998047 90 71.171082 90 48 C 90 24.828928 71.17237 6.0019531 48 6.0019531 z M 42.53125 10.396484 C 33.296711 20.093908 28.462948 32.967067 28.013672 46 L 10.056641 46 C 10.99887 27.755915 24.765744 12.950862 42.53125 10.396484 z M 53.46875 10.396484 C 71.235181 12.950074 85.003049 27.75526 85.945312 46 L 67.986328 46 C 67.537031 32.967051 62.70334 20.093716 53.46875 10.396484 z M 48 10.671875 C 58.121521 19.777207 63.428064 32.787817 63.914062 46 L 32.085938 46 C 32.571943 32.787634 37.878206 19.777225 48 10.671875 z M 10.056641 50 L 28.013672 50 C 28.462948 63.032933 33.296711 75.906092 42.53125 85.603516 C 24.766398 83.048936 10.999752 68.243289 10.056641 50 z M 32.085938 50 L 63.914062 50 C 63.428064 63.212183 58.121521 76.222793 48 85.328125 C 37.878206 76.222775 32.571943 63.212366 32.085938 50 z M 67.986328 50 L 85.945312 50 C 85.002167 68.243944 71.234526 83.049724 53.46875 85.603516 C 62.703024 75.906274 67.536746 63.032634 67.986328 50 z "
77 <rect154 transform="matrix(0,-1,-1.0003957,0,438.00245,441.36222)"
78 y="915.2193"155 id="rect3011" />
79 x="528"
80 height="90"
81 width="90"
82 id="rect3474"
83 style="color:#000000;fill:none;stroke:none;stroke-width:7.5;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" />
84 <path
85 style="fill:#808080;fill-opacity:1;display:inline"
86 d="M 28.96875 16 C 16.52725 16.1641 15 17.5 15 28 L 15 46 C 15 55.9093 16.3891 57.60545 27 57.90625 L 27 70 L 39 58 L 55 58 C 73 58 75 58 75 46 L 75 28 C 75 16 73 16 55 16 L 35 16 C 32.75 16 30.74605 15.9766 28.96875 16 z M 42.78125 24.21875 L 47.1875 24.21875 C 48.04962 26.041523 48.87464 27.877967 49.6875 29.75 C 50.50036 31.622033 51.312147 33.587157 52.125 35.65625 C 52.962493 37.725343 53.82538 39.934587 54.6875 42.25 C 55.574253 44.565407 56.476853 47.07834 57.4375 49.8125 L 52.4375 49.8125 C 52.092647 48.802587 51.71323 47.79778 51.34375 46.8125 C 50.97427 45.827213 50.626097 44.815797 50.28125 43.78125 L 39.5 43.78125 C 39.155153 44.815797 38.80698 45.833837 38.4375 46.84375 L 37.375 49.8125 L 32.5625 49.8125 C 33.523147 47.07834 34.419123 44.565407 35.28125 42.25 C 36.14337 39.934587 36.968397 37.725343 37.78125 35.65625 C 38.618743 33.587157 39.468397 31.622033 40.28125 29.75 C 41.09411 27.877967 41.91913 26.041523 42.78125 24.21875 z M 44.875 29.15625 C 44.308467 30.46175 43.676467 32.065467 42.9375 33.9375 C 42.223173 35.80954 41.475727 37.839003 40.6875 40.03125 L 49.09375 40.03125 C 48.305523 37.839003 47.55146 35.771673 46.8125 33.875 C 46.07354 31.978333 45.416907 30.412483 44.875 29.15625 z "
87 transform="translate(528,915.2193)"
88 id="path3962" />
89 <path
90 sodipodi:type="arc"
91 style="color:#000000;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:6;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
92 id="path3965"
93 sodipodi:cx="1731"
94 sodipodi:cy="1545"
95 sodipodi:rx="3"
96 sodipodi:ry="3"
97 d="m 1734,1545 c 0,1.6569 -1.3431,3 -3,3 -1.6569,0 -3,-1.3431 -3,-3 0,-1.6569 1.3431,-3 3,-3 C 1732.6569,1542 1734,1543.3431 1734,1545 Z"
98 transform="matrix(1.3333333,0,0,1.3333333,-1708.9999,-1072.7807)" />
99 <path
100 transform="matrix(1.3333333,0,0,1.3333333,-1720.9999,-1072.7807)"
101 d="m 1734,1545 c 0,1.6569 -1.3431,3 -3,3 -1.6569,0 -3,-1.3431 -3,-3 0,-1.6569 1.3431,-3 3,-3 C 1732.6569,1542 1734,1543.3431 1734,1545 Z"
102 sodipodi:ry="3"
103 sodipodi:rx="3"
104 sodipodi:cy="1545"
105 sodipodi:cx="1731"
106 id="path3976"
107 style="color:#000000;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:6;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
108 sodipodi:type="arc" />
109 <path
110 sodipodi:type="arc"
111 style="color:#000000;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:6;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
112 id="path3978"
113 sodipodi:cx="1731"
114 sodipodi:cy="1545"
115 sodipodi:rx="3"
116 sodipodi:ry="3"
117 d="m 1734,1545 c 0,1.6569 -1.3431,3 -3,3 -1.6569,0 -3,-1.3431 -3,-3 0,-1.6569 1.3431,-3 3,-3 C 1732.6569,1542 1734,1543.3431 1734,1545 Z"
118 transform="matrix(1.3333333,0,0,1.3333333,-1732.9999,-1072.7807)" />
119 </g>156 </g>
120 </g>157 </g>
121 </g>158 </g>
122159
=== modified file 'plugins/mouse/PrimaryButtonSelector.qml'
--- plugins/mouse/PrimaryButtonSelector.qml 2016-01-25 17:59:57 +0000
+++ plugins/mouse/PrimaryButtonSelector.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of system-settings2 * This file is part of system-settings
3 *3 *
4 * Copyright (C) 2015 Canonical Ltd.4 * Copyright (C) 2015-2016 Canonical Ltd.
5 *5 *
6 * Contact: Ken VanDine <ken.vandine@canonical.com>6 * Contact: Ken VanDine <ken.vandine@canonical.com>
7 *7 *
@@ -40,7 +40,6 @@
4040
41 SettingsItemTitle {41 SettingsItemTitle {
42 text: i18n.tr("Primary button:")42 text: i18n.tr("Primary button:")
43 showDivider: false
44 }43 }
4544
46 ListItem.Empty {45 ListItem.Empty {
4746
=== modified file 'plugins/orientation-lock/EntryComponent.qml'
--- plugins/orientation-lock/EntryComponent.qml 2015-08-10 13:31:45 +0000
+++ plugins/orientation-lock/EntryComponent.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of system-settings2 * This file is part of system-settings
3 *3 *
4 * Copyright (C) 2013 Canonical Ltd.4 * Copyright (C) 2013-2016 Canonical Ltd.
5 *5 *
6 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>6 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
7 *7 *
@@ -22,26 +22,35 @@
22import QtQuick 2.422import QtQuick 2.4
23import QtQuick.Window 2.123import QtQuick.Window 2.1
24import Ubuntu.Components 1.324import Ubuntu.Components 1.3
25import Ubuntu.Components.ListItems 1.3 as ListItem25
2626
2727ListItem {
28ListItem.Standard {
29 id: root28 id: root
30 iconSource: model.icon29 height: layout.height
31 iconFrame: false30
32 text: i18n.tr(model.displayName)31 ListItemLayout {
33 control: Switch {32 id: layout
34 id: control33 title.text: i18n.tr(model.displayName)
35 objectName: "orientationLockSwitch"34 Switch {
3635 id: control
37 property bool serverChecked: systemSettings.rotationLock36 objectName: "orientationLockSwitch"
38 onServerCheckedChanged: checked = serverChecked37
39 Component.onCompleted: checked = serverChecked38 SlotsLayout.position: SlotsLayout.Trailing
40 onTriggered: systemSettings.rotationLock = checked39 property bool serverChecked: systemSettings.rotationLock
4140 onServerCheckedChanged: checked = serverChecked
42 GSettings {41 Component.onCompleted: checked = serverChecked
43 id: systemSettings42 onTriggered: systemSettings.rotationLock = checked
44 schema.id: "com.ubuntu.touch.system"43
44 GSettings {
45 id: systemSettings
46 schema.id: "com.ubuntu.touch.system"
47 }
48 }
49 Icon {
50 SlotsLayout.position: SlotsLayout.Leading;
51 SlotsLayout.padding { top: 0; bottom: 0 }
52 source: model.icon
53 height: units.gu(5)
45 }54 }
46 }55 }
47}56}
4857
=== modified file 'plugins/orientation-lock/orientation-lock.settings'
--- plugins/orientation-lock/orientation-lock.settings 2014-11-03 22:01:37 +0000
+++ plugins/orientation-lock/orientation-lock.settings 2016-07-22 14:36:34 +0000
@@ -3,7 +3,7 @@
3 "name": "Rotation Lock",3 "name": "Rotation Lock",
4 "translations": "ubuntu-system-settings",4 "translations": "ubuntu-system-settings",
5 "category": "uncategorized-top",5 "category": "uncategorized-top",
6 "priority": 0,6 "priority": 1,
7 "form-factors": [7 "form-factors": [
8 "phone",8 "phone",
9 "tablet"9 "tablet"
1010
=== modified file 'plugins/phone/CallForwarding.qml'
--- plugins/phone/CallForwarding.qml 2016-05-17 23:28:16 +0000
+++ plugins/phone/CallForwarding.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of system-settings2 * This file is part of system-settings
3 *3 *
4 * Copyright (C) 2013 Canonical Ltd.4 * Copyright (C) 2013-2016 Canonical Ltd.
5 *5 *
6 * Contact:6 * Contact:
7 * Sebastien Bacher <sebastien.bacher@canonical.com>7 * Sebastien Bacher <sebastien.bacher@canonical.com>
@@ -164,7 +164,6 @@
164 SettingsItemTitle {164 SettingsItemTitle {
165 id: fwdSomeTitle165 id: fwdSomeTitle
166 text: i18n.tr("Forward incoming calls when:")166 text: i18n.tr("Forward incoming calls when:")
167 showDivider: false
168 }167 }
169168
170 CallForwardItem {169 CallForwardItem {
171170
=== modified file 'plugins/reset/EntryComponent.qml'
--- plugins/reset/EntryComponent.qml 2016-03-22 17:19:41 +0000
+++ plugins/reset/EntryComponent.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of system-settings2 * This file is part of system-settings
3 *3 *
4 * Copyright (C) 2013 Canonical Ltd.4 * Copyright (C) 2013-2016 Canonical Ltd.
5 *5 *
6 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>6 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
7 *7 *
@@ -20,13 +20,21 @@
2020
21import QtQuick 2.421import QtQuick 2.4
22import Ubuntu.Components 1.322import Ubuntu.Components 1.3
23import Ubuntu.Components.ListItems 1.3 as ListItem
2423
25ListItem.Standard {24ListItem {
26 id: root25 id: root
27 objectName: "entryComponent-reset"26 objectName: "entryComponent-reset"
28 iconSource: model.icon27 height: layout.height
29 iconFrame: false28
30 text: i18n.tr(model.displayName)29 ListItemLayout {
31 progression: true30 id: layout
31 title.text: i18n.tr(model.displayName)
32 Icon {
33 SlotsLayout.position: SlotsLayout.Leading;
34 SlotsLayout.padding { top: 0; bottom: 0 }
35 source: model.icon
36 height: units.gu(5)
37 }
38 ProgressionSlot {}
39 }
32}40}
3341
=== modified file 'plugins/reset/PageComponent.qml'
--- plugins/reset/PageComponent.qml 2016-02-04 15:28:51 +0000
+++ plugins/reset/PageComponent.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of system-settings2 * This file is part of system-settings
3 *3 *
4 * Copyright (C) 2013 Canonical Ltd.4 * Copyright (C) 2013-2016 Canonical Ltd.
5 *5 *
6 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>6 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
7 *7 *
@@ -21,8 +21,8 @@
21import GSettings 1.021import GSettings 1.0
22import QtQuick 2.422import QtQuick 2.4
23import SystemSettings 1.023import SystemSettings 1.0
24import SystemSettings.ListItems 1.0 as SettingsListItems
24import Ubuntu.Components 1.325import Ubuntu.Components 1.3
25import Ubuntu.Components.ListItems 1.3 as ListItem
26import Ubuntu.Components.Popups 1.326import Ubuntu.Components.Popups 1.3
27import Ubuntu.SystemSettings.Reset 1.027import Ubuntu.SystemSettings.Reset 1.0
2828
@@ -66,46 +66,81 @@
66 anchors.left: parent.left66 anchors.left: parent.left
67 anchors.right: parent.right67 anchors.right: parent.right
6868
69 ListItem.SingleControl {69 Label {
70 control: Button {70 anchors {
71 left: parent.left
72 right: parent.right
73 margins: units.gu(2)
74 }
75 text: i18n.tr("Reset Launcher")
76 color: UbuntuColors.orange
77 height: units.gu(6)
78 verticalAlignment: Text.AlignVCenter
79 }
80
81 SettingsListItems.Standard {
82
83 Button {
71 id: resetLauncherHomeButton84 id: resetLauncherHomeButton
72 objectName: "resetLauncher"85 objectName: "resetLauncher"
73 text: i18n.tr("Reset Launcher")86 text: i18n.tr("Reset Launcher")
74 width: parent.width - units.gu(4)
75 onClicked: {87 onClicked: {
76 buttonActions.source = "ResetLauncherHome.qml";88 buttonActions.source = "ResetLauncherHome.qml";
77 root.popup = PopupUtils.open(buttonActions.item);89 root.popup = PopupUtils.open(buttonActions.item);
78 }90 }
79 }91 }
80 showDivider: false92 }
81 }93
8294 Label {
83 ListItem.SingleControl {95 anchors {
84 visible: false // enabled when backend is ready/useful96 left: parent.left
85 control: Button {97 right: parent.right
98 margins: units.gu(2)
99 }
100 visible: showAllUI
101 text: i18n.tr("Reset all system settings…")
102 color: UbuntuColors.orange
103 height: units.gu(6)
104 verticalAlignment: Text.AlignVCenter
105 }
106
107 SettingsListItems.Standard {
108 visible: showAllUI
109
110 Button {
86 id: resetAllSettingsButton111 id: resetAllSettingsButton
87 text: i18n.tr("Reset all system settings…")112 text: i18n.tr("Reset all system settings…")
88 width: parent.width - units.gu(4)
89 onClicked: {113 onClicked: {
90 buttonActions.source = "ResetAllSettings.qml";114 buttonActions.source = "ResetAllSettings.qml";
91 root.popup = PopupUtils.open(buttonActions.item);115 root.popup = PopupUtils.open(buttonActions.item);
92 }116 }
93 }117 }
94 showDivider: false118 }
95 }119
96120 Label {
97 ListItem.SingleControl {121 anchors {
98 control: Button {122 left: parent.left
123 right: parent.right
124 margins: units.gu(2)
125 }
126 text: i18n.tr("Erase & Reset All")
127 color: UbuntuColors.orange
128 height: units.gu(6)
129 verticalAlignment: Text.AlignVCenter
130 }
131
132 SettingsListItems.Standard {
133
134 Button {
99 id: eraseEverythingButton135 id: eraseEverythingButton
100 objectName: "factoryReset"136 objectName: "factoryReset"
101 text: i18n.tr("Erase & Reset Everything…")137
102 width: parent.width - units.gu(4)138 text: i18n.tr("Erase & Reset All")
103 onClicked: {139 onClicked: {
104 buttonActions.source = "EraseEverything.qml";140 buttonActions.source = "EraseEverything.qml";
105 root.popup = PopupUtils.open(buttonActions.item);141 root.popup = PopupUtils.open(buttonActions.item);
106 }142 }
107 }143 }
108 showDivider: false
109 }144 }
110 }145 }
111 }146 }
112147
=== modified file 'plugins/security-privacy/AppAccess.qml'
--- plugins/security-privacy/AppAccess.qml 2016-02-26 19:07:21 +0000
+++ plugins/security-privacy/AppAccess.qml 2016-07-22 14:36:34 +0000
@@ -1,5 +1,5 @@
1/*1/*
2 * Copyright (C) 2013 Canonical Ltd2 * Copyright (C) 2013-2016 Canonical Ltd
3 *3 *
4 * This program is free software: you can redistribute it and/or modify4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 3 as5 * it under the terms of the GNU General Public License version 3 as
@@ -18,10 +18,11 @@
18 */18 */
1919
20import QtQuick 2.420import QtQuick 2.4
21import SystemSettings 1.0
22import SystemSettings.ListItems 1.0 as SettingsListItems
21import Ubuntu.Components 1.323import Ubuntu.Components 1.3
22import Ubuntu.Components.ListItems 1.3 as ListItem24import Ubuntu.Components.ListItems 1.3 as ListItems
23import Ubuntu.SystemSettings.SecurityPrivacy 1.025import Ubuntu.SystemSettings.SecurityPrivacy 1.0
24import SystemSettings 1.0
2526
26ItemPage {27ItemPage {
27 id: root28 id: root
@@ -57,7 +58,7 @@
57 anchors.left: parent.left58 anchors.left: parent.left
58 anchors.right: parent.right59 anchors.right: parent.right
5960
60 ListItem.Caption {61 ListItems.Caption {
61 text: i18n.tr("Apps that you have granted access to:")62 text: i18n.tr("Apps that you have granted access to:")
62 }63 }
6364
@@ -91,10 +92,10 @@
91 Repeater {92 Repeater {
92 model: appsModel93 model: appsModel
9394
94 ListItem.SingleValue {95 SettingsListItems.SingleValueProgression {
95 text: i18n.tr(model.name)96 text: i18n.tr(model.name)
96 enabled: trustStoreModel.count > 097 enabled: trustStoreModel.count > 0
97 progression: enabled ? true : false98 progressionVisible: enabled ? true : false
98 value: trustStoreModel.count > 0 ?99 value: trustStoreModel.count > 0 ?
99 i18n.tr("%1/%2").arg(trustStoreModel.grantedCount).arg(trustStoreModel.count) :100 i18n.tr("%1/%2").arg(trustStoreModel.grantedCount).arg(trustStoreModel.count) :
100 i18n.tr("0")101 i18n.tr("0")
@@ -104,19 +105,19 @@
104 "model": trustStoreModel,105 "model": trustStoreModel,
105 })106 })
106107
107 TrustStoreModel {108 resources: TrustStoreModel {
108 id: trustStoreModel109 id: trustStoreModel
109 serviceName: model.trustStoreService110 serviceName: model.trustStoreService
110 }111 }
111 }112 }
112 }113 }
113114
114 ListItem.Caption {115 ListItems.Caption {
115 text: i18n.tr("Apps may also request access to online accounts.")116 text: i18n.tr("Apps may also request access to online accounts.")
116 }117 }
117118
118 ListItem.SingleControl {119 SettingsListItems.SingleControl {
119 control: Button {120 Button {
120 text: i18n.tr("Online Accounts…")121 text: i18n.tr("Online Accounts…")
121 width: parent.width - units.gu(4)122 width: parent.width - units.gu(4)
122 onClicked: {123 onClicked: {
123124
=== modified file 'plugins/security-privacy/AppAccessControl.qml'
--- plugins/security-privacy/AppAccessControl.qml 2015-08-10 13:31:45 +0000
+++ plugins/security-privacy/AppAccessControl.qml 2016-07-22 14:36:34 +0000
@@ -1,5 +1,5 @@
1/*1/*
2 * Copyright (C) 2013 Canonical Ltd2 * Copyright (C) 2013-2016 Canonical Ltd
3 *3 *
4 * This program is free software: you can redistribute it and/or modify4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 3 as5 * it under the terms of the GNU General Public License version 3 as
@@ -18,9 +18,10 @@
18 */18 */
1919
20import QtQuick 2.420import QtQuick 2.4
21import SystemSettings 1.0
22import SystemSettings.ListItems 1.0 as SettingsListItems
21import Ubuntu.Components 1.323import Ubuntu.Components 1.3
22import Ubuntu.Components.ListItems 1.3 as ListItem24import Ubuntu.Components.ListItems 1.3 as ListItems
23import SystemSettings 1.0
2425
25ItemPage {26ItemPage {
26 id: root27 id: root
@@ -43,17 +44,17 @@
43 anchors.left: parent.left44 anchors.left: parent.left
44 anchors.right: parent.right45 anchors.right: parent.right
4546
46 ListItem.Caption {47 ListItems.Caption {
47 id: captionLabel48 id: captionLabel
48 }49 }
4950
50 Repeater {51 Repeater {
51 id: repeater52 id: repeater
5253
53 ListItem.Standard {54 SettingsListItems.Icon {
54 text: model.applicationName55 text: model.applicationName
55 iconSource: model.iconName56 iconSource: model.iconName
56 control: Switch {57 Switch {
57 id: welcomeStatsSwitch58 id: welcomeStatsSwitch
58 checked: model.granted59 checked: model.granted
59 onClicked: root.model.setEnabled(index, !model.granted)60 onClicked: root.model.setEnabled(index, !model.granted)
6061
=== modified file 'plugins/security-privacy/Location.qml'
--- plugins/security-privacy/Location.qml 2016-02-12 21:15:56 +0000
+++ plugins/security-privacy/Location.qml 2016-07-22 14:36:34 +0000
@@ -1,5 +1,5 @@
1/*1/*
2 * Copyright (C) 2013 Canonical Ltd2 * Copyright (C) 2013-2016 Canonical Ltd
3 *3 *
4 * This program is free software: you can redistribute it and/or modify4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 3 as5 * it under the terms of the GNU General Public License version 3 as
@@ -22,11 +22,12 @@
22import QMenuModel 0.122import QMenuModel 0.1
23import Qt.labs.folderlistmodel 2.123import Qt.labs.folderlistmodel 2.1
24import QtQuick 2.424import QtQuick 2.4
25import SystemSettings 1.0
26import SystemSettings.ListItems 1.0 as SettingsListItems
25import Ubuntu.Components 1.327import Ubuntu.Components 1.3
26import Ubuntu.Components.ListItems 1.3 as ListItem
27import Ubuntu.Connectivity 1.028import Ubuntu.Connectivity 1.0
29import Ubuntu.Components.ListItems 1.3 as ListItems
28import Ubuntu.SystemSettings.SecurityPrivacy 1.030import Ubuntu.SystemSettings.SecurityPrivacy 1.0
29import SystemSettings 1.0
3031
31ItemPage {32ItemPage {
32 id: locationPage33 id: locationPage
@@ -95,7 +96,7 @@
95 text: i18n.tr("Let the device detect your location:")96 text: i18n.tr("Let the device detect your location:")
96 }97 }
9798
98 ListItem.ItemSelector {99 ListItems.ItemSelector {
99 id: detection100 id: detection
100101
101 /* Helper that toggles location detection and HERE based on102 /* Helper that toggles location detection and HERE based on
@@ -202,7 +203,7 @@
202 }203 }
203 }204 }
204205
205 ListItem.Caption {206 ListItems.Caption {
206 /* TODO: replace by real info from the location service */207 /* TODO: replace by real info from the location service */
207 property int locationInfo: 0208 property int locationInfo: 0
208209
@@ -238,10 +239,10 @@
238239
239 Repeater {240 Repeater {
240 model: trustStoreModel241 model: trustStoreModel
241 ListItem.Standard {242 SettingsListItems.Icon {
242 text: model.applicationName243 text: model.applicationName
243 iconSource: model.iconName244 iconSource: model.iconName
244 control: Switch {245 Switch {
245 checked: model.granted246 checked: model.granted
246 onClicked: trustStoreModel.setEnabled(index, !model.granted)247 onClicked: trustStoreModel.setEnabled(index, !model.granted)
247 }248 }
@@ -249,12 +250,11 @@
249 }250 }
250 }251 }
251252
252 ListItem.Standard {253 SettingsListItems.Standard {
253 text: i18n.tr("None requested")254 text: i18n.tr("None requested")
254 visible: trustStoreModel.count === 0255 visible: trustStoreModel.count === 0
255 enabled: false256 enabled: false
256 }257 }
257 }258 }
258
259 }259 }
260}260}
261261
=== modified file 'plugins/security-privacy/LockSecurity.qml'
--- plugins/security-privacy/LockSecurity.qml 2016-06-15 12:15:08 +0000
+++ plugins/security-privacy/LockSecurity.qml 2016-07-22 14:36:34 +0000
@@ -22,12 +22,13 @@
22import GSettings 1.022import GSettings 1.0
23import QtQuick 2.423import QtQuick 2.4
24import QtQuick.Layouts 1.124import QtQuick.Layouts 1.1
25import SystemSettings 1.0
26import SystemSettings.ListItems 1.0 as SettingsListItems
25import Ubuntu.Components 1.327import Ubuntu.Components 1.3
26import Ubuntu.Components.ListItems 1.3 as ListItem28import Ubuntu.Components.ListItems 1.3 as ListItems
27import Ubuntu.Components.Popups 1.329import Ubuntu.Components.Popups 1.3
28import Ubuntu.Settings.Fingerprint 0.130import Ubuntu.Settings.Fingerprint 0.1
29import Ubuntu.SystemSettings.SecurityPrivacy 1.031import Ubuntu.SystemSettings.SecurityPrivacy 1.0
30import SystemSettings 1.0
3132
32ItemPage {33ItemPage {
33 id: page34 id: page
@@ -460,7 +461,7 @@
460 text: i18n.tr("Unlock the device using:")461 text: i18n.tr("Unlock the device using:")
461 }462 }
462463
463 ListItem.ItemSelector {464 ListItems.ItemSelector {
464 property string swipe: i18n.tr("Swipe (no security)")465 property string swipe: i18n.tr("Swipe (no security)")
465 property string passcode: i18n.tr("4-digit passcode")466 property string passcode: i18n.tr("4-digit passcode")
466 property string passphrase: i18n.tr("Passphrase")467 property string passphrase: i18n.tr("Passphrase")
@@ -548,7 +549,7 @@
548 }549 }
549 }550 }
550551
551 ListItem.SingleControl {552 SettingsListItems.SingleControl {
552553
553 id: changeControl554 id: changeControl
554 visible: securityPrivacy.securityType ===555 visible: securityPrivacy.securityType ===
@@ -556,7 +557,7 @@
556 securityPrivacy.securityType ===557 securityPrivacy.securityType ===
557 UbuntuSecurityPrivacyPanel.Passphrase558 UbuntuSecurityPrivacyPanel.Passphrase
558559
559 control: Button {560 Button {
560 property string changePasscode: i18n.tr("Change passcode…")561 property string changePasscode: i18n.tr("Change passcode…")
561 property string changePassphrase: i18n.tr("Change passphrase…")562 property string changePassphrase: i18n.tr("Change passphrase…")
562563
563564
=== modified file 'plugins/security-privacy/PageComponent.qml'
--- plugins/security-privacy/PageComponent.qml 2016-06-15 12:12:40 +0000
+++ plugins/security-privacy/PageComponent.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of system-settings2 * This file is part of system-settings
3 *3 *
4 * Copyright (C) 2013 Canonical Ltd.4 * Copyright (C) 2013-2016 Canonical Ltd.
5 *5 *
6 * Contact: Evan Dandrea <evan.dandrea@canonical.com>6 * Contact: Evan Dandrea <evan.dandrea@canonical.com>
7 *7 *
@@ -22,8 +22,9 @@
22import GSettings 1.022import GSettings 1.0
23import QMenuModel 0.123import QMenuModel 0.1
24import QtQuick 2.424import QtQuick 2.4
25import SystemSettings.ListItems 1.0 as SettingsListItems
25import Ubuntu.Components 1.326import Ubuntu.Components 1.3
26import Ubuntu.Components.ListItems 1.3 as ListItem27import Ubuntu.Components.ListItems 1.3 as ListItems
27import SystemSettings 1.028import SystemSettings 1.0
28import Ubuntu.Settings.Fingerprint 0.129import Ubuntu.Settings.Fingerprint 0.1
29import Ubuntu.SystemSettings.Battery 1.030import Ubuntu.SystemSettings.Battery 1.0
@@ -148,15 +149,15 @@
148 anchors.left: parent.left149 anchors.left: parent.left
149 anchors.right: parent.right150 anchors.right: parent.right
150151
151 ListItem.Header {152 SettingsItemTitle {
152 id: securityTitle153 id: securityTitle
153 text: i18n.tr("Security")154 text: i18n.tr("Security")
154 }155 }
155 ListItem.SingleValue {156
157 SettingsListItems.SingleValueProgression {
156 id: fingerprintControl158 id: fingerprintControl
157 objectName: "fingerprintControl"159 objectName: "fingerprintControl"
158 text: i18n.tr("Fingerprint ID")160 text: i18n.tr("Fingerprint ID")
159 progression: true
160 onClicked: pageStack.push(fingeprintPage, {161 onClicked: pageStack.push(fingeprintPage, {
161 passcodeSet: securityPrivacy.securityType !== UbuntuSecurityPrivacyPanel.Swipe162 passcodeSet: securityPrivacy.securityType !== UbuntuSecurityPrivacyPanel.Swipe
162 })163 })
@@ -173,17 +174,17 @@
173 }174 }
174 }175 }
175176
176 ListItem.SingleValue {177 SettingsListItems.SingleValueProgression {
177 id: lockingControl178 id: lockingControl
178 objectName: "lockingControl"179 objectName: "lockingControl"
179 text: i18n.tr("Locking and unlocking")180 text: i18n.tr("Locking and unlocking")
180 progression: true
181 onClicked: pageStack.push(Qt.resolvedUrl("PhoneLocking.qml"), {181 onClicked: pageStack.push(Qt.resolvedUrl("PhoneLocking.qml"), {
182 usePowerd: usePowerd,182 usePowerd: usePowerd,
183 powerSettings: powerSettings183 powerSettings: powerSettings
184 })184 })
185 }185 }
186 ListItem.SingleValue {186
187 SettingsListItems.SingleValueProgression {
187 id: simControl188 id: simControl
188 objectName: "simControl"189 objectName: "simControl"
189 text: i18n.tr("SIM PIN")190 text: i18n.tr("SIM PIN")
@@ -196,28 +197,31 @@
196 return i18n.tr("Off");197 return i18n.tr("Off");
197 }198 }
198 visible: simsPresent > 0199 visible: simsPresent > 0
199 progression: true
200 onClicked: pageStack.push(Qt.resolvedUrl("SimPin.qml"), { sims: sims })200 onClicked: pageStack.push(Qt.resolvedUrl("SimPin.qml"), { sims: sims })
201 }201 }
202 ListItem.Standard {202
203 SettingsListItems.Standard {
203 text: i18n.tr("Encryption")204 text: i18n.tr("Encryption")
204 control: Switch {205 Switch {
205 id: encryptionSwitch206 id: encryptionSwitch
206 checked: false207 checked: false
207 }208 }
208 visible: showAllUI209 visible: showAllUI
209 }210 }
210 ListItem.Caption {211
212 ListItems.Caption {
211 text: i18n.tr(213 text: i18n.tr(
212 "Encryption protects against access to phone data when the phone is connected to a PC or other device.")214 "Encryption protects against access to phone data when the phone is connected to a PC or other device.")
213 visible: showAllUI215 visible: showAllUI
214 }216 }
215 ListItem.Header {217
218 SettingsItemTitle {
216 text: i18n.tr("Privacy")219 text: i18n.tr("Privacy")
217 }220 }
218 ListItem.Standard {221
222 SettingsListItems.Standard {
219 text: i18n.tr("Stats on welcome screen")223 text: i18n.tr("Stats on welcome screen")
220 control: Switch {224 Switch {
221 property bool serverChecked: securityPrivacy.statsWelcomeScreen225 property bool serverChecked: securityPrivacy.statsWelcomeScreen
222 onServerCheckedChanged: checked = serverChecked226 onServerCheckedChanged: checked = serverChecked
223 Component.onCompleted: checked = serverChecked227 Component.onCompleted: checked = serverChecked
@@ -225,9 +229,9 @@
225 }229 }
226 }230 }
227231
228 ListItem.Standard {232 SettingsListItems.Standard {
229 text: i18n.tr("Messages on welcome screen")233 text: i18n.tr("Messages on welcome screen")
230 control: Switch {234 Switch {
231 property bool serverChecked: securityPrivacy.messagesWelcomeScreen235 property bool serverChecked: securityPrivacy.messagesWelcomeScreen
232 onServerCheckedChanged: checked = serverChecked236 onServerCheckedChanged: checked = serverChecked
233 Component.onCompleted: checked = serverChecked237 Component.onCompleted: checked = serverChecked
@@ -246,12 +250,12 @@
246250
247 Component.onCompleted: start()251 Component.onCompleted: start()
248 }252 }
249 ListItem.SingleValue {253
254 SettingsListItems.SingleValueProgression {
250 id: locationItem255 id: locationItem
251 objectName: "locationItem"256 objectName: "locationItem"
252 text: i18n.tr("Location")257 text: i18n.tr("Location")
253 value: ""258 value: ""
254 progression: true
255 onClicked: pageStack.push(Qt.resolvedUrl("Location.qml"))259 onClicked: pageStack.push(Qt.resolvedUrl("Location.qml"))
256 visible: true260 visible: true
257 enabled: true261 enabled: true
@@ -261,19 +265,20 @@
261 i18n.tr("On") : i18n.tr("Off")265 i18n.tr("On") : i18n.tr("Off")
262 }266 }
263 }267 }
268
264 Binding {269 Binding {
265 target: locationItem270 target: locationItem
266 property: "locationEnabled"271 property: "locationEnabled"
267 value: locationActionGroup.enabled.state272 value: locationActionGroup.enabled.state
268 }273 }
269 ListItem.SingleValue {274
275 SettingsListItems.SingleValueProgression {
270 text: i18n.tr("App permissions")276 text: i18n.tr("App permissions")
271 progression: true
272 onClicked: pageStack.push(Qt.resolvedUrl("AppAccess.qml"), {pluginManager: pluginManager})277 onClicked: pageStack.push(Qt.resolvedUrl("AppAccess.qml"), {pluginManager: pluginManager})
273 }278 }
274 ListItem.SingleValue {279
280 SettingsListItems.SingleValueProgression {
275 text: i18n.tr("Diagnostics")281 text: i18n.tr("Diagnostics")
276 progression: true
277 value: diagnosticsWidget.reportCrashes ?282 value: diagnosticsWidget.reportCrashes ?
278 /* TRANSLATORS: This string is shown when crash283 /* TRANSLATORS: This string is shown when crash
279 reports are to be sent by the system. */284 reports are to be sent by the system. */
280285
=== modified file 'plugins/security-privacy/PhoneLocking.qml'
--- plugins/security-privacy/PhoneLocking.qml 2016-06-15 11:02:05 +0000
+++ plugins/security-privacy/PhoneLocking.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of system-settings2 * This file is part of system-settings
3 *3 *
4 * Copyright (C) 2013 Canonical Ltd.4 * Copyright (C) 2013-2016 Canonical Ltd.
5 *5 *
6 * Contact: Iain Lane <iain.lane@canonical.com>6 * Contact: Iain Lane <iain.lane@canonical.com>
7 *7 *
@@ -21,8 +21,9 @@
21import GSettings 1.021import GSettings 1.0
22import QtQuick 2.422import QtQuick 2.4
23import SystemSettings 1.023import SystemSettings 1.0
24import SystemSettings.ListItems 1.0 as SettingsListItems
24import Ubuntu.Components 1.325import Ubuntu.Components 1.3
25import Ubuntu.Components.ListItems 1.3 as ListItem26import Ubuntu.Components.ListItems 1.3 as ListItems
26import Ubuntu.SystemSettings.SecurityPrivacy 1.027import Ubuntu.SystemSettings.SecurityPrivacy 1.0
2728
28ItemPage {29ItemPage {
@@ -52,7 +53,7 @@
52 anchors.left: parent.left53 anchors.left: parent.left
53 anchors.right: parent.right54 anchors.right: parent.right
5455
55 ListItem.SingleValue {56 SettingsListItems.SingleValueProgression {
56 property string swipe: i18n.ctr("Unlock with swipe", "None")57 property string swipe: i18n.ctr("Unlock with swipe", "None")
57 property string passcode: i18n.tr("Passcode")58 property string passcode: i18n.tr("Passcode")
58 property string passphrase: i18n.tr("Passphrase")59 property string passphrase: i18n.tr("Passphrase")
@@ -74,11 +75,10 @@
74 return fingerprint75 return fingerprint
75 }76 }
76 }77 }
77 progression: true
78 onClicked: pageStack.push(Qt.resolvedUrl("LockSecurity.qml"))78 onClicked: pageStack.push(Qt.resolvedUrl("LockSecurity.qml"))
79 }79 }
8080
81 ListItem.SingleValue {81 SettingsListItems.SingleValueProgression {
82 objectName: "lockTimeout"82 objectName: "lockTimeout"
83 property bool lockOnSuspend: securityPrivacy.securityType !==83 property bool lockOnSuspend: securityPrivacy.securityType !==
84 UbuntuSecurityPrivacyPanel.Swipe84 UbuntuSecurityPrivacyPanel.Swipe
@@ -109,15 +109,14 @@
109 i18n.tr("Never")109 i18n.tr("Never")
110 }110 }
111 }111 }
112 progression: true
113 onClicked:112 onClicked:
114 pageStack.push(113 pageStack.push(
115 Qt.resolvedUrl("../battery/SleepValues.qml"),114 Qt.resolvedUrl("../battery/SleepValues.qml"),
116 { title: text, lockOnSuspend: lockOnSuspend } )115 { title: text, lockOnSuspend: lockOnSuspend } )
117 }116 }
118117
119 ListItem.Standard {118 SettingsListItems.Standard {
120 control: CheckBox {119 CheckBox {
121 checked: true120 checked: true
122 }121 }
123 text: i18n.tr("Sleep locks immediately")122 text: i18n.tr("Sleep locks immediately")
@@ -128,9 +127,9 @@
128 text: i18n.tr("When locked, allow:")127 text: i18n.tr("When locked, allow:")
129 }128 }
130129
131 ListItem.Standard {130 SettingsListItems.Standard {
132 text: i18n.tr("Launcher")131 text: i18n.tr("Launcher")
133 control: CheckBox {132 CheckBox {
134 id: launcherCheck133 id: launcherCheck
135 enabled: securityPrivacy.securityType !== UbuntuSecurityPrivacyPanel.Swipe134 enabled: securityPrivacy.securityType !== UbuntuSecurityPrivacyPanel.Swipe
136135
@@ -141,9 +140,9 @@
141 }140 }
142 }141 }
143142
144 ListItem.Standard {143 SettingsListItems.Standard {
145 text: i18n.tr("Notifications and quick settings")144 text: i18n.tr("Notifications and quick settings")
146 control: CheckBox {145 CheckBox {
147 id: indicatorsCheck146 id: indicatorsCheck
148 enabled: securityPrivacy.securityType !== UbuntuSecurityPrivacyPanel.Swipe147 enabled: securityPrivacy.securityType !== UbuntuSecurityPrivacyPanel.Swipe
149148
@@ -154,7 +153,7 @@
154 }153 }
155 }154 }
156155
157 ListItem.Caption {156 ListItems.Caption {
158 text: securityPrivacy.securityType === UbuntuSecurityPrivacyPanel.Swipe ?157 text: securityPrivacy.securityType === UbuntuSecurityPrivacyPanel.Swipe ?
159 i18n.tr("Turn on lock security to restrict access when the device is locked.") :158 i18n.tr("Turn on lock security to restrict access when the device is locked.") :
160 i18n.tr("Other apps and functions will prompt you to unlock.")159 i18n.tr("Other apps and functions will prompt you to unlock.")
161160
=== modified file 'plugins/security-privacy/SimPin.qml'
--- plugins/security-privacy/SimPin.qml 2016-05-17 23:28:16 +0000
+++ plugins/security-privacy/SimPin.qml 2016-07-22 14:36:34 +0000
@@ -1,5 +1,5 @@
1/*1/*
2 * Copyright (C) 2014 Canonical Ltd.2 * Copyright (C) 2014-2016 Canonical Ltd.
3 *3 *
4 * This program is free software: you can redistribute it and/or modify it4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License version 3, as published5 * under the terms of the GNU General Public License version 3, as published
@@ -19,14 +19,15 @@
19 */19 */
2020
21import GSettings 1.021import GSettings 1.0
22import MeeGo.QOfono 0.2
22import QtQuick 2.423import QtQuick 2.4
23import QtQuick.Layouts 1.124import QtQuick.Layouts 1.1
25import SystemSettings 1.0
26import SystemSettings.ListItems 1.0 as SettingsListItems
24import Ubuntu.Components 1.327import Ubuntu.Components 1.3
25import Ubuntu.Components.ListItems 1.3 as ListItem28import Ubuntu.Components.ListItems 1.3 as ListItems
26import Ubuntu.Components.Popups 1.329import Ubuntu.Components.Popups 1.3
27import SystemSettings 1.0
28import Ubuntu.SystemSettings.SecurityPrivacy 1.030import Ubuntu.SystemSettings.SecurityPrivacy 1.0
29import MeeGo.QOfono 0.2
30import "sims.js" as Sims31import "sims.js" as Sims
3132
3233
@@ -386,14 +387,14 @@
386 }387 }
387 }388 }
388389
389 ListItem.Standard {390 SettingsListItems.Standard {
390 text: sims[index].title391 text: sims[index].title
391 visible: sims.length > 1392 visible: sims.length > 1
392 }393 }
393394
394 ListItem.Standard {395 SettingsListItems.Standard {
395 text: i18n.tr("SIM PIN")396 text: i18n.tr("SIM PIN")
396 control: Switch {397 Switch {
397 id: simPinSwitch398 id: simPinSwitch
398 objectName: "simPinSwitch"399 objectName: "simPinSwitch"
399 checked: sims[index].simMng.lockedPins.length > 0400 checked: sims[index].simMng.lockedPins.length > 0
@@ -404,11 +405,11 @@
404 }405 }
405 }406 }
406407
407 ListItem.Standard {408 SettingsListItems.Standard {
408 id: changeControl409 id: changeControl
409 visible: sim.state === "unlocked"410 visible: sim.state === "unlocked"
410 text: i18n.tr("Unlocked")411 text: i18n.tr("Unlocked")
411 control: Button {412 Button {
412 enabled: parent.visible413 enabled: parent.visible
413 text: i18n.tr("Change PIN…")414 text: i18n.tr("Change PIN…")
414 onClicked: {415 onClicked: {
@@ -418,11 +419,11 @@
418 }419 }
419 }420 }
420421
421 ListItem.Standard {422 SettingsListItems.Standard {
422 id: lockControl423 id: lockControl
423 visible: sim.state === "locked"424 visible: sim.state === "locked"
424 text: i18n.tr("Locked")425 text: i18n.tr("Locked")
425 control: Button {426 Button {
426 objectName: "unlock"427 objectName: "unlock"
427 enabled: sims[index].simMng.pinRequired !== 'none'428 enabled: sims[index].simMng.pinRequired !== 'none'
428 text: i18n.tr("Unlock…")429 text: i18n.tr("Unlock…")
@@ -431,18 +432,18 @@
431 }432 }
432 }433 }
433434
434 ListItem.Divider {435 ListItems.Divider {
435 visible: index < (sims.length - 1)436 visible: index < (sims.length - 1)
436 }437 }
437438
438 }439 }
439 }440 }
440441
441 ListItem.Caption {442 ListItems.Caption {
442 text: i18n.tr("When a SIM PIN is set, it must be entered to access cellular services after restarting the device or swapping the SIM.")443 text: i18n.tr("When a SIM PIN is set, it must be entered to access cellular services after restarting the device or swapping the SIM.")
443 }444 }
444445
445 ListItem.Caption {446 ListItems.Caption {
446 text: i18n.tr("Entering an incorrect PIN repeatedly may lock the SIM permanently.")447 text: i18n.tr("Entering an incorrect PIN repeatedly may lock the SIM permanently.")
447 }448 }
448 }449 }
449450
=== modified file 'plugins/security-privacy/diagnostics/DiagnosticsCheckEntry.qml'
--- plugins/security-privacy/diagnostics/DiagnosticsCheckEntry.qml 2015-08-10 13:31:45 +0000
+++ plugins/security-privacy/diagnostics/DiagnosticsCheckEntry.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of system-settings2 * This file is part of system-settings
3 *3 *
4 * Copyright (C) 2013 Canonical Ltd.4 * Copyright (C) 2013-2016 Canonical Ltd.
5 *5 *
6 * Contact: Evan Dandrea <evan.dandrea@canonical.com>6 * Contact: Evan Dandrea <evan.dandrea@canonical.com>
7 *7 *
@@ -20,9 +20,9 @@
2020
21import QtQuick 2.421import QtQuick 2.4
22import Ubuntu.Components 1.322import Ubuntu.Components 1.3
23import Ubuntu.Components.ListItems 1.3 as ListItem23import Ubuntu.Components.ListItems 1.3 as ListItems
2424
25ListItem.Base {25ListItems.Base {
26 property string textEntry: "";26 property string textEntry: "";
27 property alias checked: checkBox.checked;27 property alias checked: checkBox.checked;
28 onClicked: checked = !checked;28 onClicked: checked = !checked;
2929
=== modified file 'plugins/security-privacy/diagnostics/PageComponent.qml'
--- plugins/security-privacy/diagnostics/PageComponent.qml 2015-10-16 13:42:50 +0000
+++ plugins/security-privacy/diagnostics/PageComponent.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of system-settings2 * This file is part of system-settings
3 *3 *
4 * Copyright (C) 2013 Canonical Ltd.4 * Copyright (C) 2013-2016 Canonical Ltd.
5 *5 *
6 * Contact: Evan Dandrea <evan.dandrea@canonical.com>6 * Contact: Evan Dandrea <evan.dandrea@canonical.com>
7 *7 *
@@ -20,8 +20,9 @@
2020
21import QtQuick 2.421import QtQuick 2.4
22import SystemSettings 1.022import SystemSettings 1.0
23import SystemSettings.ListItems 1.0 as SettingsListItems
23import Ubuntu.Components 1.324import Ubuntu.Components 1.3
24import Ubuntu.Components.ListItems 1.3 as ListItem25import Ubuntu.Components.ListItems 1.3 as ListItems
25import Ubuntu.SystemSettings.Diagnostics 1.026import Ubuntu.SystemSettings.Diagnostics 1.0
2627
27ItemPage {28ItemPage {
@@ -54,15 +55,14 @@
54 anchors.left: parent.left55 anchors.left: parent.left
55 anchors.right: parent.right56 anchors.right: parent.right
5657
57 ListItem.SingleValue {58 SettingsListItems.SingleValueProgression {
58 text: i18n.tr("Privacy policy")59 text: i18n.tr("Privacy policy")
59 progression: true
60 onClicked: {60 onClicked: {
61 Qt.openUrlExternally("http://www.ubuntu.com/aboutus/privacypolicy?crashdb")61 Qt.openUrlExternally("http://www.ubuntu.com/aboutus/privacypolicy?crashdb")
62 }62 }
63 }63 }
6464
65 ListItem.Standard {65 SettingsListItems.Standard {
66 text: i18n.tr("Report to Canonical:")66 text: i18n.tr("Report to Canonical:")
67 }67 }
6868
@@ -80,20 +80,19 @@
80 textEntry: i18n.tr("App crashes and errors")80 textEntry: i18n.tr("App crashes and errors")
81 }81 }
8282
83 ListItem.SingleValue {83 SettingsListItems.SingleValueProgression {
84 id: previousReports84 id: previousReports
85 property string ident: diagnosticsWidget.systemIdentifier()85 property string ident: diagnosticsWidget.systemIdentifier()
86 text: i18n.tr("Previous error reports")86 text: i18n.tr("Previous error reports")
87 progression: previousReports.ident != ""87 enabled: previousReports.ident != ""
88 progressionVisible: enabled
88 onClicked: {89 onClicked: {
89 var base = "https://errors.ubuntu.com/user/"90 var base = "https://errors.ubuntu.com/user/"
90 if (previousReports.progression) {91 Qt.openUrlExternally(base + ident)
91 Qt.openUrlExternally(base + ident)
92 }
93 }92 }
94 }93 }
9594
96 ListItem.Caption {95 ListItems.Caption {
97 text: i18n.tr("Includes info about what an app was doing when it failed.")96 text: i18n.tr("Includes info about what an app was doing when it failed.")
98 }97 }
99 }98 }
10099
=== modified file 'plugins/sound/PageComponent.qml'
--- plugins/sound/PageComponent.qml 2016-05-03 13:46:55 +0000
+++ plugins/sound/PageComponent.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of system-settings2 * This file is part of system-settings
3 *3 *
4 * Copyright (C) 2013 Canonical Ltd.4 * Copyright (C) 2013-2016 Canonical Ltd.
5 *5 *
6 * Contact: Sebastien Bacher <sebastien.bacher@canonical.com>6 * Contact: Sebastien Bacher <sebastien.bacher@canonical.com>
7 *7 *
@@ -21,9 +21,8 @@
21import GSettings 1.021import GSettings 1.0
22import QtQuick 2.422import QtQuick 2.4
23import Ubuntu.Components 1.323import Ubuntu.Components 1.3
24import Ubuntu.Components.ListItems 1.3 as ListItem
25import Ubuntu.Connectivity 1.0
26import SystemSettings 1.024import SystemSettings 1.0
25import SystemSettings.ListItems 1.0 as SettingsListItems
27import Ubuntu.SystemSettings.Sound 1.026import Ubuntu.SystemSettings.Sound 1.0
28import Ubuntu.Settings.Menus 0.1 as Menus27import Ubuntu.Settings.Menus 0.1 as Menus
29import Ubuntu.Settings.Components 0.1 as USC28import Ubuntu.Settings.Components 0.1 as USC
@@ -67,8 +66,10 @@
67 anchors.left: parent.left66 anchors.left: parent.left
68 anchors.right: parent.right67 anchors.right: parent.right
6968
70 ListItem.Standard {69 SettingsListItems.Standard {
71 control: Switch {70 text: i18n.tr("Silent Mode")
71
72 Switch {
72 id: silentModeSwitch73 id: silentModeSwitch
73 objectName: "silentMode"74 objectName: "silentMode"
74 property bool serverChecked: soundActionGroup.silentMode.state75 property bool serverChecked: soundActionGroup.silentMode.state
@@ -82,20 +83,6 @@
82 onSyncTriggered: soundActionGroup.silentMode.activate()83 onSyncTriggered: soundActionGroup.silentMode.activate()
83 }84 }
84 }85 }
85 text: i18n.tr("Silent Mode")
86 }
87
88 QDBusActionGroup {
89 id: soundActionGroup
90 busType: DBus.SessionBus
91 busName: "com.canonical.indicator.sound"
92 objectPath: "/com/canonical/indicator/sound"
93
94 property variant volume: action("volume")
95 property variant silentMode: action("silent-mode")
96 property variant highVolume: action("high-volume")
97
98 Component.onCompleted: start()
99 }86 }
10087
101 Column {88 Column {
@@ -107,6 +94,19 @@
107 text: i18n.tr("Ringer:")94 text: i18n.tr("Ringer:")
108 }95 }
10996
97 QDBusActionGroup {
98 id: soundActionGroup
99 busType: DBus.SessionBus
100 busName: "com.canonical.indicator.sound"
101 objectPath: "/com/canonical/indicator/sound"
102
103 property variant volume: action("volume")
104 property variant silentMode: action("silent-mode")
105 property variant highVolume: action("high-volume")
106
107 Component.onCompleted: start()
108 }
109
110 Menus.SliderMenu {110 Menus.SliderMenu {
111 id: volumeSlider111 id: volumeSlider
112 objectName: "sliderMenu"112 objectName: "sliderMenu"
@@ -129,33 +129,34 @@
129 }129 }
130 }130 }
131131
132 ListItem.Standard {132 SettingsListItems.Standard {
133 id: highVolumeWarning133 id: highVolumeWarning
134 visible: soundActionGroup.highVolume.state == true134 visible: soundActionGroup.highVolume.state == true
135 text: i18n.tr("High volume can damage your hearing.")135 text: i18n.tr("High volume can damage your hearing.")
136 }136 }
137137
138 SettingsItemTitle {138 SettingsItemTitle {
139 text: i18n.tr("Phone calls:")139 text: i18n.tr("Phone calls:")
140 }140 }
141141
142 ListItem.SingleValue {142 SettingsListItems.SingleValueProgression {
143 text: i18n.tr("Ringtone")143 text: i18n.tr("Ringtone")
144 value: Utilities.buildDisplayName(144 value: Utilities.buildDisplayName(backendInfo.incomingCallSound)
145 backendInfo.incomingCallSound)145
146 progression: true
147 onClicked: pageStack.push(146 onClicked: pageStack.push(
148 Qt.resolvedUrl("SoundsList.qml"),147 Qt.resolvedUrl("SoundsList.qml"), {
149 { title: i18n.tr("Ringtone"),148 title: i18n.tr("Ringtone"),
150 showStopButton: true,149 showStopButton: true,
151 soundType: 0,150 soundType: 0,
152 soundsDir:151 soundsDir: "/usr/share/sounds/ubuntu/ringtones/"
153 "/usr/share/sounds/ubuntu/ringtones/" })152 }
153 )
154 }154 }
155155
156 ListItem.Standard {156 SettingsListItems.Standard {
157 control: CheckBox {157 CheckBox {
158 objectName: "callVibrate"158 objectName: "callVibrate"
159 SlotsLayout.position: SlotsLayout.First
159 property bool serverChecked: backendInfo.incomingCallVibrate160 property bool serverChecked: backendInfo.incomingCallVibrate
160 onServerCheckedChanged: checked = serverChecked161 onServerCheckedChanged: checked = serverChecked
161 Component.onCompleted: checked = serverChecked162 Component.onCompleted: checked = serverChecked
@@ -164,9 +165,10 @@
164 text: i18n.tr("Vibrate on ring")165 text: i18n.tr("Vibrate on ring")
165 }166 }
166167
167 ListItem.Standard {168 SettingsListItems.Standard {
168 control: CheckBox {169 CheckBox {
169 objectName: "callVibrateSilentMode"170 objectName: "callVibrateSilentMode"
171 SlotsLayout.position: SlotsLayout.First
170 property bool serverChecked: backendInfo.incomingCallVibrateSilentMode172 property bool serverChecked: backendInfo.incomingCallVibrateSilentMode
171 onServerCheckedChanged: checked = serverChecked173 onServerCheckedChanged: checked = serverChecked
172 Component.onCompleted: checked = serverChecked174 Component.onCompleted: checked = serverChecked
@@ -175,8 +177,8 @@
175 text: i18n.tr("Vibrate in Silent Mode")177 text: i18n.tr("Vibrate in Silent Mode")
176 }178 }
177179
178 ListItem.Standard {180 SettingsListItems.Standard {
179 control: Switch {181 Switch {
180 objectName: "dialpadSounds"182 objectName: "dialpadSounds"
181 property bool serverChecked: backendInfo.dialpadSoundsEnabled183 property bool serverChecked: backendInfo.dialpadSoundsEnabled
182 onServerCheckedChanged: checked = serverChecked184 onServerCheckedChanged: checked = serverChecked
@@ -195,11 +197,10 @@
195 text: i18n.tr("Messages:")197 text: i18n.tr("Messages:")
196 }198 }
197199
198 ListItem.SingleValue {200 SettingsListItems.SingleValueProgression {
199 text: i18n.tr("Message received")201 text: i18n.tr("Message received")
200 value:Utilities.buildDisplayName(202 value:Utilities.buildDisplayName(
201 backendInfo.incomingMessageSound)203 backendInfo.incomingMessageSound)
202 progression: true
203 onClicked: pageStack.push(204 onClicked: pageStack.push(
204 Qt.resolvedUrl("SoundsList.qml"),205 Qt.resolvedUrl("SoundsList.qml"),
205 { title: i18n.tr("Message received"),206 { title: i18n.tr("Message received"),
@@ -208,9 +209,10 @@
208 "/usr/share/sounds/ubuntu/notifications/" })209 "/usr/share/sounds/ubuntu/notifications/" })
209 }210 }
210211
211 ListItem.Standard {212 SettingsListItems.Standard {
212 control: CheckBox {213 CheckBox {
213 objectName: "messageVibrate"214 objectName: "messageVibrate"
215 SlotsLayout.position: SlotsLayout.First
214 property bool serverChecked: backendInfo.incomingMessageVibrate216 property bool serverChecked: backendInfo.incomingMessageVibrate
215 onServerCheckedChanged: checked = serverChecked217 onServerCheckedChanged: checked = serverChecked
216 Component.onCompleted: checked = serverChecked218 Component.onCompleted: checked = serverChecked
@@ -219,9 +221,10 @@
219 text: i18n.tr("Vibrate with message sound")221 text: i18n.tr("Vibrate with message sound")
220 }222 }
221223
222 ListItem.Standard {224 SettingsListItems.Standard {
223 control: CheckBox {225 CheckBox {
224 objectName: "messageVibrateSilentMode"226 objectName: "messageVibrateSilentMode"
227 SlotsLayout.position: SlotsLayout.First
225 property bool serverChecked: backendInfo.incomingMessageVibrateSilentMode228 property bool serverChecked: backendInfo.incomingMessageVibrateSilentMode
226 onServerCheckedChanged: checked = serverChecked229 onServerCheckedChanged: checked = serverChecked
227 Component.onCompleted: checked = serverChecked230 Component.onCompleted: checked = serverChecked
@@ -235,10 +238,10 @@
235 text: i18n.tr("Other sounds:")238 text: i18n.tr("Other sounds:")
236 }239 }
237240
238 ListItem.Standard {241 SettingsListItems.Standard {
239 text: i18n.tr("Keyboard sound")242 text: i18n.tr("Keyboard sound")
240243
241 control: Switch {244 Switch {
242 objectName: "keyboardSoundSwitch"245 objectName: "keyboardSoundSwitch"
243 property bool serverChecked: keyboardSettings.keyPressFeedback246 property bool serverChecked: keyboardSettings.keyPressFeedback
244 onServerCheckedChanged: checked = serverChecked247 onServerCheckedChanged: checked = serverChecked
@@ -247,20 +250,25 @@
247 }250 }
248 }251 }
249252
250 ListItem.Standard {253 SettingsListItems.Standard {
251 id: lockSound254 id: lockSound
252 control: Switch {255
256 Switch {
253 checked: false257 checked: false
254 }258 }
255 text: i18n.tr("Lock sound")259 text: i18n.tr("Lock sound")
256 visible: showAllUI260 visible: showAllUI
257 }261 }
258262
259 ListItem.Divider {}263 /* Add some artificial spacing here, once we update the QtQuick.Layouts plugin
264 * to 1.3 we can replace this with Layout.bottomMargin(units.gu(2))
265 */
266 Item { height: 1; width: 1 }
260267
261 ListItem.Standard {268 SettingsListItems.Standard {
262 text: i18n.tr("Other vibrations")269 text: i18n.tr("Other vibrations")
263 control: Switch {270
271 Switch {
264 objectName: "otherVibrateSwitch"272 objectName: "otherVibrateSwitch"
265 property bool serverChecked: backendInfo.otherVibrate273 property bool serverChecked: backendInfo.otherVibrate
266 onServerCheckedChanged: checked = serverChecked274 onServerCheckedChanged: checked = serverChecked
267275
=== modified file 'plugins/system-update/EntryComponent.qml'
--- plugins/system-update/EntryComponent.qml 2015-08-10 13:31:45 +0000
+++ plugins/system-update/EntryComponent.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of system-settings2 * This file is part of system-settings
3 *3 *
4 * Copyright (C) 2014 Canonical Ltd.4 * Copyright (C) 2014-2016 Canonical Ltd.
5 *5 *
6 * Contact: Diego Sarmentero <diego.sarmentero@canonical.com>6 * Contact: Diego Sarmentero <diego.sarmentero@canonical.com>
7 *7 *
@@ -20,19 +20,28 @@
2020
21import QtQuick 2.421import QtQuick 2.4
22import Ubuntu.Components 1.322import Ubuntu.Components 1.3
23import Ubuntu.Components.ListItems 1.3 as ListItem
24import Ubuntu.SystemSettings.Update 1.023import Ubuntu.SystemSettings.Update 1.0
2524
26ListItem.SingleValue {25ListItem {
27 id: root26 id: root
28 text: i18n.tr(model.displayName)
29 objectName: "entryComponent-updates"27 objectName: "entryComponent-updates"
30 iconSource: Qt.resolvedUrl(model.icon)
31 iconFrame: false
32 progression: true
33 value: updatesAvailable > 0 ? updatesAvailable : ""
34
35 property int updatesAvailable: 028 property int updatesAvailable: 0
29 height: layout.height
30
31 ListItemLayout {
32 id: layout
33 title.text: i18n.tr(model.displayName)
34 Icon {
35 SlotsLayout.position: SlotsLayout.Leading;
36 SlotsLayout.padding { top: 0; bottom: 0 }
37 source: model.icon
38 height: units.gu(5)
39 }
40 Label {
41 text: updatesAvailable > 0 ? updatesAvailable : ""
42 }
43 ProgressionSlot {}
44 }
3645
37 function _updatesRefresh() {46 function _updatesRefresh() {
38 var _updatesAvailable = 0;47 var _updatesAvailable = 0;
3948
=== modified file 'plugins/time-date/ChooseTimeZone.qml'
--- plugins/time-date/ChooseTimeZone.qml 2016-04-05 19:07:33 +0000
+++ plugins/time-date/ChooseTimeZone.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of system-settings2 * This file is part of system-settings
3 *3 *
4 * Copyright (C) 2013-2014 Canonical Ltd.4 * Copyright (C) 2013-2016 Canonical Ltd.
5 *5 *
6 * Contact: Iain Lane <iain.lane@canonical.com>6 * Contact: Iain Lane <iain.lane@canonical.com>
7 *7 *
@@ -20,6 +20,7 @@
2020
21import QtQuick 2.421import QtQuick 2.4
22import SystemSettings 1.022import SystemSettings 1.0
23import SystemSettings.ListItems 1.0 as SettingsListItems
23import Ubuntu.Components 1.324import Ubuntu.Components 1.3
24import Ubuntu.Components.ListItems 1.3 as ListItem25import Ubuntu.Components.ListItems 1.3 as ListItem
25import Ubuntu.SystemSettings.TimeDate 1.126import Ubuntu.SystemSettings.TimeDate 1.1
@@ -52,7 +53,7 @@
52 visible: showAllUI53 visible: showAllUI
53 }54 }
5455
55 ListItem.Standard {56 SettingsListItems.Standard {
56 anchors.top: setTimeZoneSelector.bottom57 anchors.top: setTimeZoneSelector.bottom
57 text: timeDatePanel.timeZoneName58 text: timeDatePanel.timeZoneName
58 enabled: false59 enabled: false
@@ -96,7 +97,7 @@
9697
97 model: timeDatePanel.timeZoneModel98 model: timeDatePanel.timeZoneModel
98 visible: setTimeZoneSelector.selectedIndex == 1 && count > 099 visible: setTimeZoneSelector.selectedIndex == 1 && count > 0
99 delegate: ListItem.Standard {100 delegate: SettingsListItems.Standard {
100 text: displayName101 text: displayName
101 // If a timezone is manually selected, record which one so that102 // If a timezone is manually selected, record which one so that
102 // we highlight that one only. Usually all cities in that timezone103 // we highlight that one only. Usually all cities in that timezone
103104
=== modified file 'plugins/time-date/PageComponent.qml'
--- plugins/time-date/PageComponent.qml 2016-04-05 19:07:33 +0000
+++ plugins/time-date/PageComponent.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of system-settings2 * This file is part of system-settings
3 *3 *
4 * Copyright (C) 2013 Canonical Ltd.4 * Copyright (C) 2013-2016 Canonical Ltd.
5 *5 *
6 * Contact: Iain Lane <iain.lane@canonical.com>6 * Contact: Iain Lane <iain.lane@canonical.com>
7 *7 *
@@ -20,8 +20,9 @@
2020
21import QtQuick 2.421import QtQuick 2.4
22import SystemSettings 1.022import SystemSettings 1.0
23import SystemSettings.ListItems 1.0 as SettingsListItems
23import Ubuntu.Components 1.324import Ubuntu.Components 1.3
24import Ubuntu.Components.ListItems 1.3 as ListItem25import Ubuntu.Components.ListItems 1.3 as ListItems
25import Ubuntu.Components.Popups 1.326import Ubuntu.Components.Popups 1.3
26import Ubuntu.SystemSettings.TimeDate 1.127import Ubuntu.SystemSettings.TimeDate 1.1
2728
@@ -62,12 +63,11 @@
6263
63 SettingsItemTitle { text: i18n.tr ("Time zone:") }64 SettingsItemTitle { text: i18n.tr ("Time zone:") }
6465
65 ListItem.SingleValue {66 SettingsListItems.SingleValueProgression {
66 objectName: "timeZone"67 objectName: "timeZone"
67 id: timeZone68 id: timeZone
68 text: timeDatePanel.timeZoneName69 text: timeDatePanel.timeZoneName
69 value: getUTCOffset()70 value: getUTCOffset()
70 progression: true
71 onClicked: pageStack.push(Qt.resolvedUrl("ChooseTimeZone.qml"), {71 onClicked: pageStack.push(Qt.resolvedUrl("ChooseTimeZone.qml"), {
72 timeDatePanel: timeDatePanel72 timeDatePanel: timeDatePanel
73 })73 })
@@ -77,7 +77,7 @@
77 text: i18n.tr ("Set the time and date:")77 text: i18n.tr ("Set the time and date:")
78 }78 }
7979
80 ListItem.ItemSelector {80 ListItems.ItemSelector {
81 id: setTimeAutomatically81 id: setTimeAutomatically
82 objectName: "timeItemSelector"82 objectName: "timeItemSelector"
83 model: [ i18n.tr("Automatically") , i18n.tr("Manually")]83 model: [ i18n.tr("Automatically") , i18n.tr("Manually")]
@@ -108,11 +108,11 @@
108 TimePicker {}108 TimePicker {}
109 }109 }
110110
111 ListItem.Standard {111 SettingsListItems.StandardProgression {
112 id: currentTime112 id: currentTime
113 objectName: "currentTime"113 objectName: "currentTime"
114 progression: setTimeAutomatically.selectedIndex === 1 // Manually114 progressionVisible: setTimeAutomatically.selectedIndex === 1 // Manually
115 enabled: progression115 enabled: progressionVisible
116 onClicked: {116 onClicked: {
117 Qt.inputMethod.hide()117 Qt.inputMethod.hide()
118 var popupObj = PopupUtils.open(timePicker);118 var popupObj = PopupUtils.open(timePicker);
119119
=== modified file 'plugins/time-date/Scroller.qml'
--- plugins/time-date/Scroller.qml 2015-08-10 13:31:45 +0000
+++ plugins/time-date/Scroller.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,8 @@
1/*1/*
2 * Copyright (C) 2013 Michael Zanetti <michael_zanetti@gmx.net>2 * Copyright (C) 2013 Michael Zanetti <michael_zanetti@gmx.net>
3 * (C) 2013 Canonical Ltd3 * (C) 2013-2016 Canonical Ltd
4 * Canonical modifications by Iain Lane <iain.lane@canonical.com>4 * Canonical modifications by Iain Lane <iain.lane@canonical.com>,
5 * Jonas G. Drange <jonas.drange@canonical.com>
5 *6 *
6 * This program is free software; you can redistribute it and/or modify7 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by8 * it under the terms of the GNU General Public License as published by
@@ -17,6 +18,7 @@
17 */18 */
1819
19import QtQuick 2.420import QtQuick 2.4
21import SystemSettings.ListItems 1.0 as SettingsListItems
20import Ubuntu.Components 1.322import Ubuntu.Components 1.3
21import Ubuntu.Components.ListItems 1.3 as ListItems23import Ubuntu.Components.ListItems 1.3 as ListItems
2224
@@ -106,13 +108,10 @@
106 preferredHighlightEnd: 0.5108 preferredHighlightEnd: 0.5
107 clip: true109 clip: true
108110
109 delegate: ListItems.Standard {111 delegate: SettingsListItems.Standard {
110 width: parent.width112 width: parent.width
111 highlightWhenPressed: false113 highlightWhenPressed: false
112 Label {114 text: modelData
113 anchors.centerIn: parent
114 text: modelData
115 }
116 showDivider: false115 showDivider: false
117 onClicked: listView.currentIndex = index116 onClicked: listView.currentIndex = index
118 }117 }
119118
=== modified file 'plugins/time-date/TimePicker.qml'
--- plugins/time-date/TimePicker.qml 2015-08-10 13:31:45 +0000
+++ plugins/time-date/TimePicker.qml 2016-07-22 14:36:34 +0000
@@ -1,6 +1,6 @@
1/*1/*
2 * Copyright (C) 2013 Michael Zanetti <michael_zanetti@gmx.net>2 * Copyright (C) 2013 Michael Zanetti <michael_zanetti@gmx.net>
3 * 2013 Canonical Ltd3 * 2013-2016 Canonical Ltd
4 * Canonical modifications by Iain Lane <iain.lane@canonical.com>4 * Canonical modifications by Iain Lane <iain.lane@canonical.com>
5 *5 *
6 * This program is free software; you can redistribute it and/or modify6 * This program is free software; you can redistribute it and/or modify
@@ -18,7 +18,6 @@
1818
19import QtQuick 2.419import QtQuick 2.4
20import Ubuntu.Components 1.320import Ubuntu.Components 1.3
21import Ubuntu.Components.ListItems 1.3 as ListItem
22import Ubuntu.Components.Popups 1.321import Ubuntu.Components.Popups 1.3
2322
24Dialog {23Dialog {
2524
=== modified file 'plugins/time-date/settings-time-date.svg'
--- plugins/time-date/settings-time-date.svg 2013-06-28 15:20:36 +0000
+++ plugins/time-date/settings-time-date.svg 2016-07-22 14:36:34 +0000
@@ -9,14 +9,15 @@
9 xmlns="http://www.w3.org/2000/svg"9 xmlns="http://www.w3.org/2000/svg"
10 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"10 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"11 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
12 width="90"12 width="96"
13 height="90"13 height="96"
14 id="svg3180"14 id="svg4874"
15 version="1.1"15 version="1.1"
16 inkscape:version="0.48+devel r12322"16 inkscape:version="0.91+devel r"
17 sodipodi:docname="setting-time-date.svg">17 viewBox="0 0 96 96.000001"
18 sodipodi:docname="calendar.svg">
18 <defs19 <defs
19 id="defs3182" />20 id="defs4876" />
20 <sodipodi:namedview21 <sodipodi:namedview
21 id="base"22 id="base"
22 pagecolor="#ffffff"23 pagecolor="#ffffff"
@@ -24,18 +25,95 @@
24 borderopacity="1.0"25 borderopacity="1.0"
25 inkscape:pageopacity="0.0"26 inkscape:pageopacity="0.0"
26 inkscape:pageshadow="2"27 inkscape:pageshadow="2"
27 inkscape:zoom="5.0931703"28 inkscape:zoom="7.0249991"
28 inkscape:cx="45.796623"29 inkscape:cx="-11.409258"
29 inkscape:cy="25.966145"30 inkscape:cy="72.576504"
30 inkscape:document-units="px"31 inkscape:document-units="px"
31 inkscape:current-layer="g3855"32 inkscape:current-layer="g4780"
32 showgrid="false"33 showgrid="true"
34 showborder="true"
33 fit-margin-top="0"35 fit-margin-top="0"
34 fit-margin-left="0"36 fit-margin-left="0"
35 fit-margin-right="0"37 fit-margin-right="0"
36 fit-margin-bottom="0" />38 fit-margin-bottom="0"
39 inkscape:snap-bbox="true"
40 inkscape:bbox-paths="true"
41 inkscape:bbox-nodes="true"
42 inkscape:snap-bbox-edge-midpoints="true"
43 inkscape:snap-bbox-midpoints="true"
44 inkscape:object-paths="true"
45 inkscape:snap-intersection-paths="true"
46 inkscape:object-nodes="true"
47 inkscape:snap-smooth-nodes="true"
48 inkscape:snap-midpoints="true"
49 inkscape:snap-object-midpoints="true"
50 inkscape:snap-center="true"
51 showguides="true"
52 inkscape:guide-bbox="true"
53 inkscape:snap-global="true">
54 <inkscape:grid
55 type="xygrid"
56 id="grid5451"
57 empspacing="8" />
58 <sodipodi:guide
59 orientation="1,0"
60 position="8,-8.0000001"
61 id="guide4063" />
62 <sodipodi:guide
63 orientation="1,0"
64 position="4,-8.0000001"
65 id="guide4065" />
66 <sodipodi:guide
67 orientation="0,1"
68 position="-8,88.000001"
69 id="guide4067" />
70 <sodipodi:guide
71 orientation="0,1"
72 position="-8,92.000001"
73 id="guide4069" />
74 <sodipodi:guide
75 orientation="0,1"
76 position="104,4"
77 id="guide4071" />
78 <sodipodi:guide
79 orientation="0,1"
80 position="-5,8.0000001"
81 id="guide4073" />
82 <sodipodi:guide
83 orientation="1,0"
84 position="92,-8.0000001"
85 id="guide4075" />
86 <sodipodi:guide
87 orientation="1,0"
88 position="88,-8.0000001"
89 id="guide4077" />
90 <sodipodi:guide
91 orientation="0,1"
92 position="-8,84.000001"
93 id="guide4074" />
94 <sodipodi:guide
95 orientation="1,0"
96 position="12,-8.0000001"
97 id="guide4076" />
98 <sodipodi:guide
99 orientation="0,1"
100 position="-5,12"
101 id="guide4078" />
102 <sodipodi:guide
103 orientation="1,0"
104 position="84,-9.0000001"
105 id="guide4080" />
106 <sodipodi:guide
107 position="48,-8.0000001"
108 orientation="1,0"
109 id="guide4170" />
110 <sodipodi:guide
111 position="-8,48"
112 orientation="0,1"
113 id="guide4172" />
114 </sodipodi:namedview>
37 <metadata115 <metadata
38 id="metadata3185">116 id="metadata4879">
39 <rdf:RDF>117 <rdf:RDF>
40 <cc:Work118 <cc:Work
41 rdf:about="">119 rdf:about="">
@@ -50,49 +128,55 @@
50 inkscape:label="Layer 1"128 inkscape:label="Layer 1"
51 inkscape:groupmode="layer"129 inkscape:groupmode="layer"
52 id="layer1"130 id="layer1"
53 transform="translate(456.42857,-738.79075)">131 transform="translate(67.857146,-78.50504)">
54 <g132 <g
55 transform="translate(-2258.4286,438.42854)"133 transform="matrix(0,-1,-1,0,373.50506,516.50504)"
56 id="g3855">134 id="g4845"
57 <rect135 style="display:inline">
58 style="opacity:0.00100002;color:#000000;fill:#000000;stroke:none;stroke-width:4;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"136 <g
59 id="rect3508"137 inkscape:export-ydpi="90"
60 width="90"138 inkscape:export-xdpi="90"
61 height="90"139 inkscape:export-filename="next01.png"
62 x="1802"140 transform="matrix(-0.9996045,0,0,1,575.94296,-611.00001)"
63 y="300.36221" />141 id="g4778"
64 <path142 inkscape:label="Layer 1">
65 style="opacity:0.25;color:#000000;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"143 <g
66 d="M 42.03125 17.90625 C 28.696483 17.90625 17.90625 28.696483 17.90625 42.03125 C 17.90625 55.366017 28.696483 66.1875 42.03125 66.1875 C 42.375083 66.1875 42.722167 66.170482 43.0625 66.15625 L 43.0625 57.03125 C 43.0623 57.01015 43.0623 56.9587 43.0625 56.9375 C 43.0754 55.34598 43.14325 53.93091 43.59375 52.4375 C 44.10005 50.75898 45.19045 49.17944 46.90625 48.28125 C 48.739875 47.321381 50.599515 47.104599 52.875 47.0625 C 54.240291 47.037241 55.760413 47.0625 57.5 47.0625 L 64.5 47.0625 C 64.920635 47.0625 65.261076 47.066095 65.65625 47.0625 C 65.999321 45.441705 66.1875 43.75422 66.1875 42.03125 C 66.1875 28.696483 55.366017 17.90625 42.03125 17.90625 z "144 transform="matrix(-1,0,0,1,575.99999,611)"
67 transform="translate(1802,300.36221)"145 id="g4780"
68 id="path3510" />146 style="display:inline">
69 <path147 <rect
70 style="font-size:xx-small;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;color-interpolation:sRGB;color-interpolation-filters:linearRGB;fill:#808080;fill-opacity:1;stroke:none;stroke-width:3.3547709;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;clip-rule:nonzero;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;font-family:sans-serif;-inkscape-font-specification:sans-serif"148 style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:none;stroke:none;stroke-width:4;marker:none;enable-background:accumulate"
71 d="M 42.03125 15 C 27.12175 15 15 27.12173 15 42.03125 C 15 56.94077 27.12175 69.09375 42.03125 69.09375 C 42.372987 69.09375 42.723784 69.075144 43.0625 69.0625 C 43.062407 69.05177 43.062588 69.041996 43.0625 69.03125 C 43.0624 69.01715 43.0625 68.98285 43.0625 68.96875 L 43.0625 65.03125 C 42.720305 65.046238 42.377238 65.0625 42.03125 65.0625 C 29.28355 65.0625 19 54.779 19 42.03125 C 19 29.28349 29.28355 19 42.03125 19 C 54.77905 19 65.0625 29.28349 65.0625 42.03125 C 65.0625 43.758289 64.857909 45.445501 64.5 47.0625 C 66.037863 47.0625 67.386959 47.021872 68.625 47.03125 C 68.929484 45.410259 69.09375 43.738953 69.09375 42.03125 C 69.09375 27.12173 56.94075 15 42.03125 15 z "149 id="rect4782"
72 transform="translate(1802,300.36221)"150 width="96.037987"
73 id="path3512" />151 height="96"
74 <path152 x="-438.00244"
75 style="font-size:xx-small;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;color-interpolation:sRGB;color-interpolation-filters:linearRGB;fill:#808080;fill-opacity:1;stroke:none;stroke-width:3.99999976;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;clip-rule:nonzero;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;font-family:sans-serif;-inkscape-font-specification:sans-serif"153 y="345.36221"
76 d="m 1846,323.34375 -4,0.0312 0,2 0.031,16.0625 0,2 4,-0.0312 0,-2 L 1846,325.34375 1846,323.34375 Z"154 transform="scale(-1,1)" />
77 id="path3516"155 <g
78 inkscape:connector-curvature="0" />156 transform="matrix(0,-0.99980223,-1.0001978,0,0,0)"
79 <path157 style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:48.03580475px;line-height:125%;font-family:Ubuntu;-inkscape-font-specification:Ubuntu;text-align:end;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:end;fill:#808080;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
80 style="font-size:xx-small;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;color-interpolation:sRGB;color-interpolation-filters:linearRGB;fill:#808080;fill-opacity:1;stroke:none;stroke-width:3.99999976;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;clip-rule:nonzero;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;font-family:sans-serif;-inkscape-font-specification:sans-serif"158 id="text4416">
81 d="m 1831,340.375 0,4 2,0 11,0 2,0 0,-4 -2,0 -11,0 L 1831,340.375 Z"159 <path
82 id="path3518"160 d="m -397.70209,-392.6432 q 0,1.72929 -0.72054,3.36251 -0.6725,1.58518 -1.82536,3.17036 -1.15286,1.53715 -2.59393,3.0743 -1.44108,1.48911 -2.88215,2.93018 -0.81661,0.81661 -1.92143,1.92143 -1.05679,1.10483 -2.01751,2.30572 -0.96071,1.2009 -1.63321,2.30572 -0.62447,1.10482 -0.62447,1.92143 l 15.32342,0 0,3.79483 -20.17503,0 q -0.048,-0.28821 -0.048,-0.57643 0,-0.28821 0,-0.52839 0,-2.25769 0.72054,-4.17912 0.76857,-1.96947 1.96946,-3.69876 1.2009,-1.72928 2.69001,-3.26643 1.48911,-1.53715 2.93018,-2.97822 1.2009,-1.15286 2.25769,-2.25768 1.10482,-1.15286 1.92143,-2.25769 0.86464,-1.15286 1.345,-2.35375 0.5284,-1.2009 0.5284,-2.5459 0,-1.44107 -0.48036,-2.44982 -0.43233,-1.00876 -1.2009,-1.68126 -0.76857,-0.6725 -1.82536,-0.96071 -1.00875,-0.33625 -2.16161,-0.33625 -1.39304,0 -2.5459,0.38428 -1.15286,0.38429 -2.06554,0.91268 -0.91268,0.48036 -1.53714,1.05679 -0.62447,0.52839 -0.96072,0.81661 l -2.20965,-3.17036 q 0.43233,-0.48036 1.29697,-1.15286 0.86465,-0.72054 2.06554,-1.34501 1.2009,-0.62446 2.69001,-1.05678 1.48911,-0.43233 3.21839,-0.43233 5.23591,0 7.82984,2.44983 2.64197,2.40179 2.64197,6.82108 z"
83 inkscape:connector-curvature="0" />161 style=""
84 <path162 id="path4162" />
85 style="color:#000000;fill:#808080;fill-opacity:1;stroke:none;stroke-width:3.99999976;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"163 <path
86 d="M 54.34375 51 C 47.853339 51.092144 47.042087 51.799787 47 57 L 47 69 C 47.048 74.94321 48.1185 75 57.5 75 L 64.5 75 C 73.8815 75 74.952 74.94309 75 69 L 75 57 C 74.9519 51.05662 73.8815 51 64.5 51 L 57.5 51 C 56.327312 51 55.270952 50.986837 54.34375 51 z M 55.375 57 C 55.800753 56.993511 56.274025 57 56.8125 57 L 57.1875 57 C 61.4953 57 61.9779 57.02469 62 60 L 62 66 C 61.9779 68.9752 61.4953 69 57.1875 69 L 56.8125 69 C 52.5047 69 52.022 68.97523 52 66 L 52 60 C 52.019338 57.3967 52.394732 57.045423 55.375 57 z M 66 57 L 69 57 L 69 69 L 66 69 L 66 61 L 64 61 L 64 59 L 66 57 z "164 d="m -383.46173,-388.31997 q 7.25341,0.28821 10.61592,3.17036 3.41054,2.88215 3.41054,7.82984 0,2.20964 -0.76857,4.08304 -0.72054,1.8734 -2.25769,3.2184 -1.48911,1.345 -3.79482,2.11357 -2.30572,0.76858 -5.47609,0.76858 -1.24893,0 -2.54589,-0.19215 -1.29697,-0.19214 -2.40179,-0.48035 -1.10483,-0.28822 -1.96947,-0.57643 -0.86465,-0.28822 -1.24893,-0.48036 l 0.86464,-3.8909 q 0.81661,0.38428 2.64197,1.00875 1.8734,0.62447 4.5634,0.62447 2.16161,0 3.60269,-0.48036 1.48911,-0.48036 2.40179,-1.29697 0.91268,-0.81661 1.29696,-1.8734 0.43233,-1.10482 0.43233,-2.30571 0,-1.82537 -0.62447,-3.2184 -0.62446,-1.44108 -2.20965,-2.40179 -1.58518,-0.96072 -4.22715,-1.44108 -2.64197,-0.52839 -6.67697,-0.52839 0.28821,-2.35376 0.43232,-4.4193 0.19214,-2.06554 0.33625,-4.035 0.14411,-1.96947 0.24018,-3.8909 0.0961,-1.96947 0.19214,-4.13108 l 16.04396,0 0,3.79483 -12.15306,0 q -0.048,0.72053 -0.14411,1.96946 -0.0961,1.2009 -0.19214,2.5459 -0.0961,1.29697 -0.19214,2.5459 -0.0961,1.24893 -0.19215,1.96947 z"
87 transform="translate(1802,300.36221)"165 style=""
88 id="path3520" />166 id="path4164" />
89 <rect167 </g>
90 style="color:#000000;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:4;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"168 <path
91 id="rect3544"169 style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:4.00079155;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
92 width="4"170 d="M 23.976562 8.0019531 C 18.943803 8.0601401 15.26124 7.881546 12.25 9.5429688 C 10.74438 10.37368 9.5531414 11.778707 8.8945312 13.533203 C 8.2359314 15.287699 7.9980469 17.369641 7.9980469 20 L 7.9980469 48.001953 L 7.9980469 76 C 7.9980469 78.630359 8.2359314 80.714254 8.8945312 82.46875 C 9.5531414 84.223246 10.74438 85.62632 12.25 86.457031 C 15.26124 88.118454 18.943803 87.941823 23.976562 88 L 23.988281 88 L 47.998047 88 L 72.009766 88 L 72.021484 88 C 77.054244 87.94182 80.736807 88.118454 83.748047 86.457031 C 85.253667 85.62632 86.444916 84.223246 87.103516 82.46875 C 87.762113 80.714254 88 78.630359 88 76 L 88 48.001953 L 83.998047 48.001953 L 83.998047 76 C 83.998047 78.369642 83.747742 80.022711 83.357422 81.0625 C 82.967112 82.102279 82.547973 82.550368 81.814453 82.955078 C 80.350163 83.762988 77.036307 83.941223 71.998047 84 L 71.974609 84 L 47.998047 84 L 24.021484 84 L 24 84 C 18.96042 83.941263 15.648104 83.763108 14.183594 82.955078 C 13.450074 82.550368 13.030935 82.102279 12.640625 81.0625 C 12.250305 80.022711 12 78.369642 12 76 L 12 48.001953 L 12 32 C 12 29.630358 12.250305 27.977279 12.640625 26.9375 C 13.030935 25.897711 13.450074 25.449632 14.183594 25.044922 C 15.650624 24.235492 18.967304 24.058477 24.021484 24 L 47.998047 24 L 71.998047 24 C 77.036307 24.05877 80.350163 24.237002 81.814453 25.044922 C 82.547973 25.449632 82.967112 25.897711 83.357422 26.9375 C 83.747742 27.977279 83.998047 29.630358 83.998047 32 L 83.998047 48 L 88 48 L 88 20 C 88 17.369641 87.762116 15.287699 87.103516 13.533203 C 86.444916 11.778707 85.253667 10.37368 83.748047 9.5429688 C 80.736807 7.881546 77.054244 8.0601301 72.021484 8.0019531 L 72.009766 8.0019531 L 72 8.0019531 L 72 16 L 66 16 L 66 8.0019531 L 30 8.0019531 L 30 16 L 24 16 L 24 8.0019531 L 23.988281 8.0019531 L 23.976562 8.0019531 z "
93 height="6"171 transform="matrix(0,-1,-1.0003957,0,438.00245,441.36222)"
94 x="1857"172 id="path4410" />
95 y="360.36221" />173 <path
174 style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:10;marker:none;enable-background:accumulate"
175 d="M 30 0 L 24 1 L 24 8 L 30 8 L 30 0 z M 72 0 L 66 1 L 66 8 L 72 8 L 72 0 z "
176 transform="matrix(0,-1,-1.0003957,0,438.00245,441.36222)"
177 id="path4430" />
178 </g>
179 </g>
96 </g>180 </g>
97 </g>181 </g>
98</svg>182</svg>
99183
=== modified file 'plugins/wifi/AccessPoint.qml'
--- plugins/wifi/AccessPoint.qml 2015-08-10 13:31:45 +0000
+++ plugins/wifi/AccessPoint.qml 2016-07-22 14:36:34 +0000
@@ -1,5 +1,5 @@
1/*1/*
2 * Copyright 2013 Canonical Ltd.2 * Copyright 2013-2016 Canonical Ltd.
3 *3 *
4 * This program is free software; you can redistribute it and/or modify4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by5 * it under the terms of the GNU General Public License as published by
@@ -28,19 +28,6 @@
28 property bool secure: false28 property bool secure: false
29 property bool adHoc: false29 property bool adHoc: false
30 property int signalStrength: 030 property int signalStrength: 0
31
32 signal activate()
33
34 onCheckedChanged: {
35 // Can't rely on binding. Checked is assigned on click.
36 checkBoxActive.checked = checked;
37
38 // if stack has NetworkDetailsBrief, pop it
39 if (pageStack.depth === 3) {
40 pageStack.pop();
41 }
42 }
43
44 iconName: {31 iconName: {
45 var imageName = "nm-signal-100"32 var imageName = "nm-signal-100"
4633
@@ -61,16 +48,18 @@
61 }48 }
62 return imageName;49 return imageName;
63 }50 }
6451 layout.subtitle.text: checked ? i18n.tr("Connected") : ""
65 iconFrame: false52
66 control: CheckBox {53 signal activate()
67 id: checkBoxActive54
6855 onCheckedChanged: {
69 onClicked: {56 // if stack has NetworkDetailsBrief, pop it
70 accessPoint.activate();57 if (pageStack.depth === 3) {
58 pageStack.pop();
71 }59 }
72 }60 }
73 progression: checked61
62 progressionVisible: checked
74 onClicked: {63 onClicked: {
75 if (checked) {64 if (checked) {
76 pageStack.push(Qt.resolvedUrl("NetworkDetailsBrief.qml"),65 pageStack.push(Qt.resolvedUrl("NetworkDetailsBrief.qml"),
7766
=== modified file 'plugins/wifi/DivMenuItem.qml'
--- plugins/wifi/DivMenuItem.qml 2015-08-10 13:31:45 +0000
+++ plugins/wifi/DivMenuItem.qml 2016-07-22 14:36:34 +0000
@@ -1,5 +1,5 @@
1/*1/*
2 * Copyright 2013 Canonical Ltd.2 * Copyright 2013-2016 Canonical Ltd.
3 *3 *
4 * This program is free software; you can redistribute it and/or modify4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by5 * it under the terms of the GNU General Public License as published by
@@ -18,8 +18,8 @@
18 */18 */
1919
20import QtQuick 2.420import QtQuick 2.4
21import Ubuntu.Components.ListItems 1.3 as ListItem21import Ubuntu.Components 1.3
2222
23ListItem.Empty {23ListItemLayout {
24 height: units.gu(3)24 height: units.gu(3)
25}25}
2626
=== modified file 'plugins/wifi/FramedMenuItem.qml'
--- plugins/wifi/FramedMenuItem.qml 2015-08-10 13:31:45 +0000
+++ plugins/wifi/FramedMenuItem.qml 2016-07-22 14:36:34 +0000
@@ -1,5 +1,5 @@
1/*1/*
2 * Copyright 2013 Canonical Ltd.2 * Copyright 2013-2016 Canonical Ltd.
3 *3 *
4 * This program is free software; you can redistribute it and/or modify4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by5 * it under the terms of the GNU General Public License as published by
@@ -19,7 +19,11 @@
19 */19 */
2020
21import QtQuick 2.421import QtQuick 2.4
22import SystemSettings.ListItems 1.0 as SettingsListItems
22import Ubuntu.Components 1.323import Ubuntu.Components 1.3
23import Ubuntu.Components.ListItems 1.3 as ListItem
2424
25ListItem.Standard {}25SettingsListItems.IconProgression {
26 // FIXME: use padding + padding + icon width
27 divider.anchors.leftMargin: units.gu(6)
28 layout.subtitle.color: UbuntuColors.green
29}
2630
=== modified file 'plugins/wifi/MenuItemFactory.qml'
--- plugins/wifi/MenuItemFactory.qml 2015-08-10 13:31:45 +0000
+++ plugins/wifi/MenuItemFactory.qml 2016-07-22 14:36:34 +0000
@@ -1,5 +1,5 @@
1/*1/*
2 * Copyright 2013 Canonical Ltd.2 * Copyright 2013-2016 Canonical Ltd.
3 *3 *
4 * This program is free software; you can redistribute it and/or modify4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by5 * it under the terms of the GNU General Public License as published by
@@ -15,7 +15,7 @@
15 *15 *
16 * Authors:16 * Authors:
17 * Nick Dedekind <nick.dedekind@canonical.com>17 * Nick Dedekind <nick.dedekind@canonical.com>
18 */18 */
1919
20import QtQuick 2.420import QtQuick 2.4
21import QMenuModel 0.1 as QMenuModel21import QMenuModel 0.1 as QMenuModel
@@ -65,7 +65,7 @@
65 property int menuIndex: -165 property int menuIndex: -1
6666
67 text: menu && menu.label ? menu.label : ""67 text: menu && menu.label ? menu.label : ""
68 icon: menu ? menu.icon : ""68 iconName: menu ? menu.icon : ""
69 checkable: menu ? (menu.isCheck || menu.isRadio) : false69 checkable: menu ? (menu.isCheck || menu.isRadio) : false
70 checked: checkable ? menu.isToggled : false70 checked: checkable ? menu.isToggled : false
71 enabled: menu ? menu.sensitive : false71 enabled: menu ? menu.sensitive : false
@@ -150,7 +150,7 @@
150 loadAttributes();150 loadAttributes();
151 }151 }
152152
153 USC.ServerPropertySynchroniser {153 resources: USC.ServerPropertySynchroniser {
154 userTarget: apItem154 userTarget: apItem
155 userProperty: "active"155 userProperty: "active"
156 userTrigger: "onActivate"156 userTrigger: "onActivate"
157157
=== modified file 'plugins/wifi/NetworkDetails.qml'
--- plugins/wifi/NetworkDetails.qml 2015-08-10 13:31:45 +0000
+++ plugins/wifi/NetworkDetails.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of system-settings2 * This file is part of system-settings
3 *3 *
4 * Copyright (C) 2013 Canonical Ltd.4 * Copyright (C) 2013-2016 Canonical Ltd.
5 *5 *
6 * Contact: Iain Lane <iain.lane@canonical.com>6 * Contact: Iain Lane <iain.lane@canonical.com>
7 *7 *
@@ -21,8 +21,8 @@
21import QtQuick 2.421import QtQuick 2.4
22import QtQuick.Layouts 1.122import QtQuick.Layouts 1.1
23import SystemSettings 1.023import SystemSettings 1.0
24import SystemSettings.ListItems 1.0 as SettingsListItems
24import Ubuntu.Components 1.325import Ubuntu.Components 1.3
25import Ubuntu.Components.ListItems 1.3 as ListItem
26import Ubuntu.SystemSettings.Wifi 1.026import Ubuntu.SystemSettings.Wifi 1.0
2727
28ItemPage {28ItemPage {
@@ -53,29 +53,24 @@
53 anchors.left: parent.left53 anchors.left: parent.left
54 anchors.right: parent.right54 anchors.right: parent.right
5555
56 ListItem.Standard {56 SettingsListItems.SingleValue {
57 text: i18n.tr("Name")57 text: i18n.tr("Name")
58 control: Label {58 value: networkName
59 text: networkName
60 }
61 }59 }
6260
63 ListItem.Standard {61 SettingsListItems.SingleValue {
64 id: lastLabel62 id: lastLabel
65 text: i18n.tr("Last connected")63 text: i18n.tr("Last connected")
66 control: Label {64 value: networkDetails.lastUsed.length !== 0 ?
67 id: lastField65 networkDetails.lastUsed : i18n.tr("Never")
68
69 text: networkDetails.lastUsed.length !== 0 ?
70 networkDetails.lastUsed : i18n.tr("Never")
71 }
72 }66 }
7367
74 ListItem.Standard {68 SettingsListItems.Standard {
75 id: passwordLabel69 id: passwordLabel
76 text: i18n.tr("Password")70 text: i18n.tr("Password")
77 visible: networkDetails.password.length !== 071 visible: networkDetails.password.length !== 0
78 control: TextInput {72
73 TextInput {
79 id: passwordField74 id: passwordField
80 readOnly: true75 readOnly: true
81 text: networkDetails.password76 text: networkDetails.password
@@ -84,28 +79,30 @@
84 }79 }
85 }80 }
8681
87 ListItem.Standard {82 SettingsListItems.Standard {
88 id: passwordVisible83 id: passwordVisible
89 text: i18n.tr("Show password")84 text: i18n.tr("Show password")
90 visible: networkDetails.password.length !== 085 visible: networkDetails.password.length !== 0
91 control: Switch {86
87 Switch {
92 id: passwordVisibleSwitch88 id: passwordVisibleSwitch
93 }89 }
94 }90 }
9591
96 ListItem.Divider {}92 SettingsListItems.SingleControl {
9793
98 Button {94 Button {
99 objectName: "forgetNetwork"95 objectName: "forgetNetwork"
100 text : i18n.tr("Forget this network")96 text : i18n.tr("Forget this network")
101 anchors {97 anchors {
102 left: parent.left98 left: parent.left
103 right: parent.right99 right: parent.right
104 margins: units.gu(2)100 margins: units.gu(2)
105 }101 }
106 onClicked : {102 onClicked : {
107 DbusHelper.forgetConnection(dbusPath);103 DbusHelper.forgetConnection(dbusPath);
108 pageStack.pop();104 pageStack.pop();
105 }
109 }106 }
110 }107 }
111 }108 }
112109
=== modified file 'plugins/wifi/NetworkDetailsBrief.qml'
--- plugins/wifi/NetworkDetailsBrief.qml 2015-08-10 13:31:45 +0000
+++ plugins/wifi/NetworkDetailsBrief.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of system-settings2 * This file is part of system-settings
3 *3 *
4 * Copyright (C) 2014 Canonical Ltd.4 * Copyright (C) 2014-2016 Canonical Ltd.
5 *5 *
6 * Contact: Jonas G. Drange <jonas.drange@canonical.com>6 * Contact: Jonas G. Drange <jonas.drange@canonical.com>
7 *7 *
@@ -21,8 +21,8 @@
21import QtQuick 2.421import QtQuick 2.4
22import QtQuick.Layouts 1.122import QtQuick.Layouts 1.1
23import SystemSettings 1.023import SystemSettings 1.0
24import SystemSettings.ListItems 1.0 as SettingsListItems
24import Ubuntu.Components 1.325import Ubuntu.Components 1.3
25import Ubuntu.Components.ListItems 1.3 as ListItem
26import Ubuntu.SystemSettings.Wifi 1.026import Ubuntu.SystemSettings.Wifi 1.0
2727
28ItemPage {28ItemPage {
@@ -48,27 +48,28 @@
48 anchors.left: parent.left48 anchors.left: parent.left
49 anchors.right: parent.right49 anchors.right: parent.right
5050
51 ListItem.Divider {}51 SettingsListItems.SingleControl {
5252 Button {
53 Button {53 text : i18n.tr("Forget this network")
54 text : i18n.tr("Forget this network")54 anchors {
55 anchors {55 left: parent.left
56 left: parent.left56 right: parent.right
57 right: parent.right57 margins: units.gu(2)
58 margins: units.gu(2)58 }
59 }59 onClicked: {
60 onClicked: {60 if (DbusHelper.forgetActiveDevice()) {
61 if (DbusHelper.forgetActiveDevice()) {61 accessPoint.checked = false;
62 accessPoint.checked = false;62 accessPoint.checkedChanged(false)
63 accessPoint.checkedChanged(false)63 }
64 }64 }
65 }65 }
66 }66 }
6767
68 ListItem.Standard {68 SettingsListItems.Standard {
69 text: i18n.tr("IP address")69 text: i18n.tr("IP address")
70 id: addressItem70 id: addressItem
71 control: TextField {71
72 TextField {
72 text: DbusHelper.wifiIp4Address73 text: DbusHelper.wifiIp4Address
73 readOnly: true74 readOnly: true
74 horizontalAlignment: TextInput.AlignRight75 horizontalAlignment: TextInput.AlignRight
7576
=== modified file 'plugins/wifi/OtherNetwork.qml'
--- plugins/wifi/OtherNetwork.qml 2016-03-11 15:07:14 +0000
+++ plugins/wifi/OtherNetwork.qml 2016-07-22 14:36:34 +0000
@@ -1,5 +1,5 @@
1/*1/*
2 * Copyright 2013 Canonical Ltd.2 * Copyright 2013-2016 Canonical Ltd.
3 *3 *
4 * This program is free software; you can redistribute it and/or modify4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by5 * it under the terms of the GNU General Public License as published by
@@ -18,7 +18,7 @@
18import QtQuick.Layouts 1.118import QtQuick.Layouts 1.1
19import SystemSettings 1.019import SystemSettings 1.0
20import Ubuntu.Components 1.320import Ubuntu.Components 1.3
21import Ubuntu.Components.ListItems 1.3 as ListItem21import Ubuntu.Components.ListItems 1.3 as ListItems
22import Ubuntu.Components.Popups 1.322import Ubuntu.Components.Popups 1.3
23import Ubuntu.SystemSettings.Wifi 1.023import Ubuntu.SystemSettings.Wifi 1.0
24import QMenuModel 0.124import QMenuModel 0.1
@@ -313,7 +313,7 @@
313 elide: Text.ElideRight313 elide: Text.ElideRight
314 }314 }
315315
316 ListItem.ItemSelector {316 ListItems.ItemSelector {
317 id: securityList317 id: securityList
318 objectName: "securityList"318 objectName: "securityList"
319 model: [i18n.tr("None"), // index: 0319 model: [i18n.tr("None"), // index: 0
@@ -346,7 +346,7 @@
346 securityList.selectedIndex === 4346 securityList.selectedIndex === 4
347 }347 }
348348
349 ListItem.ItemSelector {349 ListItems.ItemSelector {
350 id: authList350 id: authList
351 objectName: "authList"351 objectName: "authList"
352 model: ["TLS", // index: 0352 model: ["TLS", // index: 0
@@ -374,7 +374,7 @@
374 authList.selectedIndex === 4)374 authList.selectedIndex === 4)
375 }375 }
376376
377 ListItem.ItemSelector {377 ListItems.ItemSelector {
378 id: p2authList378 id: p2authList
379 objectName: "p2authList"379 objectName: "p2authList"
380 width: parent.width380 width: parent.width
@@ -407,7 +407,7 @@
407 authList.selectedIndex === 4)407 authList.selectedIndex === 4)
408 }408 }
409409
410 ListItem.ItemSelector {410 ListItems.ItemSelector {
411 id: cacertSelector411 id: cacertSelector
412 anchors {412 anchors {
413 left: parent.left413 left: parent.left
@@ -521,7 +521,7 @@
521521
522 }522 }
523523
524 ListItem.ItemSelector {524 ListItems.ItemSelector {
525 id: usercertSelector525 id: usercertSelector
526 anchors {526 anchors {
527 left: parent.left527 left: parent.left
@@ -586,7 +586,7 @@
586 }586 }
587 }587 }
588588
589 ListItem.ItemSelector {589 ListItems.ItemSelector {
590 id: privateKeySelector590 id: privateKeySelector
591 anchors {591 anchors {
592 left: parent.left592 left: parent.left
@@ -639,7 +639,7 @@
639 OptionSelectorDelegate { text: pacFileName; }639 OptionSelectorDelegate { text: pacFileName; }
640 }640 }
641641
642 ListItem.ItemSelector {642 ListItems.ItemSelector {
643 id: pacFileSelector643 id: pacFileSelector
644 anchors {644 anchors {
645 left: parent.left645 left: parent.left
@@ -681,7 +681,7 @@
681 (authList.selectedIndex === 3)681 (authList.selectedIndex === 3)
682 }682 }
683683
684 ListItem.ItemSelector {684 ListItems.ItemSelector {
685 id: pacProvisioningList685 id: pacProvisioningList
686 objectName: "pacProvisioningList"686 objectName: "pacProvisioningList"
687 model: [i18n.tr("Disabled"), // index: 0687 model: [i18n.tr("Disabled"), // index: 0
@@ -708,7 +708,7 @@
708 (authList.selectedIndex === 4)708 (authList.selectedIndex === 4)
709 }709 }
710710
711 ListItem.ItemSelector {711 ListItems.ItemSelector {
712 id: peapVersionList712 id: peapVersionList
713 objectName: "peapVersionList"713 objectName: "peapVersionList"
714 model: [i18n.tr("Version 0"), // index: 0714 model: [i18n.tr("Version 0"), // index: 0
715715
=== modified file 'plugins/wifi/PageComponent.qml'
--- plugins/wifi/PageComponent.qml 2016-04-13 18:49:49 +0000
+++ plugins/wifi/PageComponent.qml 2016-07-22 14:36:34 +0000
@@ -1,5 +1,5 @@
1/*1/*
2 * Copyright 2013 Canonical Ltd.2 * Copyright 2013-2016 Canonical Ltd.
3 *3 *
4 * This program is free software; you can redistribute it and/or modify4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by5 * it under the terms of the GNU General Public License as published by
@@ -16,8 +16,8 @@
1616
17import QtQuick 2.417import QtQuick 2.4
18import SystemSettings 1.018import SystemSettings 1.0
19import SystemSettings.ListItems 1.0 as SettingsListItems
19import Ubuntu.Components 1.320import Ubuntu.Components 1.3
20import Ubuntu.Components.ListItems 1.3 as ListItem
21import Ubuntu.Components.Popups 1.321import Ubuntu.Components.Popups 1.3
22import Ubuntu.SystemSettings.Wifi 1.022import Ubuntu.SystemSettings.Wifi 1.0
23import QMenuModel 0.123import QMenuModel 0.1
@@ -81,7 +81,6 @@
81 right: parent.right81 right: parent.right
82 }82 }
83 height: loader.height83 height: loader.height
84 visible: height > 0
8584
86 Loader {85 Loader {
87 id: loader86 id: loader
@@ -124,16 +123,7 @@
124 }123 }
125 }124 }
126125
127 ListItem.Divider {}126 SettingsListItems.Standard {
128
129 ListItem.SingleValue {
130 objectName: "previousNetwork"
131 text: i18n.tr("Previous networks")
132 progression: true
133 onClicked: pageStack.push(Qt.resolvedUrl("PreviousNetworks.qml"))
134 }
135
136 ListItem.SingleValue {
137 objectName: "connectToHiddenNetwork"127 objectName: "connectToHiddenNetwork"
138 text: i18n.tr("Connect to hidden network…")128 text: i18n.tr("Connect to hidden network…")
139 visible : wifibase.wifiEnabled129 visible : wifibase.wifiEnabled
@@ -143,6 +133,12 @@
143 }133 }
144 }134 }
145135
136 SettingsListItems.StandardProgression {
137 objectName: "previousNetwork"
138 text: i18n.tr("Previous networks")
139 onClicked: pageStack.push(Qt.resolvedUrl("PreviousNetworks.qml"))
140 }
141
146 Loader {142 Loader {
147 id: otherNetworLoader143 id: otherNetworLoader
148 asynchronous: false144 asynchronous: false
149145
=== modified file 'plugins/wifi/PreviousNetworks.qml'
--- plugins/wifi/PreviousNetworks.qml 2015-08-10 13:31:45 +0000
+++ plugins/wifi/PreviousNetworks.qml 2016-07-22 14:36:34 +0000
@@ -1,5 +1,5 @@
1/*1/*
2 * Copyright 2013 Canonical Ltd.2 * Copyright 2013-2016 Canonical Ltd.
3 *3 *
4 * This program is free software; you can redistribute it and/or modify4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by5 * it under the terms of the GNU General Public License as published by
@@ -16,8 +16,8 @@
1616
17import QtQuick 2.417import QtQuick 2.4
18import SystemSettings 1.018import SystemSettings 1.0
19import SystemSettings.ListItems 1.0 as SettingsListItems
19import Ubuntu.Components 1.320import Ubuntu.Components 1.3
20import Ubuntu.Components.ListItems 1.3 as ListItem
21import Ubuntu.SystemSettings.Wifi 1.021import Ubuntu.SystemSettings.Wifi 1.0
22import QMenuModel 0.122import QMenuModel 0.1
2323
@@ -54,9 +54,8 @@
54 duration: UbuntuAnimation.SnapDuration54 duration: UbuntuAnimation.SnapDuration
55 }55 }
56 }56 }
57 delegate: ListItem.Standard {57 delegate: SettingsListItems.StandardProgression {
58 text: name58 text: name
59 progression: true
60 onClicked: {59 onClicked: {
61 pageStack.push(Qt.resolvedUrl("NetworkDetails.qml"),60 pageStack.push(Qt.resolvedUrl("NetworkDetails.qml"),
62 {networkName : name, password : password, lastUsed : lastUsed,61 {networkName : name, password : password, lastUsed : lastUsed,
6362
=== modified file 'plugins/wifi/SectionMenuItem.qml'
--- plugins/wifi/SectionMenuItem.qml 2015-08-10 13:31:45 +0000
+++ plugins/wifi/SectionMenuItem.qml 2016-07-22 14:36:34 +0000
@@ -1,5 +1,5 @@
1/*1/*
2 * Copyright 2013 Canonical Ltd.2 * Copyright 2013-2016 Canonical Ltd.
3 *3 *
4 * This program is free software; you can redistribute it and/or modify4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by5 * it under the terms of the GNU General Public License as published by
@@ -18,37 +18,22 @@
18 */18 */
1919
20import QtQuick 2.420import QtQuick 2.4
21import SystemSettings 1.0
21import Ubuntu.Components 1.322import Ubuntu.Components 1.3
22import Ubuntu.Components.ListItems 1.3 as ListItem23
2324SettingsItemTitle {
24BaseMenuItem {25 property alias busy: indicator.running
25 id: menuItem26
26 property alias text: header.text27 ActivityIndicator {
27 property bool busy: false28 id: indicator
28
29 implicitHeight: text !== "" ? header.height : 0
30
31 ListItem.Header {
32 id: header
33
34 height: units.gu(4)
35 anchors {29 anchors {
36 left: parent.left30 top: parent.top
31 topMargin: units.gu(3)
37 right: parent.right32 right: parent.right
38 top: parent.top33 rightMargin: units.gu(2)
39 }34 }
40 visible: text != ""35 height: parent.height - (anchors.topMargin * 1.25)
4136 width: height
42 ActivityIndicator {37 visible: running
43 id: indicator
44 running: busy
45 anchors {
46 margins: units.gu(0.5)
47 right: parent.right
48 }
49 height: parent.height - (anchors.margins * 2)
50 width: height
51 anchors.verticalCenter: parent.verticalCenter
52 }
53 }38 }
54}39}
5540
=== modified file 'plugins/wifi/StandardMenuItem.qml'
--- plugins/wifi/StandardMenuItem.qml 2015-08-10 13:31:45 +0000
+++ plugins/wifi/StandardMenuItem.qml 2016-07-22 14:36:34 +0000
@@ -1,5 +1,5 @@
1/*1/*
2 * Copyright 2013 Canonical Ltd.2 * Copyright 2013-2016 Canonical Ltd.
3 *3 *
4 * This program is free software; you can redistribute it and/or modify4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by5 * it under the terms of the GNU General Public License as published by
@@ -28,34 +28,12 @@
2828
29 signal activate()29 signal activate()
3030
31 onCheckedChanged: {31 layout.subtitle.text: checked ? i18n.tr("Connected") : ""
32 // Can't rely on binding. Checked is assigned on click.
33 if (checkable) {
34 checkbox.checked = checked;
35 }
36 }
3732
33 progressionVisible: checked
38 onClicked: {34 onClicked: {
39 if (checkable) {35 if (!checked) {
40 checkbox.clicked();36 menuItem.activate();
41 } else {37 }
42 menuItem.activate();
43 }
44 }
45
46 control: CheckBox {
47 id: checkbox
48
49 Component.onCompleted: {
50 checked = menuItem.checked;
51 }
52
53 // FIXME : should use Checkbox.toggled signal
54 // lp:~nick-dedekind/ubuntu-ui-toolkit/checkbox.toggled
55 onClicked: {
56 menuItem.activate();
57 }
58
59 visible: checkable
60 }38 }
61}39}
6240
=== modified file 'plugins/wifi/SwitchMenuItem.qml'
--- plugins/wifi/SwitchMenuItem.qml 2015-08-10 13:31:45 +0000
+++ plugins/wifi/SwitchMenuItem.qml 2016-07-22 14:36:34 +0000
@@ -1,5 +1,5 @@
1/*1/*
2 * Copyright 2013 Canonical Ltd.2 * Copyright 2013-2016 Canonical Ltd.
3 *3 *
4 * This program is free software; you can redistribute it and/or modify4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by5 * it under the terms of the GNU General Public License as published by
@@ -33,7 +33,7 @@
33 switcher.checked = checked;33 switcher.checked = checked;
34 }34 }
3535
36 control: Switch {36 Switch {
37 id: switcher37 id: switcher
3838
39 Component.onCompleted: {39 Component.onCompleted: {
4040
=== modified file 'src/CMakeLists.txt'
--- src/CMakeLists.txt 2016-02-10 15:52:50 +0000
+++ src/CMakeLists.txt 2016-07-22 14:36:34 +0000
@@ -21,6 +21,7 @@
2121
22set(QML_SOURCES22set(QML_SOURCES
23 qml/CategoryGrid.qml23 qml/CategoryGrid.qml
24 qml/CategorySection.qml
24 qml/EntryComponent.qml25 qml/EntryComponent.qml
25 qml/MainWindow.qml26 qml/MainWindow.qml
26 qml/UncategorizedItemsView.qml27 qml/UncategorizedItemsView.qml
2728
=== modified file 'src/SystemSettings/ListItems/Icon.qml'
--- src/SystemSettings/ListItems/Icon.qml 2016-07-22 14:36:33 +0000
+++ src/SystemSettings/ListItems/Icon.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of system-settings2 * This file is part of system-settings
3 *3 *
4 * Copyright (C) 2015 Canonical Ltd.4 * Copyright (C) 2015-2016 Canonical Ltd.
5 *5 *
6 * This program is free software: you can redistribute it and/or modify it6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 3, as published7 * under the terms of the GNU General Public License version 3, as published
88
=== modified file 'src/SystemSettings/ListItems/IconProgression.qml'
--- src/SystemSettings/ListItems/IconProgression.qml 2016-07-22 14:36:33 +0000
+++ src/SystemSettings/ListItems/IconProgression.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of system-settings2 * This file is part of system-settings
3 *3 *
4 * Copyright (C) 2015 Canonical Ltd.4 * Copyright (C) 2015-2016 Canonical Ltd.
5 *5 *
6 * This program is free software: you can redistribute it and/or modify it6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 3, as published7 * under the terms of the GNU General Public License version 3, as published
88
=== modified file 'src/SystemSettings/ListItems/SingleControl.qml'
--- src/SystemSettings/ListItems/SingleControl.qml 2016-07-22 14:36:33 +0000
+++ src/SystemSettings/ListItems/SingleControl.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of system-settings2 * This file is part of system-settings
3 *3 *
4 * Copyright (C) 2015 Canonical Ltd.4 * Copyright (C) 2015-2016 Canonical Ltd.
5 *5 *
6 * This program is free software: you can redistribute it and/or modify it6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 3, as published7 * under the terms of the GNU General Public License version 3, as published
88
=== modified file 'src/SystemSettings/ListItems/SingleValue.qml'
--- src/SystemSettings/ListItems/SingleValue.qml 2016-07-22 14:36:33 +0000
+++ src/SystemSettings/ListItems/SingleValue.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of system-settings2 * This file is part of system-settings
3 *3 *
4 * Copyright (C) 2015 Canonical Ltd.4 * Copyright (C) 2015-2016 Canonical Ltd.
5 *5 *
6 * This program is free software: you can redistribute it and/or modify it6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 3, as published7 * under the terms of the GNU General Public License version 3, as published
88
=== modified file 'src/SystemSettings/ListItems/SingleValueProgression.qml'
--- src/SystemSettings/ListItems/SingleValueProgression.qml 2016-07-22 14:36:33 +0000
+++ src/SystemSettings/ListItems/SingleValueProgression.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of system-settings2 * This file is part of system-settings
3 *3 *
4 * Copyright (C) 2015 Canonical Ltd.4 * Copyright (C) 2015-2016 Canonical Ltd.
5 *5 *
6 * This program is free software: you can redistribute it and/or modify it6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 3, as published7 * under the terms of the GNU General Public License version 3, as published
88
=== modified file 'src/SystemSettings/ListItems/Standard.qml'
--- src/SystemSettings/ListItems/Standard.qml 2016-07-22 14:36:33 +0000
+++ src/SystemSettings/ListItems/Standard.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of system-settings2 * This file is part of system-settings
3 *3 *
4 * Copyright (C) 2015 Canonical Ltd.4 * Copyright (C) 2015-2016 Canonical Ltd.
5 *5 *
6 * This program is free software: you can redistribute it and/or modify it6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 3, as published7 * under the terms of the GNU General Public License version 3, as published
88
=== modified file 'src/SystemSettings/ListItems/StandardProgression.qml'
--- src/SystemSettings/ListItems/StandardProgression.qml 2016-07-22 14:36:33 +0000
+++ src/SystemSettings/ListItems/StandardProgression.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of system-settings2 * This file is part of system-settings
3 *3 *
4 * Copyright (C) 2015 Canonical Ltd.4 * Copyright (C) 2015-2016 Canonical Ltd.
5 *5 *
6 * This program is free software: you can redistribute it and/or modify it6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 3, as published7 * under the terms of the GNU General Public License version 3, as published
88
=== modified file 'src/SystemSettings/SettingsItemTitle.qml'
--- src/SystemSettings/SettingsItemTitle.qml 2016-07-22 14:36:33 +0000
+++ src/SystemSettings/SettingsItemTitle.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of system-settings2 * This file is part of system-settings
3 *3 *
4 * Copyright (C) 2013 Canonical Ltd.4 * Copyright (C) 2013-2016 Canonical Ltd.
5 *5 *
6 * This program is free software: you can redistribute it and/or modify it6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 3, as published7 * under the terms of the GNU General Public License version 3, as published
88
=== modified file 'src/SystemSettings/qmldir'
--- src/SystemSettings/qmldir 2014-10-31 08:45:10 +0000
+++ src/SystemSettings/qmldir 2016-07-22 14:36:34 +0000
@@ -1,3 +1,4 @@
1module SystemSettings1module SystemSettings
2
2ItemPage 1.0 ItemPage.qml3ItemPage 1.0 ItemPage.qml
3SettingsItemTitle 1.0 SettingsItemTitle.qml4SettingsItemTitle 1.0 SettingsItemTitle.qml
45
=== added file 'src/qml/CategoryGrid.qml'
--- src/qml/CategoryGrid.qml 1970-01-01 00:00:00 +0000
+++ src/qml/CategoryGrid.qml 2016-07-22 14:36:34 +0000
@@ -0,0 +1,90 @@
1/*
2 * This file is part of system-settings
3 *
4 * Copyright (C) 2013-2016 Canonical Ltd.
5 *
6 * Contact: Ken VanDine <ken.vandine@canonical.com>
7 *
8 * This program is free software: you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License version 3, as published
10 * by the Free Software Foundation.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranties of
14 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21import QtQuick 2.4
22import Ubuntu.Components 1.3
23import Ubuntu.Components.ListItems 1.3 as ListItem
24
25Column {
26 anchors {
27 left: parent.left
28 right: parent.right
29 }
30 spacing: units.gu(1)
31
32 property string category
33 property string categoryName
34
35 objectName: "categoryGrid-" + category
36
37 ListItem.Standard {
38 id: header
39
40 highlightWhenPressed: false
41 showDivider: false
42 text: categoryName
43 visible: repeater.count > 0
44 }
45
46 Grid {
47 property int itemWidth: units.gu(12)
48
49 // The amount of whitespace, including column spacing
50 property int space: parent.width - columns * itemWidth
51
52 // The column spacing is 1/n of the left/right margins
53 property int n: 4
54
55 columnSpacing: space / ((2 * n) + (columns - 1))
56 rowSpacing: units.gu(3)
57 width: (columns * itemWidth) + columnSpacing * (columns - 1)
58 anchors.horizontalCenter: parent.horizontalCenter
59 columns: {
60 var items = Math.floor(parent.width / itemWidth)
61 var count = repeater.count
62 return count < items ? count : items
63 }
64
65 Repeater {
66 id: repeater
67
68 model: pluginManager.itemModel(category)
69
70 delegate: Loader {
71 id: loader
72 width: parent.itemWidth
73 sourceComponent: model.item.entryComponent
74 active: model.item.visible
75 Connections {
76 ignoreUnknownSignals: true
77 target: loader.item
78 onClicked: {
79 var pageComponent = model.item.pageComponent
80 if (pageComponent) {
81 pageStack.push(model.item.pageComponent,
82 { plugin: model.item, pluginManager: pluginManager })
83 }
84 }
85 }
86 }
87 }
88 }
89 ListItem.ThinDivider { visible: header.visible }
90}
091
=== renamed file 'src/qml/CategoryGrid.qml' => 'src/qml/CategorySection.qml'
--- src/qml/CategoryGrid.qml 2016-05-06 13:13:55 +0000
+++ src/qml/CategorySection.qml 2016-07-22 14:36:34 +0000
@@ -1,6 +1,28 @@
1/*
2 * This file is part of system-settings
3 *
4 * Copyright (C) 2015-2016 Canonical Ltd.
5 *
6 * Contact: Ken VanDine <ken.vandine@canonical.com>
7 *
8 * This program is free software: you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License version 3, as published
10 * by the Free Software Foundation.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranties of
14 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
1import QtQuick 2.421import QtQuick 2.4
22import SystemSettings 1.0
23import SystemSettings.ListItems 1.0 as SettingsListItems
2import Ubuntu.Components 1.324import Ubuntu.Components 1.3
3import Ubuntu.Components.ListItems 1.3 as ListItem25
426
5Column {27Column {
6 anchors {28 anchors {
@@ -14,32 +36,17 @@
1436
15 objectName: "categoryGrid-" + category37 objectName: "categoryGrid-" + category
1638
17 ListItem.Standard {39 SettingsItemTitle {
18 id: header40 id: header
19
20 highlightWhenPressed: false
21 showDivider: false
22 text: categoryName41 text: categoryName
23 visible: repeater.count > 042 visible: repeater.count > 0
24 }43 }
2544
26 Grid {45 Column {
27 property int itemWidth: units.gu(12)46 id: col
2847 anchors {
29 // The amount of whitespace, including column spacing48 left: parent.left
30 property int space: parent.width - columns * itemWidth49 right: parent.right
31
32 // The column spacing is 1/n of the left/right margins
33 property int n: 4
34
35 columnSpacing: space / ((2 * n) + (columns - 1))
36 rowSpacing: units.gu(3)
37 width: (columns * itemWidth) + columnSpacing * (columns - 1)
38 anchors.horizontalCenter: parent.horizontalCenter
39 columns: {
40 var items = Math.floor(parent.width / itemWidth)
41 var count = repeater.count
42 return count < items ? count : items
43 }50 }
4451
45 Repeater {52 Repeater {
@@ -49,7 +56,10 @@
4956
50 delegate: Loader {57 delegate: Loader {
51 id: loader58 id: loader
52 width: parent.itemWidth59 anchors {
60 left: col.left
61 right: col.right
62 }
53 sourceComponent: model.item.entryComponent63 sourceComponent: model.item.entryComponent
54 active: model.item.visible64 active: model.item.visible
55 Connections {65 Connections {
@@ -66,5 +76,4 @@
66 }76 }
67 }77 }
68 }78 }
69 ListItem.ThinDivider { visible: header.visible }
70}79}
7180
=== modified file 'src/qml/MainWindow.qml'
--- src/qml/MainWindow.qml 2016-04-28 15:31:39 +0000
+++ src/qml/MainWindow.qml 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
1/*1/*
2 * This file is part of system-settings2 * This file is part of system-settings
3 *3 *
4 * Copyright (C) 2013, 2014, 2015 Canonical Ltd.4 * Copyright (C) 2013-2016 Canonical Ltd.
5 *5 *
6 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>6 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
7 *7 *
@@ -19,8 +19,8 @@
19 */19 */
2020
21import QtQuick 2.421import QtQuick 2.4
22import SystemSettings.ListItems 1.0 as SettingsListItems
22import Ubuntu.Components 1.323import Ubuntu.Components 1.3
23import Ubuntu.Components.ListItems 1.3 as ListItem
24import SystemSettings 1.024import SystemSettings 1.0
2525
26MainView {26MainView {
@@ -117,6 +117,17 @@
117 visible: false117 visible: false
118 flickable: mainFlickable118 flickable: mainFlickable
119119
120 head.actions: [
121 Action {
122 objectName: "searchAction"
123 iconName: "find"
124 onTriggered: {
125 pluginManager.filter = "";
126 search.visible = !search.visible;
127 }
128 }
129 ]
130
120 Flickable {131 Flickable {
121 id: mainFlickable132 id: mainFlickable
122 anchors.fill: parent133 anchors.fill: parent
@@ -130,9 +141,11 @@
130 anchors.left: parent.left141 anchors.left: parent.left
131 anchors.right: parent.right142 anchors.right: parent.right
132143
133 ListItem.SingleControl {144 SettingsListItems.SingleControl {
134 id: search145 id: search
135 control: TextField {146 visible: false
147 TextField {
148 id: searchField
136 width: parent.width - units.gu(4)149 width: parent.width - units.gu(4)
137 placeholderText: i18n.tr("Search")150 placeholderText: i18n.tr("Search")
138 objectName: "searchTextField"151 objectName: "searchTextField"
@@ -140,6 +153,7 @@
140 onDisplayTextChanged:153 onDisplayTextChanged:
141 pluginManager.filter = displayText154 pluginManager.filter = displayText
142 }155 }
156 onVisibleChanged: if (visible) searchField.forceActiveFocus()
143 }157 }
144158
145 UncategorizedItemsView {159 UncategorizedItemsView {
146160
=== modified file 'src/ui.qrc'
--- src/ui.qrc 2014-01-31 15:07:01 +0000
+++ src/ui.qrc 2016-07-22 14:36:34 +0000
@@ -1,6 +1,7 @@
1<!DOCTYPE RCC><RCC version="1.0">1<!DOCTYPE RCC><RCC version="1.0">
2<qresource>2<qresource>
3 <file>qml/CategoryGrid.qml</file>3 <file>qml/CategoryGrid.qml</file>
4 <file>qml/CategorySection.qml</file>
4 <file>qml/EntryComponent.qml</file>5 <file>qml/EntryComponent.qml</file>
5 <file>qml/MainWindow.qml</file>6 <file>qml/MainWindow.qml</file>
6 <file>qml/UncategorizedItemsView.qml</file>7 <file>qml/UncategorizedItemsView.qml</file>
78
=== modified file 'tests/autopilot/ubuntu_system_settings/__init__.py'
--- tests/autopilot/ubuntu_system_settings/__init__.py 2016-06-14 11:44:19 +0000
+++ tests/autopilot/ubuntu_system_settings/__init__.py 2016-07-22 14:36:34 +0000
@@ -1,7 +1,7 @@
11
2# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-2# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
3#3#
4# Copyright (C) 2014, 2015 Canonical Ltd.4# Copyright (C) 2014-2016 Canonical Ltd.
5#5#
6# This program is free software; you can redistribute it and/or modify6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU Lesser General Public License as published by7# it under the terms of the GNU Lesser General Public License as published by
@@ -155,6 +155,13 @@
155 self.scroll_to(obj)155 self.scroll_to(obj)
156 self.pointing_device.click_object(obj)156 self.pointing_device.click_object(obj)
157157
158 def click_header_action(self, action):
159 """Click the action 'action' on the header"""
160 main_view = self.get_root_instance().select_single(
161 objectName='systemSettingsMainView')
162 header = main_view.select_single('AppHeader')
163 header.click_action_button(action)
164
158 @property165 @property
159 def system_settings_page(self):166 def system_settings_page(self):
160 return self.select_single(objectName='systemSettingsPage')167 return self.select_single(objectName='systemSettingsPage')
@@ -1821,7 +1828,7 @@
18211828
1822 @autopilot.logging.log_action(logger.debug)1829 @autopilot.logging.log_action(logger.debug)
1823 def _select_network(self, name):1830 def _select_network(self, name):
1824 net = self.select_single('Standard', text=name)1831 net = self.select_single('StandardProgression', text=name)
1825 self.pointing_device.click_object(net)1832 self.pointing_device.click_object(net)
18261833
18271834
18281835
=== modified file 'tests/autopilot/ubuntu_system_settings/tests/test_cellular.py'
--- tests/autopilot/ubuntu_system_settings/tests/test_cellular.py 2016-06-14 11:44:19 +0000
+++ tests/autopilot/ubuntu_system_settings/tests/test_cellular.py 2016-07-22 14:36:34 +0000
@@ -1,5 +1,5 @@
1# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-1# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
2# Copyright 2014 Canonical2# Copyright 2014-2016 Canonical
3#3#
4# This program is free software: you can redistribute it and/or modify it4# This program is free software: you can redistribute it and/or modify it
5# under the terms of the GNU General Public License version 3, as published5# under the terms of the GNU General Public License version 3, as published
@@ -11,6 +11,7 @@
11from autopilot.introspection.dbus import StateNotFoundError11from autopilot.introspection.dbus import StateNotFoundError
12from autopilot.matchers import Eventually12from autopilot.matchers import Eventually
13from testtools.matchers import Equals, raises, StartsWith13from testtools.matchers import Equals, raises, StartsWith
14from unittest import skip
1415
15from ubuntu_system_settings.tests import (16from ubuntu_system_settings.tests import (
16 CellularBaseTestCase, RDO_IFACE,17 CellularBaseTestCase, RDO_IFACE,
@@ -292,6 +293,7 @@
292293
293class ApnTestCase(CellularBaseTestCase):294class ApnTestCase(CellularBaseTestCase):
294295
296 @skip('Skip until we can get the CPO for ListItem trigger actions')
295 def test_remove_apn(self):297 def test_remove_apn(self):
296 self.add_connection_context(self.modem_0, Type='mms', Name='Failed')298 self.add_connection_context(self.modem_0, Type='mms', Name='Failed')
297 contexts = self.modem_0.connMan.GetContexts()299 contexts = self.modem_0.connMan.GetContexts()
298300
=== modified file 'tests/autopilot/ubuntu_system_settings/tests/test_search.py'
--- tests/autopilot/ubuntu_system_settings/tests/test_search.py 2015-07-20 17:25:20 +0000
+++ tests/autopilot/ubuntu_system_settings/tests/test_search.py 2016-07-22 14:36:34 +0000
@@ -1,5 +1,5 @@
1# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-1# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
2# Copyright 2013 Canonical2# Copyright 2013-2016 Canonical
3#3#
4# This program is free software: you can redistribute it and/or modify it4# This program is free software: you can redistribute it and/or modify it
5# under the terms of the GNU General Public License version 3, as published5# under the terms of the GNU General Public License version 3, as published
@@ -31,6 +31,7 @@
31 'EntryComponent')31 'EntryComponent')
3232
33 def _type_into_search_box(self, text):33 def _type_into_search_box(self, text):
34 self.main_view.click_header_action('searchAction')
34 search_box = self.main_view.select_single(35 search_box = self.main_view.select_single(
35 objectName='searchTextField'36 objectName='searchTextField'
36 )37 )
3738
=== modified file 'tests/autopilot/ubuntu_system_settings/tests/test_security.py'
--- tests/autopilot/ubuntu_system_settings/tests/test_security.py 2015-09-21 13:36:13 +0000
+++ tests/autopilot/ubuntu_system_settings/tests/test_security.py 2016-07-22 14:36:34 +0000
@@ -1,5 +1,5 @@
1# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-1# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
2# Copyright 2014 Canonical2# Copyright 2014-2016 Canonical
3#3#
4# This program is free software: you can redistribute it and/or modify it4# This program is free software: you can redistribute it and/or modify it
5# under the terms of the GNU General Public License version 3, as published5# under the terms of the GNU General Public License version 3, as published
@@ -199,12 +199,12 @@
199 elif actTimeout is 60:199 elif actTimeout is 60:
200 self.assertEquals(200 self.assertEquals(
201 activityTimeout,201 activityTimeout,
202 ('{:d} minute').format(int(actTimeout/60))202 ('After {:d} minute').format(int(actTimeout/60))
203 )203 )
204 else:204 else:
205 self.assertEquals(205 self.assertEquals(
206 activityTimeout,206 activityTimeout,
207 ('{:d} minutes').format(int(actTimeout/60))207 ('After {:d} minutes').format(int(actTimeout/60))
208 )208 )
209209
210 def test_idle_never_timeout(self):210 def test_idle_never_timeout(self):

Subscribers

People subscribed via source and target branches