diff options
Diffstat (limited to 'kexi/kexidb/simplecommandlineapp.cpp')
-rw-r--r-- | kexi/kexidb/simplecommandlineapp.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kexi/kexidb/simplecommandlineapp.cpp b/kexi/kexidb/simplecommandlineapp.cpp index ec73cde2..904469bc 100644 --- a/kexi/kexidb/simplecommandlineapp.cpp +++ b/kexi/kexidb/simplecommandlineapp.cpp @@ -19,7 +19,7 @@ #include "simplecommandlineapp.h" -#include <qfileinfo.h> +#include <tqfileinfo.h> #include <kcmdlineargs.h> #include <kdebug.h> @@ -74,7 +74,7 @@ public: KCmdLineOptions *allOptions; KInstance* instance; ConnectionData connData; - QGuardedPtr<Connection> conn; + TQGuardedPtr<Connection> conn; }; //----------------------------------------- @@ -88,8 +88,8 @@ SimpleCommandLineApp::SimpleCommandLineApp( : Object() , d( new Private() ) { - QFileInfo fi(argv[0]); - QCString appName( fi.baseName().latin1() ); + TQFileInfo fi(argv[0]); + TQCString appName( fi.baseName().latin1() ); KCmdLineArgs::init(argc, argv, new KAboutData( appName, programName, version, shortDescription, licenseType, copyrightStatement, text, @@ -135,14 +135,14 @@ SimpleCommandLineApp::SimpleCommandLineApp( d->connData.useLocalSocketFile = args->isSet("local-socket"); if (args->isSet("password")) { - QString userAtHost = d->connData.userName; + TQString userAtHost = d->connData.userName; if (!d->connData.userName.isEmpty()) userAtHost += "@"; userAtHost += (d->connData.hostName.isEmpty() ? "localhost" : d->connData.hostName); - QTextStream cout(stdout,IO_WriteOnly); - cout << i18n("Enter password for %1: ").arg(userAtHost); + TQTextStream cout(stdout,IO_WriteOnly); + cout << i18n("Enter password for %1: ").tqarg(userAtHost); //! @todo make use of pty/tty here! (and care about portability) - QTextStream cin(stdin,IO_ReadOnly); + TQTextStream cin(stdin,IO_ReadOnly); cin >> d->connData.password; KexiDBDbg << d->connData.password << endl; } @@ -154,7 +154,7 @@ SimpleCommandLineApp::~SimpleCommandLineApp() delete d; } -bool SimpleCommandLineApp::openDatabase(const QString& databaseName) +bool SimpleCommandLineApp::openDatabase(const TQString& databaseName) { if (!d->conn) { if (d->manager.error()) { |