Minor bug fixes and tweaks.
This commit is contained in:
parent
854a1c3855
commit
9b4fa0d8c6
|
@ -9,7 +9,7 @@ Page {
|
|||
id: roomListForm
|
||||
height: parent.height
|
||||
width: 320
|
||||
listModel: roomListModel
|
||||
listModel: contactListModel
|
||||
}
|
||||
|
||||
DetailForm {
|
||||
|
|
|
@ -3,7 +3,8 @@ import QtQuick.Controls 2.3
|
|||
import QtGraphicalEffects 1.0
|
||||
|
||||
Item {
|
||||
property bool statusIndicator
|
||||
property bool statusIndicator: false
|
||||
property bool opaqueBackground: false
|
||||
property alias source: avatar.source
|
||||
|
||||
Rectangle {
|
||||
|
@ -11,6 +12,7 @@ Item {
|
|||
height: parent.width
|
||||
radius: parent.width / 2
|
||||
color: "white"
|
||||
visible: opaqueBackground
|
||||
}
|
||||
|
||||
Image {
|
||||
|
@ -21,6 +23,8 @@ Item {
|
|||
mipmap: true
|
||||
layer.enabled: true
|
||||
fillMode: Image.PreserveAspectCrop
|
||||
sourceSize.width: parent.width
|
||||
sourceSize.height: parent.width
|
||||
|
||||
layer.effect: OpacityMask {
|
||||
maskSource: Item {
|
||||
|
|
|
@ -114,7 +114,8 @@ Item {
|
|||
ImageStatus {
|
||||
width: parent.height
|
||||
height: parent.height
|
||||
source: "image://mxc/" + avatar
|
||||
source: avatar == null ? "qrc:/asset/img/avatar.png" : "image://mxc/" + avatar
|
||||
opaqueBackground: true
|
||||
}
|
||||
|
||||
Column {
|
||||
|
|
|
@ -52,6 +52,7 @@ ApplicationWindow {
|
|||
source: "qrc:/asset/img/avatar.png"
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
statusIndicator: true
|
||||
opaqueBackground: false
|
||||
}
|
||||
|
||||
page: Room {
|
||||
|
@ -93,6 +94,7 @@ ApplicationWindow {
|
|||
|
||||
page: Contact {
|
||||
id: contactPage
|
||||
contactListModel: roomListModel
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue