summaryrefslogtreecommitdiffstats
path: root/kexi/kexidb/connectiondata.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kexi/kexidb/connectiondata.cpp
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kexi/kexidb/connectiondata.cpp')
-rw-r--r--kexi/kexidb/connectiondata.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kexi/kexidb/connectiondata.cpp b/kexi/kexidb/connectiondata.cpp
index a74237cc..4f45b0f4 100644
--- a/kexi/kexidb/connectiondata.cpp
+++ b/kexi/kexidb/connectiondata.cpp
@@ -21,8 +21,8 @@
#include <kexidb/drivermanager.h>
-#include <qfileinfo.h>
-#include <qdir.h>
+#include <tqfileinfo.h>
+#include <tqdir.h>
#include <klocale.h>
@@ -50,7 +50,7 @@ ConnectionDataBase::ConnectionDataBase()
/*================================================================*/
ConnectionData::ConnectionData()
-: QObject()
+: TQObject()
, ConnectionDataBase()
, formatVersion(0)
, priv(new ConnectionData::Private())
@@ -58,7 +58,7 @@ ConnectionData::ConnectionData()
}
ConnectionData::ConnectionData(const ConnectionData& cd)
-: QObject()
+: TQObject()
, ConnectionDataBase()
, priv(0)
{
@@ -82,33 +82,33 @@ ConnectionData& ConnectionData::operator=(const ConnectionData& cd)
return *this;
}
-void ConnectionData::setFileName( const QString& fn )
+void ConnectionData::setFileName( const TQString& fn )
{
- QFileInfo file(fn);
+ TQFileInfo file(fn);
if (!fn.isEmpty() && m_fileName != file.absFilePath()) {
- m_fileName = QDir::convertSeparators(file.absFilePath());
- m_dbPath = QDir::convertSeparators(file.dirPath(true));
+ m_fileName = TQDir::convertSeparators(file.absFilePath());
+ m_dbPath = TQDir::convertSeparators(file.dirPath(true));
m_dbFileName = file.fileName();
}
}
-QString ConnectionData::serverInfoString(bool addUser) const
+TQString ConnectionData::serverInfoString(bool addUser) const
{
- const QString& i18nFile = i18n("file");
+ const TQString& i18nFile = i18n("file");
if (!m_dbFileName.isEmpty())
return i18nFile+": "+(m_dbPath.isEmpty() ? "" : m_dbPath
- + QDir::separator()) + m_dbFileName;
+ + TQDir::separator()) + m_dbFileName;
DriverManager man;
if (!driverName.isEmpty()) {
Driver::Info info = man.driverInfo(driverName);
if (!info.name.isEmpty() && info.fileBased)
- return QString("<")+i18nFile+">";
+ return TQString("<")+i18nFile+">";
}
- return ( (userName.isEmpty() || !addUser) ? QString("") : (userName+"@"))
- + (hostName.isEmpty() ? QString("localhost") : hostName)
- + (port!=0 ? (QString(":")+QString::number(port)) : QString::null);
+ return ( (userName.isEmpty() || !addUser) ? TQString("") : (userName+"@"))
+ + (hostName.isEmpty() ? TQString("localhost") : hostName)
+ + (port!=0 ? (TQString(":")+TQString::number(port)) : TQString());
}