diff options
Diffstat (limited to 'examples/demos/photoviewer')
3 files changed, 15 insertions, 14 deletions
diff --git a/examples/demos/photoviewer/PhotoViewerCore/Button.qml b/examples/demos/photoviewer/PhotoViewerCore/Button.qml index 8f4177c097..ae4e40a0c9 100644 --- a/examples/demos/photoviewer/PhotoViewerCore/Button.qml +++ b/examples/demos/photoviewer/PhotoViewerCore/Button.qml @@ -52,18 +52,18 @@ Item { BorderImage { anchors { fill: container; leftMargin: -6; topMargin: -6; rightMargin: -8; bottomMargin: -8 } - source: 'images/box-shadow.png'; smooth: true + source: 'images/box-shadow.png' border.left: 10; border.top: 10; border.right: 10; border.bottom: 10 } - Image { anchors.fill: parent; source: "images/cardboard.png"; smooth: true } + Image { anchors.fill: parent; source: "images/cardboard.png"; antialiasing: true } Rectangle { anchors.fill: container; color: container.tint; visible: container.tint != "" - opacity: 0.25; smooth: true + opacity: 0.25 } - Text { id: labelText; font.pixelSize: 15; anchors.centerIn: parent; smooth: true } + Text { id: labelText; font.pixelSize: 15; anchors.centerIn: parent } MouseArea { anchors { fill: parent; leftMargin: -20; topMargin: -20; rightMargin: -20; bottomMargin: -20 } diff --git a/examples/demos/photoviewer/PhotoViewerCore/EditableButton.qml b/examples/demos/photoviewer/PhotoViewerCore/EditableButton.qml index 9d08de575f..426e5d6023 100644 --- a/examples/demos/photoviewer/PhotoViewerCore/EditableButton.qml +++ b/examples/demos/photoviewer/PhotoViewerCore/EditableButton.qml @@ -51,14 +51,14 @@ Item { BorderImage { anchors { fill: container; leftMargin: -6; topMargin: -6; rightMargin: -8; bottomMargin: -8 } - source: 'images/box-shadow.png'; smooth: true + source: 'images/box-shadow.png'; border.left: 10; border.top: 10; border.right: 10; border.bottom: 10 } - Image { anchors.fill: parent; source: "images/cardboard.png"; smooth: true } + Image { anchors.fill: parent; source: "images/cardboard.png"; antialiasing: true } TextInput { - id: textInput; text: label; font.pixelSize: 15; anchors.centerIn: parent; smooth: true + id: textInput; text: label; font.pixelSize: 15; anchors.centerIn: parent Keys.onReturnPressed: { container.label = textInput.text container.focus = true @@ -75,7 +75,7 @@ Item { Rectangle { anchors.fill: container; border.color: "steelblue"; border.width: 4 - color: "transparent"; visible: textInput.focus; smooth: true + color: "transparent"; visible: textInput.focus; antialiasing: true } MouseArea { diff --git a/examples/demos/photoviewer/PhotoViewerCore/PhotoDelegate.qml b/examples/demos/photoviewer/PhotoViewerCore/PhotoDelegate.qml index 5d4e5aee5d..b7b1963f61 100644 --- a/examples/demos/photoviewer/PhotoViewerCore/PhotoDelegate.qml +++ b/examples/demos/photoviewer/PhotoViewerCore/PhotoDelegate.qml @@ -64,7 +64,7 @@ Package { fill: originalImage.status == Image.Ready ? border : placeHolder leftMargin: -6; topMargin: -6; rightMargin: -8; bottomMargin: -8 } - source: 'images/box-shadow.png'; smooth: true + source: 'images/box-shadow.png' border.left: 10; border.top: 10; border.right: 10; border.bottom: 10 } Rectangle { @@ -74,25 +74,26 @@ Package { property int h: Script.getHeight(content) property double s: Script.calculateScale(w, h, photoWrapper.width) - color: 'white'; anchors.centerIn: parent; smooth: true + color: 'white'; anchors.centerIn: parent; antialiasing: true width: w * s; height: h * s; visible: originalImage.status != Image.Ready Rectangle { - color: "#878787"; smooth: true + color: "#878787"; antialiasing: true anchors { fill: parent; topMargin: 3; bottomMargin: 3; leftMargin: 3; rightMargin: 3 } } } Rectangle { - id: border; color: 'white'; anchors.centerIn: parent; smooth: true + id: border; color: 'white'; anchors.centerIn: parent; antialiasing: true width: originalImage.paintedWidth + 6; height: originalImage.paintedHeight + 6 visible: !placeHolder.visible } BusyIndicator { anchors.centerIn: parent; on: originalImage.status != Image.Ready } Image { - id: originalImage; smooth: true; source: "http://" + Script.getImagePath(content); cache: false + id: originalImage; antialiasing: true; + source: "http://" + Script.getImagePath(content); cache: false fillMode: Image.PreserveAspectFit; width: photoWrapper.width; height: photoWrapper.height } Image { - id: hqImage; smooth: true; source: ""; visible: false; cache: false + id: hqImage; antialiasing: true; source: ""; visible: false; cache: false fillMode: Image.PreserveAspectFit; width: photoWrapper.width; height: photoWrapper.height } Binding { |