~ubuntu-sdk-team/ubuntu-ui-toolkit/trunk

« back to all changes in this revision

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

  • Committer: Tarmac
  • Author(s): tpeeters
  • Date: 2013-12-05 13:51:49 UTC
  • mfrom: (879.1.5 tabBar-pressed)
  • Revision ID: tarmac-20131205135149-aplmcua06vls5cse
Improve detection of tab bar interaction.
Now using the new TabBar.pressed property instead of TabBar.selectionMode property, because selectionMode may be changed without user interaction (for example, when resuming an app in a following MR), and then the toolbar should not automatically hide.

Approved by Florian Boucault, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
    property var model: null
50
50
 
51
51
    /*!
 
52
      The user is interacting with the tab bar.
 
53
      Depends on the style pressed property.
 
54
     */
 
55
    readonly property bool pressed: __styleInstance !== null && __styleInstance.hasOwnProperty("pressed") ?
 
56
                                        __styleInstance.pressed : false
 
57
 
 
58
    /*!
52
59
      An inactive tab bar only displays the currently selected tab,
53
60
      and an active tab bar can be interacted with to select a tab.
54
61
     */