1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

adjusted Image, Spinner, ChatLineContentProxy vOffset

This commit is contained in:
krepa098 2014-12-10 16:42:12 +01:00
parent 2003f7c5aa
commit 0692c484f0
3 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ void ChatLineContentProxy::paint(QPainter *painter, const QStyleOptionGraphicsIt
qreal ChatLineContentProxy::firstLineVOffset() const 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) void ChatLineContentProxy::setWidth(qreal width)

View File

@ -36,7 +36,7 @@ QRectF Image::boundingSceneRect() const
qreal Image::firstLineVOffset() const qreal Image::firstLineVOffset() const
{ {
return size.height() / 4.0; return 0.0;
} }
void Image::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) void Image::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget)

View File

@ -72,7 +72,7 @@ void Spinner::visibilityChanged(bool visible)
qreal Spinner::firstLineVOffset() const qreal Spinner::firstLineVOffset() const
{ {
return size.height() / 4.0; return 0.0;
} }
void Spinner::timeout() void Spinner::timeout()