diff --git a/src/chatlog/chatlog.cpp b/src/chatlog/chatlog.cpp index 7df19da9e..0c1d7e731 100644 --- a/src/chatlog/chatlog.cpp +++ b/src/chatlog/chatlog.cpp @@ -74,19 +74,16 @@ ChatLog::ChatLog(QWidget* parent) workerTimer->setSingleShot(false); workerTimer->setInterval(100); connect(workerTimer, &QTimer::timeout, this, [this] { - const int stepSize = 200; + const int stepSize = 400; workerDy += layout(lastWorkerIndex, lastWorkerIndex+stepSize, useableWidth()); - qDebug() << "working... " << lastWorkerIndex << "/" << lines.size(); - if(!visibleLines.isEmpty()) { int firstVisLineIndex = visibleLines.first()->getRowIndex(); int delta = firstVisLineIndex - lastWorkerIndex; if(delta > 0 && delta < stepSize) { - //qDebug() << "delta " << delta << "fvl " << firstVisLineIndex; lastWorkerIndex += delta+1; if(!stickToBottom()) @@ -96,7 +93,9 @@ ChatLog::ChatLog(QWidget* parent) checkVisibility(); } else + { lastWorkerIndex += stepSize; + } } else lastWorkerIndex += stepSize; @@ -111,8 +110,6 @@ ChatLog::ChatLog(QWidget* parent) updateSceneRect(); if(stb) scrollToBottom(); - - qDebug() << "working... done!"; } }); } diff --git a/src/chatlog/chatmessage.cpp b/src/chatlog/chatmessage.cpp index 6f1a40023..822ee1d1e 100644 --- a/src/chatlog/chatmessage.cpp +++ b/src/chatlog/chatmessage.cpp @@ -25,7 +25,7 @@ #include "src/misc/smileypack.h" #include "src/misc/style.h" -#define NAME_COL_WIDTH 75.0 +#define NAME_COL_WIDTH 90.0 #define TIME_COL_WIDTH 90.0 ChatMessage::ChatMessage() @@ -39,9 +39,11 @@ ChatMessage::Ptr ChatMessage::createChatMessage(const QString &sender, const QSt QString text = toHtmlChars(rawMessage); + //smileys if(Settings::getInstance().getUseEmoticons()) text = SmileyPack::getInstance().smileyfied(text); + //quotes (green text) text = detectQuotes(detectAnchors(text)); if(isAction) @@ -54,7 +56,7 @@ ChatMessage::Ptr ChatMessage::createChatMessage(const QString &sender, const QSt text = "