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

[*] Change the text which is displaying at main line of comboBox

parent 1adc69d8
No related branches found
No related tags found
2 merge requests!14Features 2603,!13Features 2603
This commit is part of merge request !14. Comments created here will be created in the context of that merge request.
......@@ -68,6 +68,9 @@ ComboBox
///@detalis fontComboBox Font setting combobox.
property alias fontComboBox:customComboBox.font
///@detalis mainLineText Text without unneccesary part
property string mainLineText
id: customComboBox
width: popup.visible ? widthPopupComboBoxActive : widthPopupComboBoxNormal
height: popup.visible ? heightComboBoxActive : heightComboBoxNormal
......@@ -101,7 +104,7 @@ ComboBox
id:textTopComboBox
anchors.fill: parent
anchors.leftMargin: popup.visible ? sidePaddingActive : sidePaddingNormal
text: parent.displayText
text: mainLineText //parent.displayText
font: parent.font
color: popup.visible ? hilightColorTopText : normalColorTopText
verticalAlignment: Text.AlignVCenter
......@@ -112,8 +115,8 @@ ComboBox
Popup
{
y: parent.height - 1
width: parent.width + 1
padding: 1
width: parent.width
padding: 0
contentItem:
ListView
{
......
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