/***************************************************************************
- * 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 "core.h"
#include "coresession.h"
-INIT_SYNCABLE_OBJECT(CoreBufferViewManager)
CoreBufferViewManager::CoreBufferViewManager(SignalProxy *proxy, CoreSession *parent)
: BufferViewManager(proxy, parent),
_coreSession(parent)
while (iter != iterEnd) {
config = new CoreBufferViewConfig(iter.key().toInt(), iter.value().toMap(), this);
addBufferViewConfig(config);
- iter++;
+ ++iter;
}
}
BufferViewConfigHash::const_iterator iterEnd = bufferViewConfigHash().constEnd();
while (iter != iterEnd) {
views[QString::number((*iter)->bufferViewId())] = (*iter)->toVariantMap();
- iter++;
+ ++iter;
}
Core::setUserSetting(_coreSession->user(), "BufferViews", views);
if ((*iter)->bufferViewId() > maxId)
maxId = (*iter)->bufferViewId();
- iter++;
+ ++iter;
}
maxId++;
- CoreBufferViewConfig *config = new CoreBufferViewConfig(maxId, properties);
- addBufferViewConfig(config);
+ addBufferViewConfig(new CoreBufferViewConfig(maxId, properties, this));
}
QVariantList::const_iterator iterEnd = properties.constEnd();
while (iter != iterEnd) {
requestCreateBufferView((*iter).toMap());
- iter++;
+ ++iter;
}
}