diff options
Diffstat (limited to 'examples/declarative/tic-tac-toe/content/Button.qml')
-rw-r--r-- | examples/declarative/tic-tac-toe/content/Button.qml | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/examples/declarative/tic-tac-toe/content/Button.qml b/examples/declarative/tic-tac-toe/content/Button.qml deleted file mode 100644 index ecf18cd0f7..0000000000 --- a/examples/declarative/tic-tac-toe/content/Button.qml +++ /dev/null @@ -1,37 +0,0 @@ -import Qt 4.7 - -Rectangle { - id: container - - property string text: "Button" - property bool down: false - property string mainCol: "lightgray" - property string darkCol: "darkgray" - property string lightCol: "white" - - width: buttonLabel.width + 20; height: buttonLabel.height + 6 - border { width: 1; color: Qt.darker(mainCol) } - radius: 8; - color: mainCol - smooth: true - - gradient: Gradient { - GradientStop { - id: topGrad; position: 0.0 - color: if (container.down) { darkCol } else { lightCol } - } - GradientStop { position: 1.0; color: mainCol } - } - - signal clicked - - MouseArea { id: mr; anchors.fill: parent; onClicked: container.clicked() } - - Text { - id: buttonLabel - - anchors.centerIn: container - text: container.text; - font.pixelSize: 14 - } -} |