123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- import QtQuick 2.0
- import Qt.labs.controls 1.0
- import "qrc:/Globals"
- Item {
- id: buttITEM
- property color borderColor: Globals.customer_color_base
- property int borderWidth: 2
- property alias text: buttLABEL.text
- property alias color: buttLABEL.color
- property int buttX: 0
- property int buttY: 0
- property int buttWidth: 35
- property int buttHeight: 35
- property int borderRadius: 3
- signal buttPressed
- Rectangle {
- id: buttRECT
- x: buttX //parent.x
- y: buttY //parent.y
- width: buttWidth//buttITEM.width
- height: buttHeight
- border.color: borderColor
- border.width: borderWidth
- radius: borderRadius
- Label {
- id: buttLABEL
- anchors.centerIn: buttRECT
- font.family: "FontAwesome"
- font.bold: false
- font.pixelSize: buttHeight - borderWidth
- }
- MouseArea{
- anchors.fill:parent
- onClicked: {
- sysinfo.beep();
- buttPressed();
- }
- }
- }
- }
|