Skip to content
Snippets Groups Projects
Commit d4268428 authored by tatiana.novikova's avatar tatiana.novikova
Browse files

[+] Add external setting textRole

parent 5b93902e
No related branches found
No related tags found
4 merge requests!28Features 3048,!27Features 3048,!26Features 3048,!23Features 3048
......@@ -44,7 +44,7 @@ DapComboBoxForm
id: tm
font: fontComboBox
elide: Text.ElideRight
text: modelData
text: model[comboBoxTextRole]
elideWidth:
{
if(index != currentIndex)
......
......@@ -64,9 +64,13 @@ ComboBox
///@detalis mainLineText Text without unneccesary part.
property string mainLineText
///@detalis comboBoxTextRole The model role used for the ComboBox.
property string comboBoxTextRole: ""
width: popup.visible ? widthPopupComboBoxActive : widthPopupComboBoxNormal
height: popup.visible ? heightComboBoxActive : heightComboBoxNormal
anchors.verticalCenter: parent.verticalCenter
textRole: comboBoxTextRole
//Icon icon near the text (arrow)
indicator:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment