summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/kopetecontact.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:14:03 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:14:03 -0600
commit9c9412b30c54468adc9e506cc76c5d113fbf5056 (patch)
tree68a0c0d5bc770fc58596b8c5624cdf33d8625027 /kopete/libkopete/kopetecontact.cpp
parent2e53bd0b77676f879fad7baeecea5879bf496a7d (diff)
downloadtdenetwork-9c9412b30c54468adc9e506cc76c5d113fbf5056.tar.gz
tdenetwork-9c9412b30c54468adc9e506cc76c5d113fbf5056.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'kopete/libkopete/kopetecontact.cpp')
-rw-r--r--kopete/libkopete/kopetecontact.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kopete/libkopete/kopetecontact.cpp b/kopete/libkopete/kopetecontact.cpp
index 85387709..28266e28 100644
--- a/kopete/libkopete/kopetecontact.cpp
+++ b/kopete/libkopete/kopetecontact.cpp
@@ -193,10 +193,10 @@ void Contact::slotAddContact()
}
}
-KPopupMenu* Contact::popupMenu( ChatSession *manager )
+TDEPopupMenu* Contact::popupMenu( ChatSession *manager )
{
// Build the menu
- KPopupMenu *menu = new KPopupMenu();
+ TDEPopupMenu *menu = new TDEPopupMenu();
// insert title
TQString titleText;
@@ -209,7 +209,7 @@ KPopupMenu* Contact::popupMenu( ChatSession *manager )
if( metaContact() && metaContact()->isTemporary() && contactId() != account()->myself()->contactId() )
{
- KAction *actionAddContact = new KAction( i18n( "&Add to Your Contact List" ), TQString::fromLatin1( "add_user" ),
+ TDEAction *actionAddContact = new TDEAction( i18n( "&Add to Your Contact List" ), TQString::fromLatin1( "add_user" ),
0, TQT_TQOBJECT(this), TQT_SLOT( slotAddContact() ), TQT_TQOBJECT(menu), "actionAddContact" );
actionAddContact->plug( menu );
menu->insertSeparator();
@@ -219,15 +219,15 @@ KPopupMenu* Contact::popupMenu( ChatSession *manager )
bool reach = account()->isConnected() && isReachable();
bool myself = (this == account()->myself());
- KAction *actionSendMessage = KopeteStdAction::sendMessage( TQT_TQOBJECT(this), TQT_SLOT( sendMessage() ), TQT_TQOBJECT(menu), "actionSendMessage" );
+ TDEAction *actionSendMessage = KopeteStdAction::sendMessage( TQT_TQOBJECT(this), TQT_SLOT( sendMessage() ), TQT_TQOBJECT(menu), "actionSendMessage" );
actionSendMessage->setEnabled( reach && !myself );
actionSendMessage->plug( menu );
- KAction *actionChat = KopeteStdAction::chat( TQT_TQOBJECT(this), TQT_SLOT( startChat() ), TQT_TQOBJECT(menu), "actionChat" );
+ TDEAction *actionChat = KopeteStdAction::chat( TQT_TQOBJECT(this), TQT_SLOT( startChat() ), TQT_TQOBJECT(menu), "actionChat" );
actionChat->setEnabled( reach && !myself );
actionChat->plug( menu );
- KAction *actionSendFile = KopeteStdAction::sendFile( TQT_TQOBJECT(this), TQT_SLOT( sendFile() ), TQT_TQOBJECT(menu), "actionSendFile" );
+ TDEAction *actionSendFile = KopeteStdAction::sendFile( TQT_TQOBJECT(this), TQT_SLOT( sendFile() ), TQT_TQOBJECT(menu), "actionSendFile" );
actionSendFile->setEnabled( reach && d->fileCapable && !myself );
actionSendFile->plug( menu );
@@ -235,12 +235,12 @@ KPopupMenu* Contact::popupMenu( ChatSession *manager )
// through the use of the customContextMenuActions() function
// Get the custom actions from the protocols ( pure virtual function )
- TQPtrList<KAction> *customActions = customContextMenuActions( manager );
+ TQPtrList<TDEAction> *customActions = customContextMenuActions( manager );
if( customActions && !customActions->isEmpty() )
{
menu->insertSeparator();
- for( KAction *a = customActions->first(); a; a = customActions->next() )
+ for( TDEAction *a = customActions->first(); a; a = customActions->next() )
a->plug( menu );
}
delete customActions;
@@ -511,12 +511,12 @@ void Contact::setIcon( const TQString& icon )
return;
}
-TQPtrList<KAction> *Contact::customContextMenuActions()
+TQPtrList<TDEAction> *Contact::customContextMenuActions()
{
return 0L;
}
-TQPtrList<KAction> *Contact::customContextMenuActions( ChatSession * /* manager */ )
+TQPtrList<TDEAction> *Contact::customContextMenuActions( ChatSession * /* manager */ )
{
return customContextMenuActions();
}