modernize: Reformat ALL the source... again!
[quassel.git] / src / qtui / titlesetter.cpp
index 31385a0..a7429e0 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-2013 by the Quassel Project                        *
+ *   Copyright (C) 2005-2018 by the Quassel Project                        *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
 #include "client.h"
 #include "mainwin.h"
 
-TitleSetter::TitleSetter(MainWin *parent)
-    : AbstractItemView(parent),
-    _mainWin(parent)
-{
-}
-
+TitleSetter::TitleSetter(MainWin* parent)
+    : AbstractItemView(parent)
+    , _mainWin(parent)
+{}
 
-void TitleSetter::currentChanged(const QModelIndex &current, const QModelIndex &previous)
+void TitleSetter::currentChanged(const QModelIndex& current, const QModelIndex& previous)
 {
     Q_UNUSED(previous);
     changeWindowTitle(current.sibling(current.row(), 0));
 }
 
-
-void TitleSetter::dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
+void TitleSetter::dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight)
 {
     QItemSelectionRange changedArea(topLeft, bottomRight);
     QModelIndex currentTopicIndex = selectionModel()->currentIndex().sibling(selectionModel()->currentIndex().row(), 0);
     if (changedArea.contains(currentTopicIndex))
         changeWindowTitle(currentTopicIndex);
-};
+}
 
-void TitleSetter::changeWindowTitle(const QModelIndex &index)
+void TitleSetter::changeWindowTitle(const QModelIndexindex)
 {
     BufferId id = index.data(NetworkModel::BufferIdRole).value<BufferId>();
     if (!id.isValid())