From 2c154ed56eb4be9a4623c82425d55144c1ca2400 Mon Sep 17 00:00:00 2001 From: "tatiana.novikova" <tatiana.novikova@demlabs.net> Date: Sat, 11 Jan 2020 14:52:46 +0300 Subject: [PATCH] [*] Change the text which is displaying at main line of comboBox --- widgets/DapComboBoxForm.ui.qml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/widgets/DapComboBoxForm.ui.qml b/widgets/DapComboBoxForm.ui.qml index 07d7ce0..2764767 100644 --- a/widgets/DapComboBoxForm.ui.qml +++ b/widgets/DapComboBoxForm.ui.qml @@ -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 { -- GitLab