removed the chrome style tabs

This commit is contained in:
fourtf
2018-04-01 16:41:32 +02:00
parent dca11406b9
commit 05335c6440
6 changed files with 62 additions and 40 deletions
+1 -1
View File
@@ -117,7 +117,7 @@ void MessageLayout::actuallyLayout(int width, MessageElement::Flags flags)
this->deleteBuffer();
}
this->container.finish();
this->container.end();
this->height = this->container.getHeight();
}
@@ -142,7 +142,7 @@ void MessageLayoutContainer::breakLine()
}
this->lineStart = this->elements.size();
this->currentX = 0;
this->currentX = (int)(this->scale * 8);
this->currentY += this->lineHeight;
this->height = this->currentY + (this->margin.bottom * this->scale);
this->lineHeight = 0;
@@ -158,7 +158,7 @@ bool MessageLayoutContainer::fitsInLine(int _width)
return this->currentX + _width <= this->width - this->margin.left - this->margin.right;
}
void MessageLayoutContainer::finish()
void MessageLayoutContainer::end()
{
if (!this->atStartOfLine()) {
this->breakLine();
@@ -56,7 +56,7 @@ public:
// methods
void begin(int width, float scale, Message::MessageFlags flags);
void finish();
void end();
void clear();
void addElement(MessageLayoutElement *element);