fix: qml warnings

This commit is contained in:
Richard Ramos 2020-06-12 11:33:32 -04:00 committed by Iuri Matias
parent e38f1b0268
commit f52ae4f994
2 changed files with 3 additions and 2 deletions

View File

@ -52,6 +52,7 @@ Rectangle {
let cnt = chatsModel.activeChannel.members.rowCount(); let cnt = chatsModel.activeChannel.members.rowCount();
if(cnt > 1) return qsTr("%1 members").arg(cnt); if(cnt > 1) return qsTr("%1 members").arg(cnt);
return qsTr("1 member"); return qsTr("1 member");
default: return "...";
} }
} }
font.pixelSize: 12 font.pixelSize: 12

View File

@ -12,8 +12,8 @@ Rectangle {
property int channelType property int channelType
property string channelIdenticon property string channelIdenticon
id: contactImage id: contactImage
width: width ? width : 36 width: 36
height: height ? height: 36 height: 36
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: Theme.padding anchors.leftMargin: Theme.padding
anchors.top: parent.top anchors.top: parent.top