modernize: Reformat ALL the source... again!
[quassel.git] / src / qtui / awaylogview.cpp
index 4a6bacc..4bd0bcc 100644 (file)
 #include "chatlinemodel.h"
 #include "chatscene.h"
 
-AwayLogView::AwayLogView(AwayLogFilter *filter, QWidget *parent)
+AwayLogView::AwayLogView(AwayLogFilter* filter, QWidget* parent)
     : ChatMonitorView(filter, parent)
 {
     setWindowTitle(tr("Away Log"));
 }
 
-
-void AwayLogView::addActionsToMenu(QMenu *menu, const QPointF &pos)
+void AwayLogView::addActionsToMenu(QMenu* menu, const QPointF& pos)
 {
     ChatView::addActionsToMenu(menu, pos);
     if (!menu->isEmpty())
@@ -44,13 +43,13 @@ void AwayLogView::addActionsToMenu(QMenu *menu, const QPointF &pos)
     if (scene()->columnByScenePos(pos) == ChatLineModel::SenderColumn) {
         menu->addSeparator();
 
-        auto *showNetworkAction = new Action(tr("Show Network Name"), menu, this, &AwayLogView::showFieldsChanged);
+        autoshowNetworkAction = new Action(tr("Show Network Name"), menu, this, &AwayLogView::showFieldsChanged);
         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, &AwayLogView::showFieldsChanged);
+        autoshowBufferAction = new Action(tr("Show Buffer Name"), menu, this, &AwayLogView::showFieldsChanged);
         showBufferAction->setCheckable(true);
         showBufferAction->setChecked(filter()->showFields() & ChatMonitorFilter::BufferField);
         showBufferAction->setData(ChatMonitorFilter::BufferField);