diff options
Diffstat (limited to 'kexi/core/kexiprojectdata.cpp')
-rw-r--r-- | kexi/core/kexiprojectdata.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/kexi/core/kexiprojectdata.cpp b/kexi/core/kexiprojectdata.cpp index 68966a11..9f0106bc 100644 --- a/kexi/core/kexiprojectdata.cpp +++ b/kexi/core/kexiprojectdata.cpp @@ -21,10 +21,10 @@ #include <sys/types.h> #include <unistd.h> -#include <qdom.h> -#include <qdir.h> -#include <qfile.h> -#include <qregexp.h> +#include <tqdom.h> +#include <tqdir.h> +#include <tqfile.h> +#include <tqregexp.h> #include <kglobal.h> #include <kstandarddirs.h> @@ -48,7 +48,7 @@ public: {} KexiDB::ConnectionData connData; - QDateTime lastOpened; + TQDateTime lastOpened; bool userMode : 1; bool readOnly : 1; }; @@ -56,7 +56,7 @@ public: //--------------------------------------- KexiProjectData::KexiProjectData() - : QObject(0, "KexiProjectData") + : TQObject(0, "KexiProjectData") , KexiDB::SchemaData() , formatVersion(0) , d( new KexiProjectDataPrivate() ) @@ -64,8 +64,8 @@ KexiProjectData::KexiProjectData() } KexiProjectData::KexiProjectData( - const KexiDB::ConnectionData &cdata, const QString& dbname, const QString& caption ) - : QObject(0, "KexiProjectData") + const KexiDB::ConnectionData &cdata, const TQString& dbname, const TQString& caption ) + : TQObject(0, "KexiProjectData") , KexiDB::SchemaData() , formatVersion(0) , d( new KexiProjectDataPrivate() ) @@ -76,7 +76,7 @@ KexiProjectData::KexiProjectData( } KexiProjectData::KexiProjectData( const KexiProjectData& pdata ) - : QObject(0, "KexiProjectData"), KexiDB::SchemaData() + : TQObject(0, "KexiProjectData"), KexiDB::SchemaData() , d( 0 ) { *this = pdata; @@ -116,12 +116,12 @@ const KexiDB::ConnectionData* KexiProjectData::constConnectionData() const return &d->connData; } -QString KexiProjectData::databaseName() const +TQString KexiProjectData::databaseName() const { return KexiDB::SchemaData::name(); } -void KexiProjectData::setDatabaseName(const QString& dbName) +void KexiProjectData::setDatabaseName(const TQString& dbName) { KexiDB::SchemaData::setName(dbName); } @@ -131,37 +131,37 @@ bool KexiProjectData::userMode() const return d->userMode; } -QDateTime KexiProjectData::lastOpened() const +TQDateTime KexiProjectData::lastOpened() const { return d->lastOpened; } -void KexiProjectData::setLastOpened(const QDateTime& lastOpened) +void KexiProjectData::setLastOpened(const TQDateTime& lastOpened) { d->lastOpened=lastOpened; } -QString KexiProjectData::description() const +TQString KexiProjectData::description() const { return KexiDB::SchemaData::description(); } -void KexiProjectData::setDescription(const QString& desc) +void KexiProjectData::setDescription(const TQString& desc) { return KexiDB::SchemaData::setDescription(desc); } -QString KexiProjectData::infoString(bool nobr) const +TQString KexiProjectData::infoString(bool nobr) const { if (constConnectionData()->fileName().isEmpty()) { //server-based - return QString(nobr ? "<nobr>" : "") + QString("\"%1\"").arg(databaseName()) + (nobr ? "</nobr>" : "") + return TQString(nobr ? "<nobr>" : "") + TQString("\"%1\"").tqarg(databaseName()) + (nobr ? "</nobr>" : "") + (nobr ? " <nobr>" : " ") + i18n("database connection", "(connection %1)") - .arg(constConnectionData()->serverInfoString()) + (nobr ? "</nobr>" : ""); + .tqarg(constConnectionData()->serverInfoString()) + (nobr ? "</nobr>" : ""); } //file-based - return QString(nobr ? "<nobr>" : "") - + QString("\"%1\"").arg(constConnectionData()->fileName()) + (nobr ? "</nobr>" : ""); + return TQString(nobr ? "<nobr>" : "") + + TQString("\"%1\"").tqarg(constConnectionData()->fileName()) + (nobr ? "</nobr>" : ""); } void KexiProjectData::setReadOnly(bool set) |