Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/tools/assistant/lib/qhelpcollectionhandler.cpp

    r769 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    115115    }
    116116
     117    m_query.exec(QLatin1String("PRAGMA synchronous=OFF"));
     118    m_query.exec(QLatin1String("PRAGMA cache_size=3000"));
     119
    117120    m_query.exec(QLatin1String("SELECT COUNT(*) FROM sqlite_master WHERE TYPE=\'table\'"
    118121                               "AND Name=\'NamespaceTable\'"));
     
    163166        return false;
    164167    }
     168
     169    copyQuery->exec(QLatin1String("PRAGMA synchronous=OFF"));
     170    copyQuery->exec(QLatin1String("PRAGMA cache_size=3000"));
    165171
    166172    if (!createTables(copyQuery)) {
     
    309315    m_query.bindValue(0, filterName);
    310316    m_query.exec();
    311     while (m_query.next()) {
     317    if (m_query.next())
    312318        nameId = m_query.value(0).toInt();
    313         break;
    314     }
    315319
    316320    m_query.exec(QLatin1String("SELECT Id, Name FROM FilterAttributeTable"));
     
    585589
    586590        QSqlQuery query(db);
     591        db.exec(QLatin1String("PRAGMA synchronous=OFF"));
     592        db.exec(QLatin1String("PRAGMA cache_size=3000"));
    587593        db.exec(QLatin1String("CREATE INDEX IF NOT EXISTS NameIndex ON IndexTable(Name)"));
    588594        db.exec(QLatin1String("CREATE INDEX IF NOT EXISTS FileNameIndex ON FileNameTable(Name)"));
Note: See TracChangeset for help on using the changeset viewer.