summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/kopeteawayaction.cpp
diff options
context:
space:
mode:
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() )