From 0692c484f0a8d1dfb2fd0569eb6dd36b24288f4f Mon Sep 17 00:00:00 2001 From: krepa098 Date: Wed, 10 Dec 2014 16:42:12 +0100 Subject: [PATCH] adjusted Image, Spinner, ChatLineContentProxy vOffset --- src/chatlog/chatlinecontentproxy.cpp | 2 +- src/chatlog/content/image.cpp | 2 +- src/chatlog/content/spinner.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/chatlog/chatlinecontentproxy.cpp b/src/chatlog/chatlinecontentproxy.cpp index a2d2b7817..72441cacc 100644 --- a/src/chatlog/chatlinecontentproxy.cpp +++ b/src/chatlog/chatlinecontentproxy.cpp @@ -42,7 +42,7 @@ void ChatLineContentProxy::paint(QPainter *painter, const QStyleOptionGraphicsIt qreal ChatLineContentProxy::firstLineVOffset() const { - return proxy->widget()->layout()->contentsMargins().top() + proxy->widget()->layout()->contentsMargins().bottom(); + return proxy->widget()->layout()->contentsMargins().top(); } void ChatLineContentProxy::setWidth(qreal width) diff --git a/src/chatlog/content/image.cpp b/src/chatlog/content/image.cpp index 79cab6df0..3885d7281 100644 --- a/src/chatlog/content/image.cpp +++ b/src/chatlog/content/image.cpp @@ -36,7 +36,7 @@ QRectF Image::boundingSceneRect() const qreal Image::firstLineVOffset() const { - return size.height() / 4.0; + return 0.0; } void Image::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) diff --git a/src/chatlog/content/spinner.cpp b/src/chatlog/content/spinner.cpp index 554e6a5bc..642a92bed 100644 --- a/src/chatlog/content/spinner.cpp +++ b/src/chatlog/content/spinner.cpp @@ -72,7 +72,7 @@ void Spinner::visibilityChanged(bool visible) qreal Spinner::firstLineVOffset() const { - return size.height() / 4.0; + return 0.0; } void Spinner::timeout()