X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclient.cpp;h=f9665c6c3ab17362e057d74b8e92473819cb0a22;hp=eeb25d5847e4faf35f261b2025391f199955fa4f;hb=ddba2696fe051b472d6670e225e67c2f6f1972ce;hpb=bd37d2c94e49e791d2ba44baab4270e030442832 diff --git a/src/client/client.cpp b/src/client/client.cpp index eeb25d58..f9665c6c 100644 --- a/src/client/client.cpp +++ b/src/client/client.cpp @@ -126,11 +126,6 @@ void Client::init() { connect(this, SIGNAL(connected()), mainUi, SLOT(connectedToCore())); connect(this, SIGNAL(disconnected()), mainUi, SLOT(disconnectedFromCore())); - layoutTimer = new QTimer(this); - layoutTimer->setInterval(0); - layoutTimer->setSingleShot(false); - connect(layoutTimer, SIGNAL(timeout()), this, SLOT(layoutMsg())); - } /*** public static methods ***/ @@ -390,8 +385,6 @@ void Client::disconnectFromCore() { } Q_ASSERT(_identities.isEmpty()); - layoutQueue.clear(); - layoutTimer->stop(); } void Client::setCoreConfiguration(const QVariantMap &settings) { @@ -460,26 +453,6 @@ void Client::receiveBacklog(BufferId bufferId, const QVariantList &msgs) { //qDebug() << "processed" << msgs.count() << "backlog lines in" << start.msecsTo(QTime::currentTime()); } -void Client::layoutMsg() { - if(layoutQueue.isEmpty()) { - layoutTimer->stop(); - return; - } - - Buffer *buffer = layoutQueue.takeFirst(); - if(buffer->layoutMsg()) { - layoutQueue.append(buffer); // Buffer has more messages in its queue --> Round Robin - return; - } - - if(layoutQueue.isEmpty()) - layoutTimer->stop(); -} - -AbstractUiMsg *Client::layoutMsg(const Message &msg) { - return instance()->mainUi->layoutMsg(msg); -} - // TODO optimize checkForHighlight void Client::checkForHighlight(Message &msg) { if(!((msg.type() & (Message::Plain | Message::Notice | Message::Action)) && !(msg.flags() & Message::Self))) @@ -549,7 +522,6 @@ void Client::bufferRemoved(BufferId bufferId) { Buffer *buff = 0; if(_buffers.contains(bufferId)) { buff = _buffers.take(bufferId); - layoutQueue.removeAll(buff); disconnect(buff, 0, this, 0); }