From f7d926bcabcc210da8b8c74f5b4bf059ba56d4b2 Mon Sep 17 00:00:00 2001
From: "andrey.daragan" <daragan.andrey@demlabs.net>
Date: Wed, 12 Feb 2020 13:04:44 +0000
Subject: [PATCH] [*] Change DapText interface and logic [*] Change model
 handler of ComboBox

---
 widgets/DapText.qml        | 2 +-
 widgets/DapTextForm.ui.qml | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/widgets/DapText.qml b/widgets/DapText.qml
index 468f588..3718df5 100644
--- a/widgets/DapText.qml
+++ b/widgets/DapText.qml
@@ -2,7 +2,7 @@ import QtQuick 2.4
 
 DapTextForm 
 {
-    width: parent.width
+    textMetric.elideWidth: width
 
     //Text eliding is available only after full item boot
     //with all metrics - to delete binding loop
diff --git a/widgets/DapTextForm.ui.qml b/widgets/DapTextForm.ui.qml
index ca74080..3cf02ce 100644
--- a/widgets/DapTextForm.ui.qml
+++ b/widgets/DapTextForm.ui.qml
@@ -28,7 +28,6 @@ TextInput
         id: dapTextInputTextMetric
         font: parent.font
         elide: textElide
-        elideWidth: parent.width
         text: fullText
     }
 
-- 
GitLab