Skip to content
Snippets Groups Projects
Commit f067fa0c authored by littletux89@gmail.com's avatar littletux89@gmail.com
Browse files

[+] Property added.

parent 43d8780f
No related branches found
No related tags found
2 merge requests!50Features 3819,!33Master
...@@ -44,7 +44,7 @@ DapComboBoxForm ...@@ -44,7 +44,7 @@ DapComboBoxForm
id: tm id: tm
font: fontComboBox font: fontComboBox
elide: Text.ElideRight elide: Text.ElideRight
text: currentText text: model[comboBoxTextRole]
elideWidth: elideWidth:
{ {
if(index != currentIndex) if(index != currentIndex)
......
...@@ -7,6 +7,7 @@ ComboBox ...@@ -7,6 +7,7 @@ ComboBox
{ {
id: dapComboBox id: dapComboBox
property string comboBoxTextRole
///@detalis normalColorText Text color in normal state. ///@detalis normalColorText Text color in normal state.
property string normalColorText property string normalColorText
///@detalis hilightColorText Text color in selected state. ///@detalis hilightColorText Text color in selected state.
...@@ -64,6 +65,7 @@ ComboBox ...@@ -64,6 +65,7 @@ ComboBox
///@detalis mainLineText Text without unneccesary part. ///@detalis mainLineText Text without unneccesary part.
property string mainLineText property string mainLineText
textRole: comboBoxTextRole
width: popup.visible ? widthPopupComboBoxActive : widthPopupComboBoxNormal width: popup.visible ? widthPopupComboBoxActive : widthPopupComboBoxNormal
height: popup.visible ? heightComboBoxActive : heightComboBoxNormal height: popup.visible ? heightComboBoxActive : heightComboBoxNormal
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
......
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