debugger: remove duplicated 'completeSuffix' entry in QFileInfo dumper

This commit is contained in:
hjk
2009-07-14 18:14:49 +02:00
parent 3c6793e4f3
commit a16aa2e0d6
3 changed files with 15 additions and 1 deletions

View File

@@ -1319,7 +1319,6 @@ static void qDumpQFileInfo(QDumper &d)
d.putHash("isBundle", info.isBundle());
d.putHash("bundleName", info.bundleName());
#endif
d.putHash("completeSuffix", info.completeSuffix());
d.putHash("fileName", info.fileName());
d.putHash("filePath", info.filePath());
d.putHash("group", info.group());

View File

@@ -859,6 +859,13 @@ void WatchModel::insertBulkData(const QList<WatchData> &list)
// overwrite existing items
Iterator it = newList.begin();
int oldCount = newList.size() - list.size();
if (oldCount != parent->children.size())
qDebug() //<< "LIST:" << list.keys()
<< "NEWLIST: " << newList.keys()
<< "OLD COUNT: " << oldCount
<< "P->CHILDREN.SIZE: " << parent->children.size()
<< "NEWLIST SIZE: " << newList.size()
<< "LIST SIZE: " << list.size();
QTC_ASSERT(oldCount == parent->children.size(), return);
for (int i = 0; i < oldCount; ++i, ++it)
parent->children[i]->setData(*it);

View File

@@ -179,6 +179,13 @@ void testQByteArray()
ba += 2;
}
void testQFileInfo()
{
QFileInfo fi("/tmp/t");
QString s = fi.absoluteFilePath();
QString t = fi.bundleName();
}
void testQHash()
{
#if 1
@@ -1208,6 +1215,7 @@ void testQHash1()
int main(int argc, char *argv[])
{
testQFileInfo();
testObject1();
testVector1();
testQHash1();