newChild(bufferItem);
- // postprocess... this is necessary because Qt doesn't seem to like adding childs which already have childs on their own
+ // postprocess... this is necessary because Qt doesn't seem to like adding children which already have children on their own
switch(bufferInfo.type()) {
case BufferInfo::ChannelBuffer:
{
void SelectionModelSynchronizer::synchronizeSelectionModel(QItemSelectionModel *selectionModel) {
if(!checkBaseModel(selectionModel)) {
- qWarning() << "cannot Syncronize SelectionModel" << selectionModel << "which has a different baseModel()";
+ qWarning() << "cannot Synchronize SelectionModel" << selectionModel << "which has a different baseModel()";
return;
}
void TreeModel::beginAppendChilds(int firstRow, int lastRow) {
AbstractTreeItem *parentItem = qobject_cast<AbstractTreeItem *>(sender());
if(!parentItem) {
- qWarning() << "TreeModel::beginAppendChilds(): cannot append Childs to unknown parent";
+ qWarning() << "TreeModel::beginAppendChilds(): cannot append Children to unknown parent";
return;
}
void TreeModel::endAppendChilds() {
AbstractTreeItem *parentItem = qobject_cast<AbstractTreeItem *>(sender());
if(!parentItem) {
- qWarning() << "TreeModel::endAppendChilds(): cannot append Childs to unknown parent";
+ qWarning() << "TreeModel::endAppendChilds(): cannot append Children to unknown parent";
return;
}
Q_ASSERT(_aboutToRemoveOrInsert);
void TreeModel::beginRemoveChilds(int firstRow, int lastRow) {
AbstractTreeItem *parentItem = qobject_cast<AbstractTreeItem *>(sender());
if(!parentItem) {
- qWarning() << "TreeModel::beginRemoveChilds(): cannot append Childs to unknown parent";
+ qWarning() << "TreeModel::beginRemoveChilds(): cannot append Children to unknown parent";
return;
}
void TreeModel::endRemoveChilds() {
AbstractTreeItem *parentItem = qobject_cast<AbstractTreeItem *>(sender());
if(!parentItem) {
- qWarning() << "TreeModel::endRemoveChilds(): cannot remove Childs from unknown parent";
+ qWarning() << "TreeModel::endRemoveChilds(): cannot remove Children from unknown parent";
return;
}
}
if(!db.commit()) {
- qWarning() << "PostgreSqlStorage::createIdentity(): commiting data failed!";
+ qWarning() << "PostgreSqlStorage::createIdentity(): committing data failed!";
qWarning() << " -" << qPrintable(db.lastError().text());
return IdentityId();
}
}
if(!db.commit()) {
- qWarning() << "PostgreSqlStorage::updateIdentity(): commiting data failed!";
+ qWarning() << "PostgreSqlStorage::updateIdentity(): committing data failed!";
qWarning() << " -" << qPrintable(db.lastError().text());
return false;
}
}
if(!db.commit()) {
- qWarning() << "PostgreSqlStorage::createNetwork(): commiting data failed!";
+ qWarning() << "PostgreSqlStorage::createNetwork(): committing data failed!";
qWarning() << " -" << qPrintable(db.lastError().text());
return NetworkId();
}
}
if(!db.commit()) {
- qWarning() << "PostgreSqlStorage::updateNetwork(): commiting data failed!";
+ qWarning() << "PostgreSqlStorage::updateNetwork(): committing data failed!";
qWarning() << " -" << qPrintable(db.lastError().text());
return false;
}
// sanity check - if that check fails our indexes would be messed up
for(int row = start; row <= end; row++) {
if(sourceItem->child(row)->childCount() > 0) {
- qWarning() << "on_rowsAboutToBeRemoved(): sourceModel() removed rows which have childs on their own!" << sourceModel()->index(row, 0, parent);
+ qWarning() << "on_rowsAboutToBeRemoved(): sourceModel() removed rows which have children on their own!" << sourceModel()->index(row, 0, parent);
Q_ASSERT(false);
}
}
for(int row = start; row <= end; row++) {
QModelIndex child = sourceModel()->index(row, 0, parent);
if(sourceModel()->rowCount(child) > 0) {
- qWarning() << "on_rowsInserted(): sourceModel() inserted rows which already have childs on their own!" << child;
+ qWarning() << "on_rowsInserted(): sourceModel() inserted rows which already have children on their own!" << child;
Q_ASSERT(false);
}
}
}
bool NickViewFilter::filterAcceptsRow(int source_row, const QModelIndex &source_parent) const {
- // root node, networkindexes, the bufferindex of the buffer this filter is active for and it's childs are accepted
+ // root node, networkindexes, the bufferindex of the buffer this filter is active for and it's children are accepted
if(!source_parent.isValid())
return true;