Merge lp:~aacid/unity8/launcher_touch_menu_interaction into lp:unity8

Proposed by Albert Astals Cid
Status: Merged
Approved by: Lukáš Tinkl
Approved revision: 2851
Merged at revision: 2888
Proposed branch: lp:~aacid/unity8/launcher_touch_menu_interaction
Merge into: lp:unity8
Prerequisite: lp:~aacid/unity8/disabledMenus
Diff against target: 395 lines (+140/-60)
7 files modified
qml/Panel/Panel.qml (+26/-2)
qml/Panel/PanelBar.qml (+1/-2)
qml/Panel/PanelItemRow.qml (+3/-23)
qml/Panel/PanelMenu.qml (+35/-24)
qml/Shell.qml (+9/-1)
tests/qmltests/Panel/tst_Panel.qml (+10/-7)
tests/qmltests/tst_Shell.qml (+56/-1)
To merge this branch: bzr merge lp:~aacid/unity8/launcher_touch_menu_interaction
Reviewer Review Type Date Requested Status
Lukáš Tinkl (community) Approve
Unity8 CI Bot continuous-integration Approve
Michael Zanetti Pending
Review via email: mp+320078@code.launchpad.net

This proposal supersedes a proposal from 2017-03-08.

Commit message

Improve Launcher ←→ touch menu interaction

Needs to move the label from PanelItemRow to Panel because how clipping works in those items (and fixes some other problems too)

If launcher is locked visible:
     * Touch menus show shifted to the right to not overlap
     * Showing the app drawer closes the touch menus
     * Showing the touch menus closes the app drawer

If launcher is not locked visible:
     * Showing the launcher closes the touch menus
     * Showing the touch menus closes the launcher

Description of the change

Prereq-archive: ppa:ci-train-ppa-service/2548

* Are there any related MPs required for this MP to build/function as expected?
No

 * Did you perform an exploratory manual test run of your code change and any related functionality?
Yes

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A

 * If you changed the UI, has there been a design review?
N/A

To post a comment you must log in.
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote : Posted in a previous version of this proposal

FAILED: Continuous integration, rev:2840
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3312/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4360
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2606
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2606
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4388
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4221
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4221/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4221
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4221/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4221
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4221/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4221
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4221/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4221
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4221/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4221
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4221/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3312/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote : Posted in a previous version of this proposal

PASSED: Continuous integration, rev:2841
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3317/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4365
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2611
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2611
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4393
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4226
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4226/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4226
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4226/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4226
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4226/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4226
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4226/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4226
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4226/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4226
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4226/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3317/rebuild

review: Approve (continuous-integration)
Revision history for this message
Michael Zanetti (mzanetti) wrote : Posted in a previous version of this proposal

2 small inline comments.

Wouldn't mind a test that runs once with launcher.lockedVisible and once without it, then checks if the offset of the menu is what it should be.

review: Needs Fixing
Revision history for this message
Michael Zanetti (mzanetti) wrote : Posted in a previous version of this proposal

I've tested it, seems it's working fine.

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote : Posted in a previous version of this proposal

PASSED: Continuous integration, rev:2842
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3320/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4370
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2615
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2615
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4398
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4231
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4231/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4231
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4231/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4231
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4231/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4231
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4231/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4231
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4231/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4231
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4231/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3320/rebuild

review: Approve (continuous-integration)
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote : Posted in a previous version of this proposal

FAILED: Continuous integration, rev:2844
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3324/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4374
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2617
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2617
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4402
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4235
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4235/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4235
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4235/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4235
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4235/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4235
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4235/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4235
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4235/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4235
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4235/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3324/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Michael Zanetti (mzanetti) wrote : Posted in a previous version of this proposal

looks like the new test fails in CI

review: Needs Fixing
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote : Posted in a previous version of this proposal

