added select channel dialog

This commit is contained in:
fourtf
2018-04-18 09:12:29 +02:00
parent 043823120f
commit 3446a623f5
29 changed files with 1295 additions and 69 deletions
+11 -5
View File
@@ -22,9 +22,6 @@ MessageLayout::MessageLayout(MessagePtr _message)
: message(_message)
, buffer(nullptr)
{
if (_message->flags & Message::Collapsed) {
this->flags &= MessageLayout::Collapsed;
}
util::DebugCount::increase("message layout");
}
@@ -90,11 +87,11 @@ bool MessageLayout::layout(int width, float scale, MessageElement::Flags flags)
// update word sizes if needed
if (imagesChanged) {
// this->container.updateImages();
this->flags &= MessageLayout::RequiresBufferUpdate;
this->flags |= MessageLayout::RequiresBufferUpdate;
}
if (textChanged) {
// this->container.updateText();
this->flags &= MessageLayout::RequiresBufferUpdate;
this->flags |= MessageLayout::RequiresBufferUpdate;
}
if (widthChanged || wordMaskChanged) {
this->deleteBuffer();
@@ -229,6 +226,15 @@ void MessageLayout::deleteBuffer()
}
}
void MessageLayout::deleteCache()
{
this->deleteBuffer();
#ifdef XD
this->container.clear();
#endif
}
// Elements
// assert(QThread::currentThread() == QApplication::instance()->thread());