2022-08-10 10:27:45 +02:00
|
|
|
import QtQuick 2.14
|
|
|
|
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
|
|
|
|
StatusInput {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
property int linkType
|
2022-12-05 15:21:20 +01:00
|
|
|
property string icon
|
2022-08-10 10:27:45 +02:00
|
|
|
|
2023-03-08 02:56:41 +01:00
|
|
|
leftPadding: Style.current.padding
|
|
|
|
input.clearable: true
|
2022-08-16 19:22:19 +02:00
|
|
|
|
2023-03-08 02:56:41 +01:00
|
|
|
placeholderText: ProfileUtils.linkTypeToDescription(linkType)
|
2022-08-11 14:55:08 +03:00
|
|
|
input.asset {
|
2022-12-05 15:21:20 +01:00
|
|
|
name: root.icon
|
2023-03-08 02:56:41 +01:00
|
|
|
color: ProfileUtils.linkTypeColor(root.linkType)
|
2022-08-10 10:27:45 +02:00
|
|
|
width: 20
|
|
|
|
height: 20
|
|
|
|
}
|
|
|
|
}
|