summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Uwe Broulik <kde@privat.broulik.de>2016-09-27 12:46:07 (GMT)
committerKai Uwe Broulik <kde@privat.broulik.de>2016-09-27 12:46:07 (GMT)
commit6a4906090db93923b203dfba6bd2a9f681e03e49 (patch)
tree9950265d68680c111431d67f3700869d1bbf801d
parentd9c85361b248d36f4fafaf054e332871e47eb49c (diff)
[Quick Chat] Unset PlasmaComponents.Label default height
This fixes the base of the chat message and time not lining up as well as the time sometimes bleednig outside the delegate in case of a one-line message. REVIEW: 128135
-rw-r--r--chat/org.kde.ktp-chat/contents/ui/TextDelegate.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/chat/org.kde.ktp-chat/contents/ui/TextDelegate.qml b/chat/org.kde.ktp-chat/contents/ui/TextDelegate.qml
index ab686a6..fc2ead1 100644
--- a/chat/org.kde.ktp-chat/contents/ui/TextDelegate.qml
+++ b/chat/org.kde.ktp-chat/contents/ui/TextDelegate.qml
@@ -27,7 +27,7 @@ PlasmaComponents.Label {
text: model.text
textFormat: Text.RichText
- height: paintedHeight
+ height: undefined
onLinkActivated: {
console.log("opening link: " + link);
@@ -36,6 +36,7 @@ PlasmaComponents.Label {
//Hover to display the time when hovering a message
PlasmaComponents.Label {
+ height: undefined
text: Qt.formatTime(model.time)
anchors {
top: parent.top