#include "chatmonitorview.h"
#include <QAction>
-#include <QIcon>
#include <QMenu>
#include <QContextMenuEvent>
+#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),
// 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)));
+ connect(Client::instance(), &Client::coreConnectionStateChanged, this, &ChatMonitorView::coreConnectionStateChanged);
}
}
menu->addSeparator();
- menu->addAction(QIcon::fromTheme("configure"), tr("Configure..."), this, SLOT(showSettingsPage()));
+ menu->addAction(icon::get("configure"), tr("Configure..."), this, SLOT(showSettingsPage()));
}
void ChatMonitorView::showFieldsChanged(bool checked)
{
- QAction *showAction = qobject_cast<QAction *>(sender());
+ auto *showAction = qobject_cast<QAction *>(sender());
if (!showAction)
return;