comparison hgexpwidget.cpp @ 52:384420567575

* Use the date when laying out rows
author Chris Cannam
date Fri, 12 Nov 2010 11:32:01 +0000
parents c76782c14371
children 3c46b2ac45d3
comparison
equal deleted inserted replaced
51:bf3ab0ffb559 52:384420567575
346 foreach (QString key, e.keys()) { 346 foreach (QString key, e.keys()) {
347 if (key == "parents") { 347 if (key == "parents") {
348 QStringList parents = e.value(key).split 348 QStringList parents = e.value(key).split
349 (" ", QString::SkipEmptyParts); 349 (" ", QString::SkipEmptyParts);
350 cs->setParents(parents); 350 cs->setParents(parents);
351 } else if (key == "timestamp") {
352 cs->setTimestamp(e.value(key).split(" ")[0].toULongLong());
351 } else { 353 } else {
352 cs->setProperty(key.toLocal8Bit().data(), e.value(key)); 354 cs->setProperty(key.toLocal8Bit().data(), e.value(key));
353 } 355 }
354 } 356 }
355 csets.push_back(cs); 357 csets.push_back(cs);