X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatmonitorview.cpp;h=a627b0939d0a5fe1d33b80c03cbce3cbc3d273a2;hp=2c73e35fc4668bc314734b162f8c31c5615bdd1f;hb=a65f42197839da536975b3e2858eedcef420035f;hpb=4a5065255e652dd0c301bac0db41b7afb777ef49 diff --git a/src/qtui/chatmonitorview.cpp b/src/qtui/chatmonitorview.cpp index 2c73e35f..a627b093 100644 --- a/src/qtui/chatmonitorview.cpp +++ b/src/qtui/chatmonitorview.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2013 by the Quassel Project * + * Copyright (C) 2005-2019 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -24,25 +24,28 @@ #include #include +#include "buffermodel.h" #include "chatmonitorfilter.h" #include "chatlinemodel.h" #include "chatitem.h" #include "chatscene.h" #include "client.h" -#include "iconloader.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(SmallIcon("configure"), tr("Configure..."), this, SLOT(showSettingsPage())); + menu->addAction(icon::get("configure"), tr("Configure..."), this, SLOT(showSettingsPage())); }