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:
parent
2003f7c5aa
commit
0692c484f0
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -72,7 +72,7 @@ void Spinner::visibilityChanged(bool visible)
|
|||
|
||||
qreal Spinner::firstLineVOffset() const
|
||||
{
|
||||
return size.height() / 4.0;
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
void Spinner::timeout()
|
||||
|
|
Loading…
Reference in New Issue
Block a user