diff options
Diffstat (limited to 'examples/multimedia/declarative-camera/CameraPropertyButton.qml')
-rw-r--r-- | examples/multimedia/declarative-camera/CameraPropertyButton.qml | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/examples/multimedia/declarative-camera/CameraPropertyButton.qml b/examples/multimedia/declarative-camera/CameraPropertyButton.qml index cf77f95f0..91961ebf0 100644 --- a/examples/multimedia/declarative-camera/CameraPropertyButton.qml +++ b/examples/multimedia/declarative-camera/CameraPropertyButton.qml @@ -77,14 +77,37 @@ Item { CameraPropertyPopup { id: popup - anchors.right: parent.left anchors.rightMargin: 16 - anchors.top: parent.top visible: opacity > 0 currentValue: propertyButton.value onSelected: popup.toggle() } -} + states: [ + State { + name: "MobilePortrait" + AnchorChanges { + target: popup + anchors.bottom: parent.top; + } + }, + State { + name: "MobileLandscape" + AnchorChanges { + target: popup + anchors.verticalCenter: parent.top; + anchors.right: parent.left; + } + }, + State { + name: "Other" + AnchorChanges { + target: popup + anchors.top: parent.top; + anchors.right: parent.left; + } + } + ] +} |