diff options
Diffstat (limited to 'kexi/main/startup/KexiStartup_p.cpp')
-rw-r--r-- | kexi/main/startup/KexiStartup_p.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kexi/main/startup/KexiStartup_p.cpp b/kexi/main/startup/KexiStartup_p.cpp index df7cddc6..e8139e18 100644 --- a/kexi/main/startup/KexiStartup_p.cpp +++ b/kexi/main/startup/KexiStartup_p.cpp @@ -25,11 +25,11 @@ #include <kdebug.h> #include <klocale.h> -#include <qfileinfo.h> -#include <qdir.h> -#include <qapplication.h> +#include <tqfileinfo.h> +#include <tqdir.h> +#include <tqapplication.h> -SQLite2ToSQLite3Migration::SQLite2ToSQLite3Migration(const QString& filePath) +SQLite2ToSQLite3Migration::SQLite2ToSQLite3Migration(const TQString& filePath) : m_filePath(filePath) { m_process = 0; @@ -50,33 +50,33 @@ tristate SQLite2ToSQLite3Migration::run() if (m_run) return false; m_run = true; - const QString ksqlite2to3_app = KStandardDirs::findExe( "ksqlite2to3" ); + const TQString ksqlite2to3_app = KStandardDirs::findExe( "ksqlite2to3" ); if (ksqlite2to3_app.isEmpty()) return false; - QFileInfo fi(m_filePath); + TQFileInfo fi(m_filePath); if (fi.isSymLink()) { m_filePath = fi.readLink(); - fi = QFileInfo(m_filePath); + fi = TQFileInfo(m_filePath); } //remember permissions of m_filePath - m_restoreStat = (0==stat(QFile::encodeName(m_filePath), &m_st)); + m_restoreStat = (0==stat(TQFile::encodeName(m_filePath), &m_st)); m_process = new KProcess(this, "process"); *m_process << ksqlite2to3_app << m_filePath; m_process->setWorkingDirectory( fi.dir(true).absPath() ); - connect( m_process, SIGNAL(receivedStderr(KProcess*,char*,int)), - this, SLOT(receivedStderr(KProcess*,char*,int))); - connect( m_process, SIGNAL(processExited(KProcess*)), this, SLOT(processExited(KProcess*)) ); + connect( m_process, TQT_SIGNAL(receivedStderr(KProcess*,char*,int)), + this, TQT_SLOT(receivedStderr(KProcess*,char*,int))); + connect( m_process, TQT_SIGNAL(processExited(KProcess*)), this, TQT_SLOT(processExited(KProcess*)) ); if (!m_process->start(KProcess::NotifyOnExit, KProcess::Stderr)) return false; - m_dlg = new KProgressDialog(0, 0, QString::null, + m_dlg = new KProgressDialog(0, 0, TQString(), i18n("Saving \"%1\" project file to a new \"%2\" database format...") - .arg(QDir::convertSeparators(QFileInfo(m_filePath).fileName())).arg("SQLite3") + .tqarg(TQDir::convertSeparators(TQFileInfo(m_filePath).fileName())).tqarg("SQLite3") ); m_dlg->setModal(true); - connect(m_dlg, SIGNAL(cancelClicked()), this, SLOT(cancelClicked())); + connect(m_dlg, TQT_SIGNAL(cancelClicked()), this, TQT_SLOT(cancelClicked())); m_dlg->setMinimumDuration(1000); m_dlg->setAutoClose(true); m_dlg->progressBar()->setTotalSteps(100); @@ -107,8 +107,8 @@ void SQLite2ToSQLite3Migration::processExited(KProcess* process) if (result == true) { if (m_restoreStat) { //restore permissions for m_filePath - chmod(QFile::encodeName(m_filePath), m_st.st_mode); - chown(QFile::encodeName(m_filePath), m_st.st_uid, m_st.st_gid); + chmod(TQFile::encodeName(m_filePath), m_st.st_mode); + chown(TQFile::encodeName(m_filePath), m_st.st_uid, m_st.st_gid); } } } |