~tpeeters/ubuntu-ui-toolkit/tabBar-selectionMode-fix

« back to all changes in this revision

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

merge tabs-independent-tabbar

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
      */
85
85
    property bool animate: true
86
86
 
87
 
    /*!
88
 
      The function should be used to synchronize the TabBar visuals when the
89
 
      attached \l model is updated by having an item added, moved or removed from
90
 
      it. In these cases the selected item must be updated manually as the model
91
 
      content update is not directly notified by the change signal of the \l model
92
 
      property. Style components should also have a \a sync() function implemented
93
 
      to react on content syncing.
94
 
      */
95
 
    function sync() {
96
 
        if (__styleInstance && __styleInstance.sync) {
97
 
            __styleInstance.sync();
98
 
        }
99
 
    }
100
 
 
101
87
    implicitHeight: units.gu(7.5)
102
88
 
103
89
    style: Theme.createStyleComponent("TabBarStyle.qml", tabBar)