summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/kopeteawayaction.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
commit69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch)
tree073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /kopete/libkopete/kopeteawayaction.cpp
parent3467e6464beac3a162839bf7078e22e3a74d73e7 (diff)
downloadtdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz
tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/libkopete/kopeteawayaction.cpp')
-rw-r--r--kopete/libkopete/kopeteawayaction.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kopete/libkopete/kopeteawayaction.cpp b/kopete/libkopete/kopeteawayaction.cpp
index ded2a830..c72d94bc 100644
--- a/kopete/libkopete/kopeteawayaction.cpp
+++ b/kopete/libkopete/kopeteawayaction.cpp
@@ -37,8 +37,8 @@ public:
AwayAction::AwayAction(const TQString &text, const TQIconSet &pix, const KShortcut &cut,
- const TQObject *receiver, const char *slot, TQObject *parent, const char *name )
- : KSelectAction(text, pix, cut, parent, name ) , d(new Private( OnlineStatus() ) )
+ const TQObject *receiver, const char *slot, TQObject *tqparent, const char *name )
+ : KSelectAction(text, pix, cut, tqparent, name ) , d(new Private( OnlineStatus() ) )
{
TQObject::connect( Kopete::Away::getInstance(), TQT_SIGNAL( messagesChanged() ),
this, TQT_SLOT( slotAwayChanged() ) );
@@ -53,8 +53,8 @@ AwayAction::AwayAction(const TQString &text, const TQIconSet &pix, const KShortc
}
AwayAction::AwayAction( const OnlineStatus& status, const TQString &text, const TQIconSet &pix, const KShortcut &cut,
- const TQObject *receiver, const char *slot, TQObject *parent, const char *name )
- : KSelectAction(text, pix, cut, parent, name ) , d(new Private( status ) )
+ const TQObject *receiver, const char *slot, TQObject *tqparent, const char *name )
+ : KSelectAction(text, pix, cut, tqparent, name ) , d(new Private( status ) )
{
TQObject::connect( Kopete::Away::getInstance(), TQT_SIGNAL( messagesChanged() ),
this, TQT_SLOT( slotAwayChanged() ) );
@@ -84,7 +84,7 @@ void AwayAction::slotAwayChanged()
TQStringList menu;
menu << i18n( "No Message" );
menu << i18n( "New Message..." );
- menu << TQString::null ; //separator
+ menu << TQString() ; //separator
menu += awayMessages ;
setItems( menu );
setCurrentItem( -1 );
@@ -106,11 +106,11 @@ void AwayAction::slotSelectAway( int index )
switch(index)
{
case 0:
- awayReason = TQString::null;
+ awayReason = TQString();
break;
case 1:
bool ok;
- awayReason = KInputDialog::getText( i18n( "New Away Message" ), i18n( "Please enter your away reason:" ) , TQString::null , &ok );
+ awayReason = KInputDialog::getText( i18n( "New Away Message" ), i18n( "Please enter your away reason:" ) , TQString() , &ok );
if(!ok) //the user canceled
return;
if( !awayReason.isEmpty() )