~aacid/ubuntu-ui-toolkit/nonsquareicons

« back to all changes in this revision

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

  • Committer: Tarmac
  • Author(s): Zsombor Egri
  • Date: 2014-12-05 16:36:12 UTC
  • mfrom: (1363.1.2 app-theming-to-staging)
  • Revision ID: tarmac-20141205163612-7yub32shpe3zm1e2
Theming fixes: application theming, binding loop fix, auto-theming moved into MainView and it is applicable only on Ambiance and SuruDark, SuruGradient is no longer auto-themed. Fixes: https://bugs.launchpad.net/bugs/1213043, https://bugs.launchpad.net/bugs/1277647, https://bugs.launchpad.net/bugs/1330510, https://bugs.launchpad.net/bugs/1356779, https://bugs.launchpad.net/bugs/1389792.

Approved by PS Jenkins bot, Christian Dywan.

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
     */
97
97
    property Item contents: null
98
98
 
99
 
    QtObject {
100
 
        id: internal
101
 
        property Item oldContents: null
102
 
    }
103
 
 
104
 
    onContentsChanged: {
105
 
        if (internal.oldContents) {
106
 
            // FIX: bug #1341814 and #1400297
107
 
            // We have to force the removal of the previous head.contents
108
 
            // in order to show the new contents
109
 
            internal.oldContents.parent = null;
110
 
        }
111
 
        internal.oldContents = contents;
112
 
    }
113
 
 
114
99
    // FIXME: The example below can be much simplified using PageHeadState
115
100
    //  when bug #1345775 has been fixed.
116
101
    /*!