mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
typo
This commit is contained in:
parent
d0bd6e9dca
commit
ad39251166
|
@ -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)
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user