diff options
| author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-16 19:02:47 +0000 | 
|---|---|---|
| committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-16 19:02:47 +0000 | 
| commit | e985f7e545f4739493965aad69bbecb136dc9346 (patch) | |
| tree | 54afd409d8acd6202dd8ab611d24e78c28e4c0a0 /lib/compatibility/knewstuff/security.cpp | |
| parent | f7670c198945adc3b95ad69a959fe5f8ae55b493 (diff) | |
| download | tdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.tar.gz tdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.zip | |
TQt4 port kdewebdev
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1237029 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/compatibility/knewstuff/security.cpp')
| -rw-r--r-- | lib/compatibility/knewstuff/security.cpp | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/lib/compatibility/knewstuff/security.cpp b/lib/compatibility/knewstuff/security.cpp index 8ef377b7..3e135e1f 100644 --- a/lib/compatibility/knewstuff/security.cpp +++ b/lib/compatibility/knewstuff/security.cpp @@ -125,7 +125,7 @@ void Security::slotDataArrived(KProcIO *procIO)                key.mail=data.section('<', -1, -1);                key.mail.truncate(key.mail.length() - 1);                key.name=data.section('<',0,0); -              if (key.name.find("(")!=-1) +              if (key.name.tqfind("(")!=-1)                    key.name=key.name.section('(',0,0);                m_keys[shortId] = key;            } @@ -137,7 +137,7 @@ void Security::slotDataArrived(KProcIO *procIO)                m_result &= SIGNED_BAD_CLEAR;                m_result |= SIGNED_OK;                TQString id = data.section(" ", 1 , 1).right(8); -              if (!m_keys.contains(id)) +              if (!m_keys.tqcontains(id))                {                    m_result |= UNKNOWN;                } else @@ -154,7 +154,7 @@ void Security::slotDataArrived(KProcIO *procIO)            {                m_result |= SIGNED_BAD;                TQString id = data.section(" ", 1 , 1).right(8); -              if (!m_keys.contains(id)) +              if (!m_keys.tqcontains(id))                {                    m_result |= UNKNOWN;                } else @@ -170,11 +170,11 @@ void Security::slotDataArrived(KProcIO *procIO)            break;         case Sign: -         if (data.find("passphrase.enter") != -1) +         if (data.tqfind("passphrase.enter") != -1)           {             TQCString password;             KeyStruct key = m_keys[m_secretKey]; -           int result = KPasswordDialog::getPassword(password, i18n("<qt>Enter passphrase for key <b>0x%1</b>, belonging to<br><i>%2<%3></i>:</qt>").arg(m_secretKey).arg(key.name).arg(key.mail)); +           int result = KPasswordDialog::getPassword(password, i18n("<qt>Enter passphrase for key <b>0x%1</b>, belonging to<br><i>%2<%3></i>:</qt>").tqarg(m_secretKey).tqarg(key.name).tqarg(key.mail));             if (result == KPasswordDialog::Accepted)             {               procIO->writeStdin(password, true); @@ -187,7 +187,7 @@ void Security::slotDataArrived(KProcIO *procIO)               return;             }           } else -         if (data.find("BAD_PASSPHRASE") != -1) +         if (data.tqfind("BAD_PASSPHRASE") != -1)           {             m_result |= BAD_PASSPHRASE;           } | 
