Reformat ALL the source!
[quassel.git] / src / qtui / awaylogview.cpp
index ed87085..a09d198 100644 (file)
 #include "chatscene.h"
 
 AwayLogView::AwayLogView(AwayLogFilter *filter, QWidget *parent)
-  : ChatMonitorView(filter, parent)
+    : ChatMonitorView(filter, parent)
 {
-  setWindowTitle(tr("Away Log"));
+    setWindowTitle(tr("Away Log"));
 }
 
-void AwayLogView::addActionsToMenu(QMenu *menu, const QPointF &pos) {
-  ChatView::addActionsToMenu(menu, pos);
-  if(!menu->isEmpty())
-    menu->addSeparator();
 
-  if(scene()->columnByScenePos(pos) == ChatLineModel::SenderColumn) {
-    menu->addSeparator();
-
-    QAction *showNetworkAction = menu->addAction(tr("Show Network Name"), this, SLOT(showFieldsChanged(bool)));
-    showNetworkAction->setCheckable(true);
-    showNetworkAction->setChecked(filter()->showFields() & ChatMonitorFilter::NetworkField);
-    showNetworkAction->setData(ChatMonitorFilter::NetworkField);
-
-    QAction *showBufferAction = menu->addAction(tr("Show Buffer Name"), this, SLOT(showFieldsChanged(bool)));
-    showBufferAction->setCheckable(true);
-    showBufferAction->setChecked(filter()->showFields() & ChatMonitorFilter::BufferField);
-    showBufferAction->setData(ChatMonitorFilter::BufferField);
-  }
+void AwayLogView::addActionsToMenu(QMenu *menu, const QPointF &pos)
+{
+    ChatView::addActionsToMenu(menu, pos);
+    if (!menu->isEmpty())
+        menu->addSeparator();
+
+    if (scene()->columnByScenePos(pos) == ChatLineModel::SenderColumn) {
+        menu->addSeparator();
+
+        QAction *showNetworkAction = menu->addAction(tr("Show Network Name"), this, SLOT(showFieldsChanged(bool)));
+        showNetworkAction->setCheckable(true);
+        showNetworkAction->setChecked(filter()->showFields() & ChatMonitorFilter::NetworkField);
+        showNetworkAction->setData(ChatMonitorFilter::NetworkField);
+
+        QAction *showBufferAction = menu->addAction(tr("Show Buffer Name"), this, SLOT(showFieldsChanged(bool)));
+        showBufferAction->setCheckable(true);
+        showBufferAction->setChecked(filter()->showFields() & ChatMonitorFilter::BufferField);
+        showBufferAction->setData(ChatMonitorFilter::BufferField);
+    }
 }