diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-03-01 13:22:57 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-03-01 13:22:57 -0600 |
commit | 9b9d4ea191b72a4742c67bbcdb12528dbe848dfd (patch) | |
tree | f85ada91374abeb209235c716912d15c9751ad06 /src/svnqt/cache/LogCache.cpp | |
parent | c1ece33d3c587246439e1392a25d19e0c7117fee (diff) | |
download | tdesvn-9b9d4ea191b72a4742c67bbcdb12528dbe848dfd.tar.gz tdesvn-9b9d4ea191b72a4742c67bbcdb12528dbe848dfd.zip |
Rename additional global TQt functions
Diffstat (limited to 'src/svnqt/cache/LogCache.cpp')
-rw-r--r-- | src/svnqt/cache/LogCache.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/svnqt/cache/LogCache.cpp b/src/svnqt/cache/LogCache.cpp index 4dcb27b..d95284e 100644 --- a/src/svnqt/cache/LogCache.cpp +++ b/src/svnqt/cache/LogCache.cpp @@ -107,7 +107,7 @@ public: db = query.value(0).toString(); } else { - qDebug("Error select_01: %s (%s)",query.lastError().text().TOUTF8().data(), + tqDebug("Error select_01: %s (%s)",query.lastError().text().TOUTF8().data(), query.lastQuery().TOUTF8().data()); } if (!db.isEmpty()) { @@ -133,11 +133,11 @@ public: c.bindValue(0,reposroot.native()); c.exec(); - //qDebug("Check for path: "+reposroot.native()); + //tqDebug("Check for path: "+reposroot.native()); // only the first one if ( c.next() ) { -/* qDebug( c.value(0).toString() + ": " + +/* tqDebug( c.value(0).toString() + ": " + c.value(0).toString() );*/ dbFile = c.value(0).toString(); } @@ -156,19 +156,19 @@ public: while (TQSqlDatabase::contains(_key)) { _key = TQString("%1-%2").arg(dbFile).arg(i++); } -// qDebug("The repository key is now: %s",_key.TOUTF8().data()); +// tqDebug("The repository key is now: %s",_key.TOUTF8().data()); TQDataBase _db = TQSqlDatabase::addDatabase(SQLTYPE,_key); if (!_db) { return 0; } TQString fulldb = m_BasePath+"/"+dbFile+".db"; _db->setDatabaseName(fulldb); -// qDebug("try database open %s",fulldb.TOUTF8().data()); +// tqDebug("try database open %s",fulldb.TOUTF8().data()); if (!checkReposDb(_db)) { - qDebug("no DB opened"); + tqDebug("no DB opened"); _db = 0; } else { - qDebug("Insert into map"); + tqDebug("Insert into map"); m_mainDB.localData()->reposCacheNames[dbFile]=_key; } return _db; @@ -182,12 +182,12 @@ public: while (TQSqlDatabase::contains(_key)) { _key.sprintf("%s-%i",SQLMAIN,i++); } - qDebug("The key is now: %s",_key.TOUTF8().data()); + tqDebug("The key is now: %s",_key.TOUTF8().data()); TQDataBase db = TQSqlDatabase::addDatabase(SQLTYPE,_key); db->setDatabaseName(m_BasePath+"/maindb.db"); if (!db->open()) { - qWarning(TQString("Failed to open main database: " + db->lastError().text()).ascii()); + tqWarning(TQString("Failed to open main database: " + db->lastError().text()).ascii()); } else { m_mainDB.setLocalData(new ThreadDBStore); m_mainDB.localData()->key = _key; @@ -269,12 +269,12 @@ void LogCache::setupMainDb() #endif TQDataBase mainDB = m_CacheData->getMainDB(); if (!mainDB || !mainDB->open()) { - qWarning(TQString("Failed to open main database: " + (mainDB?mainDB->lastError().text():"No database object.")).ascii()); + tqWarning(TQString("Failed to open main database: " + (mainDB?mainDB->lastError().text():"No database object.")).ascii()); } else { TQSqlQuery q(TQString(), mainDB); mainDB->transaction(); if (!q.exec("CREATE TABLE IF NOT EXISTS \""+TQString(SQLMAINTABLE)+"\" (\"reposroot\" TEXT,\"id\" INTEGER PRIMARY KEY NOT NULL);")) { - qWarning(TQString("Failed create main database: " + mainDB->lastError().text()).ascii()); + tqWarning(TQString("Failed create main database: " + mainDB->lastError().text()).ascii()); } mainDB->commit(); } @@ -301,7 +301,7 @@ svn::cache::LogCache* svn::cache::LogCache::self() */ TQDataBase svn::cache::LogCache::reposDb(const TQString&aRepository) { -// qDebug("reposDB"); +// tqDebug("reposDB"); return m_CacheData->getReposDB(aRepository); } @@ -315,13 +315,13 @@ TQStringList svn::cache::LogCache::cachedRepositories()const TQDataBase mainDB = m_CacheData->getMainDB(); TQStringList _res; if (!mainDB || !mainDB->open()) { - qWarning("Failed to open main database."); + tqWarning("Failed to open main database."); return _res; } TQSqlQuery cur(TQString(),mainDB); cur.prepare(s_q); if (!cur.exec()) { - qDebug(cur.lastError().text().TOUTF8().data()); + tqDebug(cur.lastError().text().TOUTF8().data()); throw svn::cache::DatabaseException(TQString("Could not retrieve values: ")+cur.lastError().text()); return _res; } |