X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fnetworkmodel.cpp;h=94d90b8d2c7e825bb7edaf9668f24d8776c93b1a;hp=a72b71e9e942b55ceb84bc993319649b3e5ecf95;hb=620882e248fafe97a736e545d8e3eb72569a078b;hpb=597705d895583bd2860fc117a7c73aa5cf86ae52 diff --git a/src/client/networkmodel.cpp b/src/client/networkmodel.cpp index a72b71e9..94d90b8d 100644 --- a/src/client/networkmodel.cpp +++ b/src/client/networkmodel.cpp @@ -29,8 +29,12 @@ #include "ircchannel.h" #include "ircuser.h" +#include "buffersettings.h" + #include "util.h" // get rid of this (needed for isChannelName) +// #define PHONDEV + /***************************************** * Fancy Buffer Items *****************************************/ @@ -293,10 +297,22 @@ QString BufferItem::toolTip(int column) const { break; } case BufferInfo::ChannelBuffer: - toolTip.append(QString("Channel %1").arg(bufferName())); + toolTip.append(QString("

Channel %1

").arg(bufferName())); if(isActive()) { - toolTip.append(QString("Topic: %1").arg(topic())); - toolTip.append(QString("Users: %1").arg(nickCount())); + //TODO: add channel modes + toolTip.append(QString("Users: %1").arg(nickCount())); + + BufferSettings s; + bool showTopic = s.value("DisplayTopicInTooltip", QVariant(false)).toBool(); + if(showTopic) { + QString _topic = topic(); + if(_topic != "") { + _topic.replace(QString("<"), QString("<")); + _topic.replace(QString(">"), QString(">")); + toolTip.append(QString(" ")); + toolTip.append(QString("Topic: %1").arg(_topic)); + } + } } else { toolTip.append(QString("Not active
Double-click to join")); }