~chris.gagnon/ubuntu-ui-toolkit/autopilot-emulator-bug-picker-hover

« back to all changes in this revision

Viewing changes to modules/Ubuntu/Components/Panel.qml

  • Committer: Tarmac
  • Author(s): Andrea Cimitan
  • Date: 2013-10-03 22:46:09 UTC
  • mfrom: (750.6.2 ubuntu-ui-toolkit)
  • Revision ID: tarmac-20131003224609-vgkc8h0kef6zmppb
Export a position value of the toolbar through dbus, setting the value of the dbus service created by the shell. Fixes: https://bugs.launchpad.net/bugs/1224480.

Approved by Michał Sawicz, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
543
543
        //position will always be in the range 0..size, where position==0 means spread, position==size means hidden.
544
544
        property real position: panel.opened ? 0 : size
545
545
 
 
546
        onPositionChanged: bottomBarVisibilityCommunicator.position = size - position
 
547
 
546
548
        y: internal.align === Qt.AlignTop ? -position : internal.align === Qt.AlignBottom ? position : 0
547
549
        x: internal.align === Qt.AlignLeft ? -position : internal.align === Qt.AlignRight ? position : 0
548
550
    }