mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 22:51:20 +02:00
Working
This commit is contained in:
parent
5996228622
commit
46c787512e
2 changed files with 103 additions and 96 deletions
|
@ -15,11 +15,11 @@ import "../styles-uit"
|
|||
|
||||
|
||||
Column {
|
||||
// Properties
|
||||
property string displayName: "";
|
||||
property string userName: "";
|
||||
property int displayTextHeight: 18;
|
||||
property int usernameTextHeight: 12;
|
||||
|
||||
property int usernameTextHeight: 12
|
||||
|
||||
RalewaySemiBold {
|
||||
// Properties
|
||||
|
|
|
@ -41,7 +41,15 @@ Rectangle {
|
|||
property int separatorColWidth: 30;
|
||||
property int actionWidth: (width - nameCardWidth - separatorColWidth) / (table.columnCount - 2); // "-2" for Name and Separator cols
|
||||
|
||||
Column {
|
||||
// This contains the current user's NameCard and will contain other information in the future
|
||||
Item {
|
||||
id: myInfo;
|
||||
// Size
|
||||
width: pal.width;
|
||||
height: myCardHeight;
|
||||
// Positioning
|
||||
anchors.top: pal.top;
|
||||
anchors.left: pal.left;
|
||||
// This NameCard refers to the current user's NameCard (the one above the table)
|
||||
NameCard {
|
||||
id: myCard;
|
||||
|
@ -49,22 +57,22 @@ Rectangle {
|
|||
displayName: myData.displayName;
|
||||
userName: myData.userName;
|
||||
// Size
|
||||
width: nameCardWidth;
|
||||
height: myCardHeight;
|
||||
width: nameCardWidth - anchors.leftMargin;
|
||||
// Positioning
|
||||
anchors.top: pal.top;
|
||||
anchors.left: parent.left;
|
||||
anchors.verticalCenter: parent.verticalCenter;
|
||||
// Margins
|
||||
anchors.leftMargin: 10;
|
||||
}
|
||||
}
|
||||
// This TableView refers to the table (below the current user's NameCard)
|
||||
TableView {
|
||||
id: table;
|
||||
// Size
|
||||
height: pal.height - myCard.height;
|
||||
height: pal.height - myInfo.height;
|
||||
width: pal.width;
|
||||
// Positioning
|
||||
anchors.top: myCard.bottom;
|
||||
anchors.top: myInfo.bottom;
|
||||
// Properties
|
||||
frameVisible: false;
|
||||
sortIndicatorVisible: true;
|
||||
|
@ -126,7 +134,7 @@ Rectangle {
|
|||
userName: model.userName;
|
||||
visible: !isCheckBox;
|
||||
// Size
|
||||
width: nameCardWidth;
|
||||
width: nameCardWidth - anchors.leftMargin;
|
||||
// Positioning
|
||||
anchors.left: parent.left;
|
||||
anchors.verticalCenter: parent.verticalCenter;
|
||||
|
@ -156,7 +164,6 @@ Rectangle {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
property var userData: [];
|
||||
property var myData: ({displayName: "", userName: ""}); // valid dummy until set
|
||||
|
|
Loading…
Reference in a new issue