mirror of
https://github.com/QuasarApp/Snake.git
synced 2025-04-29 03:04:42 +00:00
69 lines
1.5 KiB
QML
69 lines
1.5 KiB
QML
import QtQuick 2.12
|
|
import QtQuick.Controls.Material 2.12
|
|
import QtQuick.Controls 2.12
|
|
import QtQuick.Layouts 1.3
|
|
import QtGraphicalEffects 1.12
|
|
|
|
FrameView {
|
|
id: userVew
|
|
|
|
property var model: null
|
|
|
|
ColumnLayout {
|
|
id: columnLayout
|
|
anchors.fill: parent
|
|
|
|
ImageView {
|
|
drawItem: "image://userItems/player/" + ((model)? model.id: -1).toString()
|
|
Layout.fillWidth: true
|
|
Layout.fillHeight: true
|
|
|
|
}
|
|
|
|
PropertyView {
|
|
Layout.fillWidth: true
|
|
keyText: qsTr("You ");
|
|
valueText : (model)? model.name: -1
|
|
|
|
}
|
|
|
|
PropertyView {
|
|
valueText : ((model)? model.gmail: -1).toString()
|
|
Layout.fillWidth: true
|
|
keyText: qsTr("You gmail");
|
|
}
|
|
|
|
PropertyView {
|
|
keyText: qsTr("Money ");
|
|
|
|
valueText : ((model)? model.money: -1).toString()
|
|
Layout.fillWidth: true
|
|
}
|
|
|
|
PropertyView {
|
|
keyText: qsTr("Record ");
|
|
|
|
valueText : ((model)? model.record: -1).toString()
|
|
Layout.fillWidth: true
|
|
}
|
|
|
|
PropertyView {
|
|
keyText: qsTr("AvgRecord ");
|
|
|
|
valueText : ((model)? model.avgRecord: -1).toString()
|
|
Layout.fillWidth: true
|
|
|
|
}
|
|
|
|
PropertyView {
|
|
keyText: qsTr("Snake ");
|
|
|
|
valueImage : "image://userItems/item/" + ((model)? model.cureentSnake: -1).toString()
|
|
Layout.fillWidth: true
|
|
|
|
}
|
|
}
|
|
|
|
|
|
}
|