diff options
Diffstat (limited to 'kopete/plugins/cryptography/cryptographyguiclient.cpp')
-rw-r--r-- | kopete/plugins/cryptography/cryptographyguiclient.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kopete/plugins/cryptography/cryptographyguiclient.cpp b/kopete/plugins/cryptography/cryptographyguiclient.cpp index 898e7f1a..fecb025e 100644 --- a/kopete/plugins/cryptography/cryptographyguiclient.cpp +++ b/kopete/plugins/cryptography/cryptographyguiclient.cpp @@ -27,16 +27,16 @@ class CryptographyPlugin; -CryptographyGUIClient::CryptographyGUIClient(Kopete::ChatSession *parent ) - : TQObject(parent) , KXMLGUIClient(parent) +CryptographyGUIClient::CryptographyGUIClient(Kopete::ChatSession *tqparent ) + : TQObject(tqparent) , KXMLGUIClient(tqparent) { - if(!parent || parent->members().isEmpty()) + if(!tqparent || tqparent->members().isEmpty()) { deleteLater(); //we refuse to build this client, it is based on wrong parametters return; } - TQPtrList<Kopete::Contact> mb=parent->members(); + TQPtrList<Kopete::Contact> mb=tqparent->members(); Kopete::MetaContact *first=mb.first()->metaContact(); if(!first) @@ -48,8 +48,8 @@ CryptographyGUIClient::CryptographyGUIClient(Kopete::ChatSession *parent ) setInstance( KGenericFactory<CryptographyPlugin>::instance() ); - m_action=new KToggleAction( i18n("Encrypt Messages" ), TQString::fromLatin1( "encrypted" ), 0, this, TQT_SLOT(slotToggled()), actionCollection() , "cryptographyToggle" ); - m_action->setChecked( first->pluginData( CryptographyPlugin::plugin() , "encrypt_messages") != TQString::fromLatin1("off") ) ; + m_action=new KToggleAction( i18n("Encrypt Messages" ), TQString::tqfromLatin1( "encrypted" ), 0, this, TQT_SLOT(slotToggled()), actionCollection() , "cryptographyToggle" ); + m_action->setChecked( first->pluginData( CryptographyPlugin::plugin() , "encrypt_messages") != TQString::tqfromLatin1("off") ) ; setXMLFile("cryptographychatui.rc"); } @@ -60,7 +60,7 @@ CryptographyGUIClient::~CryptographyGUIClient() void CryptographyGUIClient::slotToggled() { - TQPtrList<Kopete::Contact> mb=static_cast<Kopete::ChatSession*>(parent())->members(); + TQPtrList<Kopete::Contact> mb=static_cast<Kopete::ChatSession*>(tqparent())->members(); Kopete::MetaContact *first=mb.first()->metaContact(); if(!first) |