-ChatMonitorView::ChatMonitorView(ChatMonitorFilter *filter, QWidget *parent)
- : ChatView(filter, parent),
- _filter(filter)
+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
{
scene()->setSenderCutoffMode(ChatScene::CutoffLeft);
// The normal message prefixes get replaced by the network and buffer name. Re-add brackets for
connect(Client::instance(), &Client::coreConnectionStateChanged, this, &ChatMonitorView::coreConnectionStateChanged);
}
connect(Client::instance(), &Client::coreConnectionStateChanged, this, &ChatMonitorView::coreConnectionStateChanged);
}
- auto showOwnNicksAction = new Action(tr("Show Own Messages"), menu, _filter, SLOT(setShowOwnMessages(bool)));
+ auto showOwnNicksAction = new Action(tr("Show Own Messages"), menu, _filter, &ChatMonitorFilter::setShowOwnMessages);
showOwnNicksAction->setCheckable(true);
showOwnNicksAction->setChecked(_filter->showOwnMessages());
menu->addAction(showOwnNicksAction);
showOwnNicksAction->setCheckable(true);
showOwnNicksAction->setChecked(_filter->showOwnMessages());
menu->addAction(showOwnNicksAction);
- auto showNetworkAction = new Action(tr("Show Network Name"), menu, this, SLOT(showFieldsChanged(bool)));
+ auto showNetworkAction = new Action(tr("Show Network Name"), menu, this, &ChatMonitorView::showFieldsChanged);
showNetworkAction->setCheckable(true);
showNetworkAction->setChecked(_filter->showFields() & ChatMonitorFilter::NetworkField);
showNetworkAction->setData(ChatMonitorFilter::NetworkField);
menu->addAction(showNetworkAction);
showNetworkAction->setCheckable(true);
showNetworkAction->setChecked(_filter->showFields() & ChatMonitorFilter::NetworkField);
showNetworkAction->setData(ChatMonitorFilter::NetworkField);
menu->addAction(showNetworkAction);
- auto showBufferAction = new Action(tr("Show Buffer Name"), menu, this, SLOT(showFieldsChanged(bool)));
+ auto showBufferAction = new Action(tr("Show Buffer Name"), menu, this, &ChatMonitorView::showFieldsChanged);
showBufferAction->setCheckable(true);
showBufferAction->setChecked(_filter->showFields() & ChatMonitorFilter::BufferField);
showBufferAction->setData(ChatMonitorFilter::BufferField);
showBufferAction->setCheckable(true);
showBufferAction->setChecked(_filter->showFields() & ChatMonitorFilter::BufferField);
showBufferAction->setData(ChatMonitorFilter::BufferField);
- menu->addAction(new Action(icon::get("configure"), tr("Configure..."), menu, this, SLOT(showSettingsPage())));
+ menu->addAction(new Action(icon::get("configure"), tr("Configure..."), menu, this, &ChatMonitorView::showSettingsPage));
{
if (scene()->columnByScenePos(event->pos()) != ChatLineModel::SenderColumn) {
ChatView::mouseDoubleClickEvent(event);
return;
}
{
if (scene()->columnByScenePos(event->pos()) != ChatLineModel::SenderColumn) {
ChatView::mouseDoubleClickEvent(event);
return;
}
void ChatMonitorView::showSettingsPage()
{
SettingsPageDlg dlg(new ChatMonitorSettingsPage(), this);
dlg.exec();
}
void ChatMonitorView::showSettingsPage()
{
SettingsPageDlg dlg(new ChatMonitorSettingsPage(), this);
dlg.exec();
}
// connect only after client is synced to core since ChatMonitorView is created before
// the ignoreListManager
void ChatMonitorView::coreConnectionStateChanged(bool connected)
// connect only after client is synced to core since ChatMonitorView is created before
// the ignoreListManager
void ChatMonitorView::coreConnectionStateChanged(bool connected)