1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
This commit is contained in:
krepa098 2015-01-20 11:51:34 +01:00
parent d0bd6e9dca
commit ad39251166
2 changed files with 3 additions and 3 deletions

View File

@ -167,7 +167,7 @@ void ChatLine::layout(qreal w, QPointF scenePos)
width = w; width = w;
bbox.setTopLeft(scenePos); bbox.setTopLeft(scenePos);
qreal fixedWidth = (content.size()-1) * cellSplacing; qreal fixedWidth = (content.size()-1) * columnSpacing;
qreal varWidth = 0.0; // used for normalisation qreal varWidth = 0.0; // used for normalisation
for(int i = 0; i < static_cast<int>(format.size()); ++i) for(int i = 0; i < static_cast<int>(format.size()); ++i)
@ -218,7 +218,7 @@ void ChatLine::layout(qreal w, QPointF scenePos)
// reposition // reposition
content[i]->setPos(scenePos.x() + xOffset + xAlign, scenePos.y()); content[i]->setPos(scenePos.x() + xOffset + xAlign, scenePos.y());
xOffset += width + cellSplacing; xOffset += width + columnSpacing;
} }
for(int i = 0; i < static_cast<int>(content.size()); ++i) for(int i = 0; i < static_cast<int>(content.size()); ++i)

View File

@ -101,7 +101,7 @@ private:
std::vector<ChatLineContent*> content; std::vector<ChatLineContent*> content;
std::vector<ColumnFormat> format; std::vector<ColumnFormat> format;
qreal width = 100.0; qreal width = 100.0;
qreal cellSplacing = 15.0; qreal columnSpacing = 15.0;
QRectF bbox; QRectF bbox;
bool isVisible = false; bool isVisible = false;