2023-12-10 10:55:16 +00:00
|
|
|
import QtQuick
|
|
|
|
import Fk
|
|
|
|
|
|
|
|
Image {
|
|
|
|
property string general
|
|
|
|
|
|
|
|
width: 64
|
|
|
|
height: 64
|
2024-01-24 19:23:29 +00:00
|
|
|
source: SkinBank.getGeneralExtraPic(general, "avatar/")
|
|
|
|
?? SkinBank.getGeneralPicture(general)
|
2023-12-10 10:55:16 +00:00
|
|
|
// sourceSize.width: 250
|
|
|
|
// sourceSize.height: 292
|
|
|
|
property bool useSmallPic: !!SkinBank.getGeneralExtraPic(general, "avatar/")
|
|
|
|
sourceClipRect: useSmallPic ? undefined : Qt.rect(61, 0, 128, 128)
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
anchors.fill: parent
|
|
|
|
color: "transparent"
|
|
|
|
border.width: 1
|
|
|
|
}
|
|
|
|
}
|