2022-06-28 18:11:18 +00:00
|
|
|
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
|
2022-08-09 15:42:54 +00:00
|
|
|
width: visible ? 10 : 0
|
|
|
|
height: visible ? 10 : 0
|
2022-06-28 18:11:18 +00:00
|
|
|
|
|
|
|
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 "";
|
|
|
|
}
|
|
|
|
}
|
2022-08-09 15:42:54 +00:00
|
|
|
}
|