aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/tutorials/gettingStartedQml/core/EditMenu.qml
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@digia.com>2013-08-01 11:39:02 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-09 15:47:23 +0200
commitfc8b40f888139342ebe0d4ce7d507005572737db (patch)
treee90b81b9922fcb1b615d131a487c282cc3a45841 /examples/quick/tutorials/gettingStartedQml/core/EditMenu.qml
parent04f699d26a3f06dbd98d9bd3e0f64ee9980a6a26 (diff)
Doc: Update example used for QML getting started tutorial
Update the example project referred to in Getting Started with Qt Quick tutorial. - Fix coding/comment style issues - Change plugin TARGET name, Use /imports as the destination directory - Fix qmldir with proper module info, delete unused qmldir from /core - Add a .qmlproject file Change-Id: If269e61fb76399faae753469dc251d07cc219139 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Diffstat (limited to 'examples/quick/tutorials/gettingStartedQml/core/EditMenu.qml')
-rw-r--r--examples/quick/tutorials/gettingStartedQml/core/EditMenu.qml39
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) }
}
}
}