status-desktop/ui/imports/shared/controls/chat/VerificationLabel.qml

26 lines
562 B
QML
Raw Normal View History

import QtQuick 2.3
import shared.controls 1.0
import shared 1.0
import shared.panels 1.0
import utils 1.0
SVGImage {
id: root
width: visible ? 10 : 0
height: visible ? 10 : 0
property int trustStatus: Constants.trustStatus.unknown
source: {
switch(trustStatus) {
case Constants.trustStatus.trusted:
return Style.svg("verified");
case Constants.trustStatus.untrustworthy:
return Style.svg("untrustworthy");
default:
return "";
}
}
}