From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkpgp/kpgpkey.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'libkpgp/kpgpkey.cpp') diff --git a/libkpgp/kpgpkey.cpp b/libkpgp/kpgpkey.cpp index d0d2e4ec..8a8ed48b 100644 --- a/libkpgp/kpgpkey.cpp +++ b/libkpgp/kpgpkey.cpp @@ -23,23 +23,23 @@ namespace Kpgp { /* member functions of Kpgp::KeyIDList --------------------------------- */ -/** Converts from a KeyIDList to a QStringList. +/** Converts from a KeyIDList to a TQStringList. */ -QStringList KeyIDList::toStringList() const +TQStringList KeyIDList::toStringList() const { - QStringList res; + TQStringList res; for( KeyIDList::ConstIterator it = begin(); it != end(); ++it ) { res << (*it).data(); } return res; } -/** Converts from a QStringList to a KeyIDList. +/** Converts from a TQStringList to a KeyIDList. */ -KeyIDList KeyIDList::fromStringList( const QStringList& l ) +KeyIDList KeyIDList::fromStringList( const TQStringList& l ) { KeyIDList res; - for( QStringList::ConstIterator it = l.begin(); it != l.end(); ++it ) { + for( TQStringList::ConstIterator it = l.begin(); it != l.end(); ++it ) { res << (*it).local8Bit(); } return res; @@ -47,7 +47,7 @@ KeyIDList KeyIDList::fromStringList( const QStringList& l ) /* member functions of Kpgp::UserID ------------------------------------ */ -UserID::UserID(const QString& str, const Validity validity, +UserID::UserID(const TQString& str, const Validity validity, const bool revoked, const bool invalid) { mText = str; @@ -81,7 +81,7 @@ Subkey::Subkey(const KeyID& keyID, const bool secret) /* member functions of Kpgp::Key --------------------------------------- */ -Key::Key(const KeyID& keyid, const QString& uid, const bool secret) : +Key::Key(const KeyID& keyid, const TQString& uid, const bool secret) : mSubkeys(), mUserIDs() { mSecret = secret; @@ -145,7 +145,7 @@ Key::keyTrust() const } Validity -Key::keyTrust( const QString& uid ) const +Key::keyTrust( const TQString& uid ) const { Validity trust = KPGP_VALIDITY_UNKNOWN; @@ -194,7 +194,7 @@ Key::isValidSigningKey() const } -void Key::addUserID(const QString &uid, const Validity validity, +void Key::addUserID(const TQString &uid, const Validity validity, const bool revoked, const bool invalid) { if (!uid.isEmpty()) { @@ -203,7 +203,7 @@ void Key::addUserID(const QString &uid, const Validity validity, } } -bool Key::matchesUserID(const QString& str, bool cs) +bool Key::matchesUserID(const TQString& str, bool cs) { if (str.isEmpty() || mUserIDs.isEmpty()) return false; @@ -246,7 +246,7 @@ Subkey *Key::getSubkey(const KeyID& keyID) return 0; } -void Key::setFingerprint(const KeyID& keyID, const QCString &fpr) +void Key::setFingerprint(const KeyID& keyID, const TQCString &fpr) { Subkey *key; if ((key = getSubkey(keyID)) != 0) { -- cgit v1.2.3