69 lines
1.5 KiB
QML
Raw Normal View History

2019-07-29 19:48:22 +03:00
import QtQuick 2.12
import QtQuick.Controls.Material 2.12
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.3
2019-07-29 19:48:22 +03:00
import QtGraphicalEffects 1.12
2019-07-30 13:05:56 +03:00
FrameView {
id: userVew
2019-07-29 15:29:07 +03:00
property var model: null
ColumnLayout {
id: columnLayout
anchors.fill: parent
ImageView {
2019-07-29 19:48:22 +03:00
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
}
2019-07-29 19:48:22 +03:00
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
}
}
2019-07-29 19:48:22 +03:00
}