fixed mac stuff and added more debug code

This commit is contained in:
nuuls
2018-05-24 22:58:07 +02:00
committed by fourtf
parent 835b6d80da
commit 6ee4945715
7 changed files with 51 additions and 13 deletions
+5
View File
@@ -3,6 +3,7 @@
#include "application.hpp"
#include "singletons/emotemanager.hpp"
#include "singletons/settingsmanager.hpp"
#include "util/benchmark.hpp"
#include <QApplication>
#include <QDebug>
@@ -47,6 +48,8 @@ int MessageLayout::getHeight() const
// return true if redraw is required
bool MessageLayout::layout(int width, float scale, MessageElement::Flags flags)
{
BenchmarkGuard benchmark("MessageLayout::layout()");
auto app = getApp();
bool layoutRequired = false;
@@ -120,6 +123,8 @@ void MessageLayout::actuallyLayout(int width, MessageElement::Flags _flags)
this->container.begin(width, this->scale, messageFlags);
for (const std::unique_ptr<MessageElement> &element : this->message->getElements()) {
BenchmarkGuard guard("addelement");
element->addToContainer(this->container, _flags);
}