projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modernize: Reformat ALL the source... again!
[quassel.git]
/
src
/
uisupport
/
abstractbuffercontainer.cpp
diff --git
a/src/uisupport/abstractbuffercontainer.cpp
b/src/uisupport/abstractbuffercontainer.cpp
index
f6e8de7
..
036731b
100644
(file)
--- a/
src/uisupport/abstractbuffercontainer.cpp
+++ b/
src/uisupport/abstractbuffercontainer.cpp
@@
-19,18
+19,17
@@
***************************************************************************/
#include "abstractbuffercontainer.h"
***************************************************************************/
#include "abstractbuffercontainer.h"
+
#include "client.h"
#include "clientbacklogmanager.h"
#include "networkmodel.h"
#include "client.h"
#include "clientbacklogmanager.h"
#include "networkmodel.h"
-AbstractBufferContainer::AbstractBufferContainer(QWidget *parent)
- : AbstractItemView(parent),
- _currentBuffer(0)
-{
-}
-
+AbstractBufferContainer::AbstractBufferContainer(QWidget* parent)
+ : AbstractItemView(parent)
+ , _currentBuffer(0)
+{}
-void AbstractBufferContainer::rowsAboutToBeRemoved(const QModelIndex
&
parent, int start, int end)
+void AbstractBufferContainer::rowsAboutToBeRemoved(const QModelIndex
&
parent, int start, int end)
{
Q_ASSERT(model());
if (!parent.isValid()) {
{
Q_ASSERT(model());
if (!parent.isValid()) {
@@
-40,7
+39,7
@@
void AbstractBufferContainer::rowsAboutToBeRemoved(const QModelIndex &parent, in
if (model()->rowCount(parent) != end - start + 1)
return;
if (model()->rowCount(parent) != end - start + 1)
return;
- foreach(BufferId id, _chatViews.keys()) {
+ foreach
(BufferId id, _chatViews.keys()) {
removeChatView(id);
}
_chatViews.clear();
removeChatView(id);
}
_chatViews.clear();
@@
-58,7
+57,6
@@
void AbstractBufferContainer::rowsAboutToBeRemoved(const QModelIndex &parent, in
}
}
}
}
-
void AbstractBufferContainer::removeBuffer(BufferId bufferId)
{
if (!_chatViews.contains(bufferId))
void AbstractBufferContainer::removeBuffer(BufferId bufferId)
{
if (!_chatViews.contains(bufferId))
@@
-68,7
+66,6
@@
void AbstractBufferContainer::removeBuffer(BufferId bufferId)
_chatViews.take(bufferId);
}
_chatViews.take(bufferId);
}
-
/*
Switching to first buffer is now handled in MainWin::clientNetworkUpdated()
/*
Switching to first buffer is now handled in MainWin::clientNetworkUpdated()
@@
-88,7
+85,7
@@
void AbstractBufferContainer::rowsInserted(const QModelIndex &parent, int start,
}
*/
}
*/
-void AbstractBufferContainer::currentChanged(const QModelIndex
¤t, const QModelIndex &
previous)
+void AbstractBufferContainer::currentChanged(const QModelIndex
& current, const QModelIndex&
previous)
{
Q_UNUSED(previous)
{
Q_UNUSED(previous)
@@
-101,7
+98,6
@@
void AbstractBufferContainer::currentChanged(const QModelIndex ¤t, const Q
}
}
}
}
-
void AbstractBufferContainer::setCurrentBuffer(BufferId bufferId)
{
BufferId prevBufferId = currentBuffer();
void AbstractBufferContainer::setCurrentBuffer(BufferId bufferId)
{
BufferId prevBufferId = currentBuffer();