~cimi/unity8/uitkPageHeader

« back to all changes in this revision

Viewing changes to qml/OrientedShell.qml

  • Committer: Andrea Cimitan
  • Date: 2016-05-18 08:35:08 UTC
  • mfrom: (2342.3.23 unity8)
  • Revision ID: andrea.cimitan@gmail.com-20160518083508-01u3sigqlynhi218
merged trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
// Workaround https://bugs.launchpad.net/ubuntu/+source/unity8/+bug/1473471
27
27
import Ubuntu.Components 1.3
28
28
 
29
 
Rectangle {
 
29
Item {
30
30
    id: root
31
 
    color: "black"
32
31
 
33
32
    implicitWidth: units.gu(40)
34
33
    implicitHeight: units.gu(71)
241
240
        orientedShell: root
242
241
        shell: shell
243
242
        shellCover: shellCover
244
 
        windowScreenshot: windowScreenshot
 
243
        shellSnapshot: shellSnapshot
245
244
    }
246
245
 
247
246
    Shell {
291
290
        visible: false
292
291
    }
293
292
 
294
 
    WindowScreenshot {
295
 
        id: windowScreenshot
 
293
    ItemSnapshot {
 
294
        id: shellSnapshot
 
295
        target: shell
296
296
        visible: false
297
297
        width: root.width
298
298
        height: root.height
302
302
        property real transformOriginY
303
303
 
304
304
        transform: Rotation {
305
 
            origin.x: windowScreenshot.transformOriginX; origin.y: windowScreenshot.transformOriginY;
 
305
            origin.x: shellSnapshot.transformOriginX; origin.y: shellSnapshot.transformOriginY;
306
306
            axis { x: 0; y: 0; z: 1 }
307
 
            angle: windowScreenshot.transformRotationAngle
 
307
            angle: shellSnapshot.transformRotationAngle
308
308
        }
309
309
    }
310
310
}