|
|
|
@ -78,7 +78,7 @@ LogLine* LogLineTree::synchronizeAddedLines(View* view) {
|
|
|
|
|
|
|
|
|
|
LogLine* line=it.current();
|
|
|
|
|
|
|
|
|
|
kdDebug() << "Inserting " << tqparents.count() << " tqparent log item" << endl;
|
|
|
|
|
kdDebug() << "Inserting " << parents.count() << " tqparent log item" << endl;
|
|
|
|
|
|
|
|
|
|
int i=0;
|
|
|
|
|
while (line!=NULL) {
|
|
|
|
@ -101,7 +101,7 @@ LogLine* LogLineTree::synchronizeAddedLines(View* view) {
|
|
|
|
|
kdDebug() << "Adding tqparent items to the tree..." << endl;
|
|
|
|
|
|
|
|
|
|
//We first add the new tqparent items
|
|
|
|
|
TQPtrListIterator<ParentLogLine> it(tqparents);
|
|
|
|
|
TQPtrListIterator<ParentLogLine> it(parents);
|
|
|
|
|
|
|
|
|
|
LogLine* line=it.current();
|
|
|
|
|
|
|
|
|
@ -129,7 +129,7 @@ bool LogLineTree::remove(LogLine* line) {
|
|
|
|
|
ParentLogLine* tqparent=(ParentLogLine*) line;
|
|
|
|
|
|
|
|
|
|
if (tqparent->hasChildren()==false) {
|
|
|
|
|
tqparents.remove(tqparent);
|
|
|
|
|
parents.remove(tqparent);
|
|
|
|
|
return(LogLineList::remove(line));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -147,7 +147,7 @@ bool LogLineTree::remove(LogLine* line) {
|
|
|
|
|
|
|
|
|
|
//Remove tqparent if it does not have longer tqchildren
|
|
|
|
|
if (tqparent->hasChildren()==false) {
|
|
|
|
|
tqparents.remove(tqparent);
|
|
|
|
|
parents.remove(tqparent);
|
|
|
|
|
LogLineList::remove(tqparent);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -163,7 +163,7 @@ bool LogLineTree::remove(LogLine* line) {
|
|
|
|
|
|
|
|
|
|
void LogLineTree::insert(LogLine* line) {
|
|
|
|
|
|
|
|
|
|
TQPtrListIterator<ParentLogLine> it(tqparents);
|
|
|
|
|
TQPtrListIterator<ParentLogLine> it(parents);
|
|
|
|
|
ParentLogLine* tqparent=it.current();
|
|
|
|
|
|
|
|
|
|
bool insertion=false;
|
|
|
|
@ -199,7 +199,7 @@ void LogLineTree::insert(LogLine* line) {
|
|
|
|
|
//Insert this tqparent by the classical way
|
|
|
|
|
LogLineList::insert(newParent);
|
|
|
|
|
|
|
|
|
|
tqparents.append(newParent);
|
|
|
|
|
parents.append(newParent);
|
|
|
|
|
|
|
|
|
|
ChildLogLine* newChild=new ChildLogLine(date, time, line->getItemList(), line->getOriginalFile(), line->getLogLevel(), line->getType());
|
|
|
|
|
newParent->addChild(newChild);
|
|
|
|
|