FAILED: Continuous integration, rev:2844
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3326/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4376
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2620
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2620
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4404
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4237
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4237/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4237
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4237/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4237
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4237/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4237
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4237/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4237
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4237/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4237
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4237/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3326/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote : Posted in a previous version of this proposal

FAILED: Continuous integration, rev:2845
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3329/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4380
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2622
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2622
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4408
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4241
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4241/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4241
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4241/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4241
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4241/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4241
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4241/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4241
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4241/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4241
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4241/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3329/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote : Posted in a previous version of this proposal

PASSED: Continuous integration, rev:2845
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3334/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4385
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2624
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2624
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4413
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4246
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4246/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4246
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4246/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4246
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4246/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4246
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4246/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4246
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4246/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4246
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4246/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3334/rebuild

review: Approve (continuous-integration)
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote : Posted in a previous version of this proposal

PASSED: Continuous integration, rev:2846
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3348/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4404
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2641
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2641
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4432
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4269
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4269/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4269
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4269/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4269
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4269/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4269
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4269/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4269
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4269/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4269
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4269/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3348/rebuild

review: Approve (continuous-integration)
Revision history for this message
Lukáš Tinkl (lukas-kde) wrote : Posted in a previous version of this proposal

Not entirely sure yet, but I think this branch breaks the panel window title for apps that don't have menus at all - like browser here: https://imgur.com/a/ivPVa

Notice the text being cut from both sides

review: Needs Fixing
Revision history for this message
Lukáš Tinkl (lukas-kde) wrote : Posted in a previous version of this proposal

Wonder what's going on here, it seems that it happens only with the browser app? :/

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote : Posted in a previous version of this proposal

FAILED: Continuous integration, rev:2847
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3398/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4477
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2687
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2687
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4505
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4332
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4332/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4332
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4332/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4332
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4332/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4332
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4332/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4332
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4332/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4332
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4332/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3398/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Lukáš Tinkl (lukas-kde) wrote : Posted in a previous version of this proposal

Tests have regressed a bit

review: Needs Fixing
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote : Posted in a previous version of this proposal

FAILED: Continuous integration, rev:2848
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3400/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4481
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2692
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2692
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4509
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4336
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4336/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4336
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4336/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4336
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4336/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4336
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4336/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4336
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4336/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4336
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4336/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3400/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Albert Astals Cid (aacid) wrote : Posted in a previous version of this proposal

> Tests have regressed a bit

Should be fixed with r2849.

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote : Posted in a previous version of this proposal

PASSED: Continuous integration, rev:2849
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3408/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4489
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2698
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2698
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4517
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4344
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4344/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4344
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4344/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4344
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4344/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4344
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4344/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4344
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4344/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4344
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4344/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3408/rebuild

review: Approve (continuous-integration)
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Lukáš Tinkl (lukas-kde) wrote :

* Did you perform an exploratory manual test run of the code change and any related functionality?

Yes

* Did CI run pass? If not, please explain why.

Waiting, triggered a new CI run

review: Approve
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

FAILED: Continuous integration, rev:2850
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3438/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4531
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2726
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2726
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4559
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4386
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4386/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4386
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4386/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4386
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4386/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4386
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4386/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4386
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4386/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4386
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4386/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3438/rebuild

review: Needs Fixing (continuous-integration)
2851. By Albert Astals Cid

Fix tests?

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:2851
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3444/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4538
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2732
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2732
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4566
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4393
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4393/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4393
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4393/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4393
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4393/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4393
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4393/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4393
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4393/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4393
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4393/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3444/rebuild

review: Approve (continuous-integration)
Revision history for this message
Lukáš Tinkl (lukas-kde) wrote :

