diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-04 19:54:24 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-04 19:54:24 +0000 |
commit | d7633c195a464e4d344ada9eea61afd10110598a (patch) | |
tree | 1f2da0b135f3ed84955e340cae823f00c4ce7284 /src/askpass | |
parent | 3fa7eb804f67b2789f128075cc2522f398640250 (diff) | |
download | tdesvn-d7633c195a464e4d344ada9eea61afd10110598a.tar.gz tdesvn-d7633c195a464e4d344ada9eea61afd10110598a.zip |
Port kdesvn to TQt4
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kdesvn@1230412 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/askpass')
-rw-r--r-- | src/askpass/kdesvn-askpass.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/askpass/kdesvn-askpass.cpp b/src/askpass/kdesvn-askpass.cpp index 2f6ed4c..99037eb 100644 --- a/src/askpass/kdesvn-askpass.cpp +++ b/src/askpass/kdesvn-askpass.cpp @@ -17,7 +17,7 @@ * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#include <qregexp.h> +#include <tqregexp.h> #include <kaboutdata.h> #include <kapplication.h> #include <kcmdlineargs.h> @@ -45,19 +45,19 @@ int main(int argc, char** argv) KApplication app; // no need for session management app.disableSessionManagement(); - QString prompt; + TQString prompt; if( !KCmdLineArgs::parsedArgs()->count() ) { prompt = i18n("Please enter your password below."); } else { prompt = KCmdLineArgs::parsedArgs()->arg(0); } - QCString pw; + TQCString pw; KPasswordDialog::disableCoreDumps(); if (KPasswordDialog::getPassword(pw,prompt,0)==KPasswordDialog::Accepted) { - std::cout << pw << std::endl; + std::cout << pw.data() << std::endl; /* cleanup memory */ - pw.replace(0,pw.length(),"0"); + pw.tqreplace(0,pw.length(),"0"); return 0; } return 1; |