diff options
Diffstat (limited to 'examples/quick/tutorials/gettingStartedQml/core/EditMenu.qml')
-rw-r--r-- | examples/quick/tutorials/gettingStartedQml/core/EditMenu.qml | 39 |
1 files changed, 23 insertions, 16 deletions
diff --git a/examples/quick/tutorials/gettingStartedQml/core/EditMenu.qml b/examples/quick/tutorials/gettingStartedQml/core/EditMenu.qml index d2e52dfad6..8bab04d6d6 100644 --- a/examples/quick/tutorials/gettingStartedQml/core/EditMenu.qml +++ b/examples/quick/tutorials/gettingStartedQml/core/EditMenu.qml @@ -38,66 +38,73 @@ ** ****************************************************************************/ - import QtQuick 2.0 Rectangle { id: editMenu - height: 480; width:1000 + width: 1000; height: 480 color: "powderblue" property color buttonBorderColor: "#7A8182" property color buttonFillColor: "#61BDCACD" property string menuName:"Edit" + gradient: Gradient { GradientStop { position: 0.0; color: "#6A7570" } GradientStop { position: 1.0; color: Qt.darker("#6A7570") } } Rectangle { - id:actionContainer - color:"transparent" + id: actionContainer + color: "transparent" anchors.centerIn: parent - width: parent.width; height: parent.height / 5 + width: parent.width + height: parent.height / 5 + Row { anchors.centerIn: parent - spacing: parent.width/9 + spacing: parent.width / 9 Button { id: loadButton buttonColor: buttonFillColor label: "Copy" labelSize: 16 borderColor: buttonBorderColor - height: actionContainer.height; width: actionContainer.width/6 + height: actionContainer.height + width: actionContainer.width / 6 onButtonClick: textArea.copy() gradient: Gradient { - GradientStop { position: 0.0; color: Qt.lighter(buttonFillColor,1.25) } - GradientStop { position: 0.67; color: Qt.darker(buttonFillColor,1.3) } + GradientStop { position: 0.0; color: Qt.lighter(buttonFillColor, 1.25) } + GradientStop { position: 0.67; color: Qt.darker(buttonFillColor, 1.3) } } } + Button { id: saveButton - height: actionContainer.height; width: actionContainer.width/6 + height: actionContainer.height + width: actionContainer.width / 6 buttonColor: buttonFillColor label: "Paste" borderColor: buttonBorderColor labelSize: 16 onButtonClick: textArea.paste() gradient: Gradient { - GradientStop { position: 0.0; color: Qt.lighter(buttonFillColor,1.25) } - GradientStop { position: 0.67; color: Qt.darker(buttonFillColor,1.3) } + GradientStop { position: 0.0; color: Qt.lighter(buttonFillColor, 1.25) } + GradientStop { position: 0.67; color: Qt.darker(buttonFillColor, 1.3) } } } + Button { id: exitButton label: "Select All" - height: actionContainer.height; width: actionContainer.width/6 + height: actionContainer.height + width: actionContainer.width/6 labelSize: 16 buttonColor: buttonFillColor - borderColor:buttonBorderColor + borderColor: buttonBorderColor onButtonClick: textArea.selectAll() gradient: Gradient { - GradientStop { position: 0.0; color: Qt.lighter(buttonFillColor,1.25) } - GradientStop { position: 0.67; color: Qt.darker(buttonFillColor,1.3) } + GradientStop { position: 0.0; color: Qt.lighter(buttonFillColor, 1.25) } + GradientStop { position: 0.67; color: Qt.darker(buttonFillColor, 1.3) } } } } |