Frequent checkpoints are good.

This commit is contained in:
Zach Fox 2016-12-19 15:41:28 -08:00
parent e7c2229b2c
commit feafc16833
3 changed files with 7 additions and 3 deletions

View file

@ -18,9 +18,9 @@ Row {
// Spacing
spacing: 10;
// Anchors
//anchors.topMargin: 10;
anchors.topMargin: 10;
anchors.leftMargin: 10;
//anchors.verticalCenter: parent.verticalCenter
anchors.verticalCenter: parent.verticalCenter;
// Properties
property string displayName: "";

View file

@ -109,6 +109,7 @@ Rectangle {
// This Rectangle refers to each Row in the table.
rowDelegate: Rectangle { // The only way I know to specify a row height.
// Size
height: rowHeight;
// The rest of this is cargo-culted to restore the default styling
SystemPalette {
@ -126,6 +127,9 @@ Rectangle {
id: itemCell;
property bool isCheckBox: typeof(styleData.value) === 'boolean';
property bool isSeparator: styleData.value === '';
// Anchors
anchors.topMargin: 10;
anchors.bottomMargin: anchors.topMargin;
// This NameCard refers to the cell that contains an avatar's
// DisplayName and UserName
NameCard {

View file

@ -145,7 +145,7 @@ function usernameFromIDReply(id, username, machineFingerprint) {
data = ['', username]
} else {
// Set the data to contain the ID and the username+ID concat string.
data = [id, username + '/' + machineFingerprint];
data = [id, username || machineFingerprint];
}
print('Username Data:', JSON.stringify(data));
// Ship the data off to QML