summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/kopeteawayaction.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kopete/libkopete/kopeteawayaction.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/libkopete/kopeteawayaction.cpp')
-rw-r--r--kopete/libkopete/kopeteawayaction.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/kopete/libkopete/kopeteawayaction.cpp b/kopete/libkopete/kopeteawayaction.cpp
index 84622c7e..ded2a830 100644
--- a/kopete/libkopete/kopeteawayaction.cpp
+++ b/kopete/libkopete/kopeteawayaction.cpp
@@ -36,34 +36,34 @@ public:
};
-AwayAction::AwayAction(const QString &text, const QIconSet &pix, const KShortcut &cut,
- const QObject *receiver, const char *slot, QObject *parent, const char *name )
+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() ) )
{
- QObject::connect( Kopete::Away::getInstance(), SIGNAL( messagesChanged() ),
- this, SLOT( slotAwayChanged() ) );
+ TQObject::connect( Kopete::Away::getInstance(), TQT_SIGNAL( messagesChanged() ),
+ this, TQT_SLOT( slotAwayChanged() ) );
- QObject::connect( this, SIGNAL( awayMessageSelected( const QString & ) ),
+ TQObject::connect( this, TQT_SIGNAL( awayMessageSelected( const TQString & ) ),
receiver, slot );
- QObject::connect( this, SIGNAL( activated( int ) ),
- this, SLOT( slotSelectAway( int ) ) );
+ TQObject::connect( this, TQT_SIGNAL( activated( int ) ),
+ this, TQT_SLOT( slotSelectAway( int ) ) );
slotAwayChanged();
}
-AwayAction::AwayAction( const OnlineStatus& status, const QString &text, const QIconSet &pix, const KShortcut &cut,
- const QObject *receiver, const char *slot, QObject *parent, const char *name )
+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 ) )
{
- QObject::connect( Kopete::Away::getInstance(), SIGNAL( messagesChanged() ),
- this, SLOT( slotAwayChanged() ) );
+ TQObject::connect( Kopete::Away::getInstance(), TQT_SIGNAL( messagesChanged() ),
+ this, TQT_SLOT( slotAwayChanged() ) );
- QObject::connect( this, SIGNAL( awayMessageSelected( const Kopete::OnlineStatus &, const QString & ) ),
+ TQObject::connect( this, TQT_SIGNAL( awayMessageSelected( const Kopete::OnlineStatus &, const TQString & ) ),
receiver, slot );
- QObject::connect( this, SIGNAL( activated( int ) ),
- this, SLOT( slotSelectAway( int ) ) );
+ TQObject::connect( this, TQT_SIGNAL( activated( int ) ),
+ this, TQT_SLOT( slotSelectAway( int ) ) );
slotAwayChanged();
}
@@ -75,16 +75,16 @@ AwayAction::~AwayAction()
void AwayAction::slotAwayChanged()
{
- QStringList awayMessages = Kopete::Away::getInstance()->getMessages();
- for( QStringList::iterator it = awayMessages.begin(); it != awayMessages.end(); ++it )
+ TQStringList awayMessages = Kopete::Away::getInstance()->getMessages();
+ for( TQStringList::iterator it = awayMessages.begin(); it != awayMessages.end(); ++it )
{
(*it) = KStringHandler::rsqueeze( *it );
}
d->reasonCount = awayMessages.count();
- QStringList menu;
+ TQStringList menu;
menu << i18n( "No Message" );
menu << i18n( "New Message..." );
- menu << QString::null ; //separator
+ menu << TQString::null ; //separator
menu += awayMessages ;
setItems( menu );
setCurrentItem( -1 );
@@ -96,7 +96,7 @@ void AwayAction::slotSelectAway( int index )
setCurrentItem( -1 );
Kopete::Away *mAway = Kopete::Away::getInstance();
- QString awayReason;
+ TQString awayReason;
// Index == -1 means this is a result of Global Away all.
// Use the last entered message (0)
@@ -106,11 +106,11 @@ void AwayAction::slotSelectAway( int index )
switch(index)
{
case 0:
- awayReason = QString::null;
+ awayReason = TQString::null;
break;
case 1:
bool ok;
- awayReason = KInputDialog::getText( i18n( "New Away Message" ), i18n( "Please enter your away reason:" ) , QString::null , &ok );
+ awayReason = KInputDialog::getText( i18n( "New Away Message" ), i18n( "Please enter your away reason:" ) , TQString::null , &ok );
if(!ok) //the user canceled
return;
if( !awayReason.isEmpty() )