CI is green, top approving

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'qml/Panel/Panel.qml'
--- qml/Panel/Panel.qml 2017-03-17 13:44:53 +0000
+++ qml/Panel/Panel.qml 2017-03-17 13:44:53 +0000
@@ -38,6 +38,7 @@
38 property real expandedPanelHeight: units.gu(7)38 property real expandedPanelHeight: units.gu(7)
39 property real indicatorMenuWidth: width39 property real indicatorMenuWidth: width
40 property real applicationMenuWidth: width40 property real applicationMenuWidth: width
41 property alias applicationMenuContentX: __applicationMenus.menuContentX
4142
42 property alias applicationMenus: __applicationMenus43 property alias applicationMenus: __applicationMenus
43 property alias indicators: __indicators44 property alias indicators: __indicators
@@ -250,6 +251,7 @@
250 PanelMenu {251 PanelMenu {
251 id: __applicationMenus252 id: __applicationMenus
252253
254 x: menuContentX
253 model: registeredMenuModel.model255 model: registeredMenuModel.model
254 width: root.applicationMenuWidth256 width: root.applicationMenuWidth
255 minimizedPanelHeight: root.minimizedPanelHeight257 minimizedPanelHeight: root.minimizedPanelHeight
@@ -258,6 +260,7 @@
258 alignment: Qt.AlignLeft260 alignment: Qt.AlignLeft
259 enableHint: !callHint.active && !fullscreenMode261 enableHint: !callHint.active && !fullscreenMode
260 showOnClick: false262 showOnClick: false
263 adjustDragHandleSizeToContents: false
261 panelColor: panelAreaBackground.color264 panelColor: panelAreaBackground.color
262265
263 onShowTapped: {266 onShowTapped: {
@@ -266,8 +269,7 @@
266 }269 }
267 }270 }
268271
269 showRowTitle: !expanded272 hideRow: !expanded
270 rowTitle: PanelState.title
271 rowItemDelegate: ActionItem {273 rowItemDelegate: ActionItem {
272 id: actionItem274 id: actionItem
273 property int ownIndex: index275 property int ownIndex: index
@@ -316,6 +318,28 @@
316 }318 }
317 }319 }
318320
321 Label {
322 id: rowLabel
323 objectName: "panelTitle"
324 anchors {
325 left: parent.left
326 leftMargin: units.gu(1)
327 right: __indicators.left
328 rightMargin: units.gu(1)
329 }
330 height: root.minimizedPanelHeight
331 verticalAlignment: Text.AlignVCenter
332 elide: Text.ElideRight
333 maximumLineCount: 1
334 fontSize: "medium"
335 font.weight: Font.Medium
336 color: Theme.palette.selected.backgroundText
337 opacity: __applicationMenus.visible && !__applicationMenus.expanded ? 1 : 0
338 visible: opacity != 0
339 Behavior on opacity { NumberAnimation { duration: UbuntuAnimation.SnapDuration } }
340 text: PanelState.title
341 }
342
319 PanelMenu {343 PanelMenu {
320 id: __indicators344 id: __indicators
321 objectName: "indicators"345 objectName: "indicators"
322346
=== modified file 'qml/Panel/PanelBar.qml'
--- qml/Panel/PanelBar.qml 2017-03-17 13:44:53 +0000
+++ qml/Panel/PanelBar.qml 2017-03-17 13:44:53 +0000
@@ -30,8 +30,7 @@
30 property real lateralPosition: -130 property real lateralPosition: -1
31 property int alignment: Qt.AlignRight31 property int alignment: Qt.AlignRight
3232
33 property alias showRowTitle: row.showRowTitle33 property alias hideRow: row.hideRow
34 property alias rowTitle: row.rowTitle
35 property alias rowItemDelegate: row.delegate34 property alias rowItemDelegate: row.delegate
3635
37 implicitWidth: flickable.contentWidth36 implicitWidth: flickable.contentWidth
3837
=== modified file 'qml/Panel/PanelItemRow.qml'
--- qml/Panel/PanelItemRow.qml 2017-03-17 13:44:53 +0000
+++ qml/Panel/PanelItemRow.qml 2017-03-17 13:44:53 +0000
@@ -20,11 +20,10 @@
2020
21Item {21Item {
22 id: root22 id: root
23 implicitWidth: showRowTitle && !expanded ? rowTitle != "" ? rowLabel.width : 0 : row.width23 implicitWidth: row.width
24 implicitHeight: units.gu(3)24 implicitHeight: units.gu(3)
2525
26 property bool showRowTitle: false26 property bool hideRow: false
27 property alias rowTitle: rowLabel.text
28 property QtObject model: null27 property QtObject model: null
29 property real overFlowWidth: width28 property real overFlowWidth: width
30 property bool expanded: false29 property bool expanded: false
@@ -164,31 +163,12 @@
164 d.previousItem = currentItem;163 d.previousItem = currentItem;
165 }164 }
166165
167 Label {
168 id: rowLabel
169 objectName: "panelTitle"
170 anchors {
171 left: parent.left
172 leftMargin: units.gu(1)
173 verticalCenter: parent.verticalCenter
174 }
175 width: implicitWidth + units.gu(2)
176 elide: Text.ElideRight
177 maximumLineCount: 1
178 fontSize: "medium"
179 font.weight: Font.Medium
180 color: Theme.palette.selected.backgroundText
181 opacity: showRowTitle ? 1 : 0
182 visible: opacity != 0
183 Behavior on opacity { NumberAnimation { duration: UbuntuAnimation.SnapDuration } }
184 }
185
186 ListView {166 ListView {
187 id: row167 id: row
188 objectName: "panelRow"168 objectName: "panelRow"
189 orientation: ListView.Horizontal169 orientation: ListView.Horizontal
190 model: root.model170 model: root.model
191 opacity: showRowTitle ? 0 : 1171 opacity: hideRow ? 0 : 1
192 // dont set visible on basis of opacity; otherwise width will not be calculated correctly172 // dont set visible on basis of opacity; otherwise width will not be calculated correctly
193 anchors {173 anchors {
194 top: parent.top174 top: parent.top
195175
=== modified file 'qml/Panel/PanelMenu.qml'
--- qml/Panel/PanelMenu.qml 2017-03-17 13:44:53 +0000
+++ qml/Panel/PanelMenu.qml 2017-03-17 13:44:53 +0000
@@ -32,11 +32,12 @@
32 property real openedHeight: units.gu(71)32 property real openedHeight: units.gu(71)
33 property bool enableHint: true33 property bool enableHint: true
34 property bool showOnClick: true34 property bool showOnClick: true
35 property bool adjustDragHandleSizeToContents: true
35 property color panelColor: theme.palette.normal.background36 property color panelColor: theme.palette.normal.background
37 property real menuContentX: 0
3638
37 property alias alignment: bar.alignment39 property alias alignment: bar.alignment
38 property alias rowTitle: bar.rowTitle40 property alias hideRow: bar.hideRow
39 property alias showRowTitle: bar.showRowTitle
40 property alias rowItemDelegate: bar.rowItemDelegate41 property alias rowItemDelegate: bar.rowItemDelegate
41 property alias pageDelegate: content.pageDelegate42 property alias pageDelegate: content.pageDelegate
4243
@@ -45,7 +46,7 @@
45 readonly property bool partiallyOpened: unitProgress > 0 && unitProgress < 1.046 readonly property bool partiallyOpened: unitProgress > 0 && unitProgress < 1.0
46 readonly property bool fullyClosed: unitProgress == 047 readonly property bool fullyClosed: unitProgress == 0
47 readonly property alias expanded: bar.expanded48 readonly property alias expanded: bar.expanded
48 readonly property int barWidth: Math.min(bar.width, bar.implicitWidth)49 readonly property int barWidth: adjustDragHandleSizeToContents ? Math.min(bar.width, bar.implicitWidth) : bar.width
49 readonly property alias currentMenuIndex: bar.currentItemIndex50 readonly property alias currentMenuIndex: bar.currentItemIndex
5051
51 signal showTapped()52 signal showTapped()
@@ -78,33 +79,42 @@
7879
79 shown: false80 shown: false
80 height: minimizedPanelHeight81 height: minimizedPanelHeight
81 clip: root.partiallyOpened
8282
83 onUnitProgressChanged: d.updateState()83 onUnitProgressChanged: d.updateState()
8484
85 // eater85 Item {
86 MouseArea {
87 anchors.fill: content
88 hoverEnabled: true
89 acceptedButtons: Qt.AllButtons
90 onWheel: wheel.accepted = true;
91 enabled: root.state != "initial"
92 visible: content.visible
93 }
94
95 MenuContent {
96 id: content
97 objectName: "menuContent"
98
99 anchors {86 anchors {
100 left: parent.left87 left: parent.left
101 right: parent.right88 right: parent.right
102 top: bar.bottom89 top: bar.bottom
103 }90 bottom: parent.bottom
104 height: openedHeight - bar.height - handle.height91 }
105 model: root.model92 clip: root.partiallyOpened
106 visible: root.unitProgress > 093
107 currentMenuIndex: bar.currentItemIndex94 // eater
95 MouseArea {
96 anchors.fill: content
97 hoverEnabled: true
98 acceptedButtons: Qt.AllButtons
99 onWheel: wheel.accepted = true;
100 enabled: root.state != "initial"
101 visible: content.visible
102 }
103
104 MenuContent {
105 id: content
106 objectName: "menuContent"
107
108 anchors {
109 left: parent.left
110 right: parent.right
111 top: parent.top
112 }
113 height: openedHeight - bar.height - handle.height
114 model: root.model
115 visible: root.unitProgress > 0
116 currentMenuIndex: bar.currentItemIndex
117 }
108 }118 }
109119
110 Handle {120 Handle {
@@ -218,8 +228,9 @@
218 objectName: "showDragHandle"228 objectName: "showDragHandle"
219 anchors.bottom: parent.bottom229 anchors.bottom: parent.bottom
220 anchors.left: alignment == Qt.AlignLeft ? parent.left : undefined230 anchors.left: alignment == Qt.AlignLeft ? parent.left : undefined
231 anchors.leftMargin: -root.menuContentX
221 anchors.right: alignment == Qt.AlignRight ? parent.right : undefined232 anchors.right: alignment == Qt.AlignRight ? parent.right : undefined
222 width: root.barWidth // show handle should only cover panel items.233 width: root.barWidth + root.menuContentX // show handle should only cover panel items.
223 height: minimizedPanelHeight234 height: minimizedPanelHeight
224 direction: Direction.Downwards235 direction: Direction.Downwards
225 enabled: !root.shown && root.available236 enabled: !root.shown && root.available
226237
=== modified file 'qml/Shell.qml'
--- qml/Shell.qml 2017-02-21 16:21:34 +0000
+++ qml/Shell.qml 2017-03-17 13:44:53 +0000
@@ -500,6 +500,7 @@
500 expandedPanelHeight: units.gu(7)500 expandedPanelHeight: units.gu(7)
501 indicatorMenuWidth: parent.width > units.gu(60) ? units.gu(40) : parent.width501 indicatorMenuWidth: parent.width > units.gu(60) ? units.gu(40) : parent.width
502 applicationMenuWidth: parent.width > units.gu(60) ? units.gu(40) : parent.width502 applicationMenuWidth: parent.width > units.gu(60) ? units.gu(40) : parent.width
503 applicationMenuContentX: launcher.lockedVisible ? launcher.panelWidth : 0
503504
504 indicators {505 indicators {
505 hides: [launcher]506 hides: [launcher]
@@ -567,7 +568,14 @@
567 }568 }
568 onShownChanged: {569 onShownChanged: {
569 if (shown) {570 if (shown) {
570 panel.indicators.hide()571 panel.indicators.hide();
572 panel.applicationMenus.hide();
573 }
574 }
575 onDrawerShownChanged: {
576 if (drawerShown) {
577 panel.indicators.hide();
578 panel.applicationMenus.hide();
571 }579 }
572 }580 }
573 onFocusChanged: {581 onFocusChanged: {
574582
=== modified file 'tests/qmltests/Panel/tst_Panel.qml'
--- tests/qmltests/Panel/tst_Panel.qml 2017-03-17 13:44:53 +0000
+++ tests/qmltests/Panel/tst_Panel.qml 2017-03-17 13:44:53 +0000
@@ -320,12 +320,15 @@
320 tryCompare(panel.indicators, "fullyOpened", true);320 tryCompare(panel.indicators, "fullyOpened", true);
321 }321 }
322322
323 function pullDownApplicationsMenu() {323 function pullDownApplicationsMenu(xPos) {
324 var showDragHandle = findChild(panel.applicationMenus, "showDragHandle");324 var showDragHandle = findChild(panel.applicationMenus, "showDragHandle");
325 if (xPos === undefined) {
326 xPos = showDragHandle.width / 2;
327 }
325 touchFlick(showDragHandle,328 touchFlick(showDragHandle,
326 showDragHandle.width / 2,329 xPos,
327 showDragHandle.height / 2,330 showDragHandle.height / 2,
328 showDragHandle.width / 2,331 xPos,
329 showDragHandle.height / 2 + (showDragHandle.autoCompleteDragThreshold * 1.1));332 showDragHandle.height / 2 + (showDragHandle.autoCompleteDragThreshold * 1.1));
330 tryCompare(panel.applicationMenus, "fullyOpened", true);333 tryCompare(panel.applicationMenus, "fullyOpened", true);
331 }334 }
@@ -774,7 +777,7 @@
774 panel.mode = "staged";777 panel.mode = "staged";
775 mouseEmulation.checked = false;778 mouseEmulation.checked = false;
776779
777 var appTitle = findChild(panel.applicationMenus, "panelTitle"); verify(appTitle);780 var appTitle = findChild(panel, "panelTitle"); verify(appTitle);
778 var appMenuRow = findChild(panel.applicationMenus, "panelRow"); verify(appMenuRow);781 var appMenuRow = findChild(panel.applicationMenus, "panelRow"); verify(appMenuRow);
779 var appMenuBar = findChild(panel, "menuBar"); verify(appMenuBar);782 var appMenuBar = findChild(panel, "menuBar"); verify(appMenuBar);
780783
@@ -792,7 +795,7 @@
792 panel.mode = "windowed";795 panel.mode = "windowed";
793 mouseEmulation.checked = false;796 mouseEmulation.checked = false;
794797
795 var appTitle = findChild(panel.applicationMenus, "panelTitle"); verify(appTitle);798 var appTitle = findChild(panel, "panelTitle"); verify(appTitle);
796 var appMenuRow = findChild(panel.applicationMenus, "panelRow"); verify(appMenuRow);799 var appMenuRow = findChild(panel.applicationMenus, "panelRow"); verify(appMenuRow);
797 var appMenuBar = findChild(panel, "menuBar"); verify(appMenuBar);800 var appMenuBar = findChild(panel, "menuBar"); verify(appMenuBar);
798801
@@ -853,7 +856,7 @@
853 var indicatorsBar = findChild(panel.applicationMenus, "indicatorsBar");856 var indicatorsBar = findChild(panel.applicationMenus, "indicatorsBar");
854857
855 PanelState.title = "Fake Title"858 PanelState.title = "Fake Title"
856 pullDownApplicationsMenu();859 pullDownApplicationsMenu(0 /*xPos*/);
857 compare(aboutToShowCalledSpy.count, 1);860 compare(aboutToShowCalledSpy.count, 1);
858861
859 keyClick(Qt.Key_Right);862 keyClick(Qt.Key_Right);
@@ -886,7 +889,7 @@
886 var indicatorsBar = findChild(panel.applicationMenus, "indicatorsBar");889 var indicatorsBar = findChild(panel.applicationMenus, "indicatorsBar");
887890
888 PanelState.title = "Fake Title"891 PanelState.title = "Fake Title"
889 pullDownApplicationsMenu();892 pullDownApplicationsMenu(0 /*xPos*/);
890893
891 tryCompare(indicatorsBar, "currentItemIndex", 0);894 tryCompare(indicatorsBar, "currentItemIndex", 0);
892895
893896
=== modified file 'tests/qmltests/tst_Shell.qml'
--- tests/qmltests/tst_Shell.qml 2017-03-08 09:54:00 +0000
+++ tests/qmltests/tst_Shell.qml 2017-03-17 13:44:53 +0000
@@ -2848,7 +2848,7 @@
2848 loadShell(data.tag);2848 loadShell(data.tag);
28492849
2850 var panel = findChild(shell, "panel"); verify(panel);2850 var panel = findChild(shell, "panel"); verify(panel);
2851 var panelTitle = findChild(panel.applicationMenus, "panelTitle"); verify(panelTitle);2851 var panelTitle = findChild(panel, "panelTitle"); verify(panelTitle);
2852 compare(panelTitle.visible, false, "Panel title should not be visible when greeter is shown");2852 compare(panelTitle.visible, false, "Panel title should not be visible when greeter is shown");
28532853
2854 swipeAwayGreeter();2854 swipeAwayGreeter();
@@ -2941,6 +2941,61 @@
2941 tryCompare(topLevelSurfaceList.applicationAt(0), "appId", "dialer-app");2941 tryCompare(topLevelSurfaceList.applicationAt(0), "appId", "dialer-app");
2942 }2942 }
29432943
2944 function test_touchMenuPosition_data() {
2945 return [
2946 { tag: "launcher locked", lockLauncher: true },
2947 { tag: "launcher not locked", lockLauncher: false }
2948 ];
2949 }
2950
2951 function test_touchMenuPosition(data) {
2952 loadShell("desktop");
2953 shell.usageScenario = "desktop";
2954 waitForRendering(shell);
2955 swipeAwayGreeter();
2956
2957 var panel = findChild(shell, "panel");
2958 var launcher = testCase.findChild(shell, "launcher");
2959 launcher.lockedVisible = data.lockLauncher;
2960 if (data.lockLauncher) {
2961 compare(panel.applicationMenus.x, launcher.panelWidth);
2962 } else {
2963 compare(panel.applicationMenus.x, 0);
2964 }
2965 }
2966
2967 function test_touchMenuHidesOnLauncherAppDrawer_data() {
2968 return [
2969 { tag: "launcher locked", lockLauncher: true },
2970 { tag: "launcher not locked", lockLauncher: false }
2971 ];
2972 }
2973
2974 function test_touchMenuHidesOnLauncherAppDrawer(data) {
2975 loadShell("desktop");
2976 shell.usageScenario = "desktop";
2977 waitForRendering(shell);
2978 swipeAwayGreeter();
2979
2980 var panel = findChild(shell, "panel");
2981 var launcher = testCase.findChild(shell, "launcher");
2982 launcher.lockedVisible = data.lockLauncher;
2983
2984 waitForRendering(panel.applicationMenus);
2985
2986 if (data.lockLauncher) {
2987 panel.applicationMenus.show();
2988 tryCompare(panel.applicationMenus, "fullyOpened", true);
2989 launcher.openDrawer();
2990 } else {
2991 tryCompare(launcher, "shown", false);
2992 panel.applicationMenus.show();
2993 tryCompare(panel.applicationMenus, "fullyOpened", true);
2994 launcher.switchToNextState("visible");
2995 }
2996 tryCompare(panel.applicationMenus, "fullyClosed", true);
2997 }
2998
2944 function test_doubleClickPanelRestoresWindow() {2999 function test_doubleClickPanelRestoresWindow() {
2945 loadShell("desktop");3000 loadShell("desktop");
2946 shell.usageScenario = "desktop";3001 shell.usageScenario = "desktop";

Subscribers

People subscribed via source and target branches