Browse Source

adjusted Image, Spinner, ChatLineContentProxy vOffset

pull/974/head
krepa098 11 years ago
parent
commit
0692c484f0
  1. 2
      src/chatlog/chatlinecontentproxy.cpp
  2. 2
      src/chatlog/content/image.cpp
  3. 2
      src/chatlog/content/spinner.cpp

2
src/chatlog/chatlinecontentproxy.cpp

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

2
src/chatlog/content/image.cpp

@ -36,7 +36,7 @@ QRectF Image::boundingSceneRect() const @@ -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)

2
src/chatlog/content/spinner.cpp

@ -72,7 +72,7 @@ void Spinner::visibilityChanged(bool visible) @@ -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…
Cancel
Save