X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatmonitorview.cpp;h=932e2abbe5fc40f50ca7eedebe8bc249780d9ff1;hp=37197ed49da5c5a8b1cceb520a6e1e9ef9afee6c;hb=c013d415d0e6e85cbb8c0adba9ded53bbcf4f36c;hpb=f3d6f8088d8be6af9319a99fb8d2fee2837b540a diff --git a/src/qtui/chatmonitorview.cpp b/src/qtui/chatmonitorview.cpp index 37197ed4..932e2abb 100644 --- a/src/qtui/chatmonitorview.cpp +++ b/src/qtui/chatmonitorview.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2014 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -21,28 +21,31 @@ #include "chatmonitorview.h" #include -#include #include #include +#include "buffermodel.h" #include "chatmonitorfilter.h" #include "chatlinemodel.h" #include "chatitem.h" #include "chatscene.h" #include "client.h" +#include "clientignorelistmanager.h" +#include "icon.h" #include "networkmodel.h" -#include "buffermodel.h" #include "messagemodel.h" #include "qtuisettings.h" #include "settingspagedlg.h" #include "settingspages/chatmonitorsettingspage.h" -#include "clientignorelistmanager.h" ChatMonitorView::ChatMonitorView(ChatMonitorFilter *filter, QWidget *parent) : ChatView(filter, parent), _filter(filter) { scene()->setSenderCutoffMode(ChatScene::CutoffLeft); + // The normal message prefixes get replaced by the network and buffer name. Re-add brackets for + // all message types. + scene()->setAlwaysBracketSender(true); connect(Client::instance(), SIGNAL(coreConnectionStateChanged(bool)), this, SLOT(coreConnectionStateChanged(bool))); } @@ -70,7 +73,7 @@ void ChatMonitorView::addActionsToMenu(QMenu *menu, const QPointF &pos) } menu->addSeparator(); - menu->addAction(QIcon::fromTheme("configure"), tr("Configure..."), this, SLOT(showSettingsPage())); + menu->addAction(icon::get("configure"), tr("Configure..."), this, SLOT(showSettingsPage())); }