diff options
author | Yoann Lopes <yoann.lopes@digia.com> | 2014-02-10 19:33:51 +0100 |
---|---|---|
committer | Yoann Lopes <yoann.lopes@digia.com> | 2014-07-17 18:58:00 +0200 |
commit | 888759e334e81117843afb6d0f8991db8aec5ca8 (patch) | |
tree | d0b6eb0b094557d5c25bf865998915f0839d596d /examples/multimedia/declarative-camera/CameraButton.qml | |
parent | cddbe8736d995b4bfdfbbf1abfc3d6aeae3eb214 (diff) |
New camera selection API in QML.
Also added a new QtMultimedia global object which makes it possible
to retrieve the list of available cameras. It can be extended with
new utility functions in the future.
Includes documentation, example and auto tests.
Task-number: QTBUG-23770
Change-Id: Ifea076329c3582ea99246ee1131853344a7b773f
Reviewed-by: Christian Stromme <christian.stromme@digia.com>
Diffstat (limited to 'examples/multimedia/declarative-camera/CameraButton.qml')
-rw-r--r-- | examples/multimedia/declarative-camera/CameraButton.qml | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/examples/multimedia/declarative-camera/CameraButton.qml b/examples/multimedia/declarative-camera/CameraButton.qml index b0353b4c3..394b210a8 100644 --- a/examples/multimedia/declarative-camera/CameraButton.qml +++ b/examples/multimedia/declarative-camera/CameraButton.qml @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). +** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the examples of the Qt Toolkit. @@ -63,9 +63,16 @@ Item { } Text { id: btnText + anchors.fill: buttonImage + anchors.margins: 5 + text: button.text + horizontalAlignment: Text.AlignHCenter + verticalAlignment: Text.AlignVCenter + elide: Text.ElideRight color: button.color - anchors.centerIn: buttonImage; font.bold: true - text: button.text; style: Text.Raised; styleColor: "black" + font.bold: true + style: Text.Raised + styleColor: "black" font.pixelSize: 14 } } |