Migration of QtMvvm from github
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import QtQuick 2.10
|
|
|
|
import QtQuick.Controls 2.3
|
|
|
|
import QtQuick.Layouts 1.3
|
|
|
|
|
|
|
|
ItemDelegate {
|
|
|
|
id: _msgDelegate
|
|
|
|
|
|
|
|
text: title
|
|
|
|
|
|
|
|
signal showInput(string key, string title, string type, var defaultValue, var properties);
|
|
|
|
|
|
|
|
contentItem: ColumnLayout {
|
|
|
|
Label {
|
|
|
|
id: _titleLabel
|
|
|
|
text: _msgDelegate.text
|
|
|
|
font.bold: true
|
|
|
|
elide: Label.ElideRight
|
|
|
|
Layout.fillWidth: true
|
|
|
|
}
|
|
|
|
|
|
|
|
Label {
|
|
|
|
id: _textLabel
|
|
|
|
visible: tooltip
|
|
|
|
text: tooltip
|
|
|
|
wrapMode: Text.WordWrap
|
|
|
|
Layout.fillWidth: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
onClicked: showInput(key, title, type, settingsValue, properties)
|
|
|
|
}
|