This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-Qt/doric/resources/hlayout.qml

40 lines
742 B
QML
Raw Normal View History

2021-02-24 10:50:41 +08:00
import QtQuick 2.12
import QtQuick.Controls 2.5
import QtQuick.Layouts 1.15
2021-02-24 10:50:41 +08:00
import "util.mjs" as Util
Rectangle {
2021-04-07 10:41:34 +08:00
property var wrapper
2021-04-06 17:07:48 +08:00
clip: true
property var uuid: Util.uuidv4()
2021-04-13 21:14:17 +08:00
property var tag: "HLayout"
2021-04-07 10:41:34 +08:00
onWidthChanged: {
console.log(tag, uuid + " onWidthChanged: " + this.width)
}
2021-04-07 10:41:34 +08:00
onHeightChanged: {
console.log(tag, uuid + " onHeightChanged: " + this.height)
}
color: 'transparent'
property var backgroundColor
onBackgroundColorChanged: {
color = backgroundColor
}
MouseArea {
anchors.fill: parent
onClicked: {
2021-04-07 10:41:34 +08:00
console.log(tag, uuid + " wrapper: " + wrapper)
mouseAreaBridge.onClick(wrapper)
}
}
2021-02-24 10:50:41 +08:00
}