@@ -37,12 +37,16 @@ Item {
37 //! \brief The ScopeStyle component.
37 //! \brief The ScopeStyle component.
38 property var scopeStyle: null
38 property var scopeStyle: null
40+ //! Should the orientation be locked
41+ property int orientationLockCount: 0
40 clip: true
43 clip: true
43 target: previewModel
46 target: previewModel
44 property: "widgetColumnCount"
47 property: "widgetColumnCount"
45 value: row.columns
48 value: row.columns
49+ when: root.orientationLockCount === 0
48 MouseArea {
52 MouseArea {
@@ -109,6 +113,18 @@ Item {
109 column.forceLayout();
113 column.forceLayout();
110 column.positionViewAtIndex(index, ListView.Contain)
114 column.positionViewAtIndex(index, ListView.Contain)
117+ onOrientationLockChanged: {
118+ if (orientationLock)
119+ root.orientationLockCount++;
121+ root.orientationLockCount = Math.max(0, root.orientationLockCount--);
124+ Component.onDestruction: {
125+ if (orientationLock)
126+ root.orientationLockCount = Math.max(0, root.orientationLockCount--);