summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/gadu
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/gadu')
-rw-r--r--kopete/protocols/gadu/gaduaccount.cpp24
-rw-r--r--kopete/protocols/gadu/gaduaddcontactpage.cpp2
-rw-r--r--kopete/protocols/gadu/gaduaway.cpp2
-rw-r--r--kopete/protocols/gadu/gadudcctransaction.cpp2
-rw-r--r--kopete/protocols/gadu/gadueditcontact.cpp4
-rw-r--r--kopete/protocols/gadu/gadurichtextformat.cpp4
6 files changed, 19 insertions, 19 deletions
diff --git a/kopete/protocols/gadu/gaduaccount.cpp b/kopete/protocols/gadu/gaduaccount.cpp
index 208e6421..97267c85 100644
--- a/kopete/protocols/gadu/gaduaccount.cpp
+++ b/kopete/protocols/gadu/gaduaccount.cpp
@@ -255,35 +255,35 @@ GaduAccount::actionMenu()
arg( myself()->property( Kopete::Global::Properties::self()->nickName()).value().toString(), accountId() ) );
if ( p->session_->isConnected() ) {
- p->searchAction->setEnabled( TRUE );
- p->listputAction->setEnabled( TRUE );
- p->friendsModeAction->setEnabled( TRUE );
+ p->searchAction->setEnabled( true );
+ p->listputAction->setEnabled( true );
+ p->friendsModeAction->setEnabled( true );
}
else {
- p->searchAction->setEnabled( FALSE );
- p->listputAction->setEnabled( FALSE );
- p->friendsModeAction->setEnabled( FALSE );
+ p->searchAction->setEnabled( false );
+ p->listputAction->setEnabled( false );
+ p->friendsModeAction->setEnabled( false );
}
if ( contacts().count() > 1 ) {
if ( p->saveListDialog ) {
- p->listToFileAction->setEnabled( FALSE );
+ p->listToFileAction->setEnabled( false );
}
else {
- p->listToFileAction->setEnabled( TRUE );
+ p->listToFileAction->setEnabled( true );
}
- p->listToFileAction->setEnabled( TRUE );
+ p->listToFileAction->setEnabled( true );
}
else {
- p->listToFileAction->setEnabled( FALSE );
+ p->listToFileAction->setEnabled( false );
}
if ( p->loadListDialog ) {
- p->listFromFileAction->setEnabled( FALSE );
+ p->listFromFileAction->setEnabled( false );
}
else {
- p->listFromFileAction->setEnabled( TRUE );
+ p->listFromFileAction->setEnabled( true );
}
p->actionMenu_->insert( new TDEAction( i18n( "Go O&nline" ),
GaduProtocol::protocol()->convertStatus( GG_STATUS_AVAIL ).iconFor( this ),
diff --git a/kopete/protocols/gadu/gaduaddcontactpage.cpp b/kopete/protocols/gadu/gaduaddcontactpage.cpp
index d42272ca..343e499b 100644
--- a/kopete/protocols/gadu/gaduaddcontactpage.cpp
+++ b/kopete/protocols/gadu/gaduaddcontactpage.cpp
@@ -51,7 +51,7 @@ GaduAddContactPage::GaduAddContactPage( GaduAccount* owner, TQWidget* parent, co
connect( addUI_->addEdit_, TQ_SIGNAL( textChanged( const TQString & ) ), TQ_SLOT( slotUinChanged( const TQString & ) ) );
addUI_->addEdit_->setValidChars( "1234567890" );
addUI_->addEdit_->setText( "" );
- addUI_->groups->setDisabled( TRUE );
+ addUI_->groups->setDisabled( true );
kdDebug(14100) << "filling gropus" << endl;
diff --git a/kopete/protocols/gadu/gaduaway.cpp b/kopete/protocols/gadu/gaduaway.cpp
index d56fc124..b416ad52 100644
--- a/kopete/protocols/gadu/gaduaway.cpp
+++ b/kopete/protocols/gadu/gaduaway.cpp
@@ -50,7 +50,7 @@ GaduAway::GaduAway( GaduAccount* account, TQWidget* parent, const char* name )
s = GaduProtocol::protocol()->statusToWithDescription( ks );
if ( s == GG_STATUS_NOT_AVAIL_DESCR ) {
- ui_->statusGroup_->find( GG_STATUS_NOT_AVAIL_DESCR )->setDisabled( TRUE );
+ ui_->statusGroup_->find( GG_STATUS_NOT_AVAIL_DESCR )->setDisabled( true );
ui_->statusGroup_->setButton( GG_STATUS_AVAIL_DESCR );
}
else {
diff --git a/kopete/protocols/gadu/gadudcctransaction.cpp b/kopete/protocols/gadu/gadudcctransaction.cpp
index 6367e5cb..9ae13e2b 100644
--- a/kopete/protocols/gadu/gadudcctransaction.cpp
+++ b/kopete/protocols/gadu/gadudcctransaction.cpp
@@ -269,7 +269,7 @@ GaduDCCTransaction::slotIncomingTransferAccepted ( Kopete::Transfer* transfer, c
}
else {
// overwrite by default
- if ( localFile_.open( IO_ReadWrite ) == FALSE ) {
+ if ( !localFile_.open( IO_ReadWrite ) ) {
transfer->slotError ( TDEIO::ERR_COULD_NOT_WRITE, fileName );
closeDCC();
deleteLater ();
diff --git a/kopete/protocols/gadu/gadueditcontact.cpp b/kopete/protocols/gadu/gadueditcontact.cpp
index c067397a..062e066b 100644
--- a/kopete/protocols/gadu/gadueditcontact.cpp
+++ b/kopete/protocols/gadu/gadueditcontact.cpp
@@ -99,7 +99,7 @@ GaduEditContact::fillGroups()
// FIXME: optimize this O(2) search
for( cg = cgl.first(); cg; cg = cgl.next() ) {
if ( cg->groupId() == g->groupId() ) {
- item->setOn( TRUE );
+ item->setOn( true );
break;
}
}
@@ -196,7 +196,7 @@ GaduEditContact::slotApply()
}
}
- if( contact_->metaContact()->groups().isEmpty() == TRUE )
+ if( contact_->metaContact()->groups().isEmpty() )
contact_->metaContact()->addToGroup( Kopete::Group::topLevel() );
}
#include "gadueditcontact.moc"
diff --git a/kopete/protocols/gadu/gadurichtextformat.cpp b/kopete/protocols/gadu/gadurichtextformat.cpp
index ad1197b8..6e9e3bfb 100644
--- a/kopete/protocols/gadu/gadurichtextformat.cpp
+++ b/kopete/protocols/gadu/gadurichtextformat.cpp
@@ -262,14 +262,14 @@ GaduRichTextFormat::insertRtf( uint position)
// append font description
rtfs.position = position;
uint csize = rtf.size();
- if ( rtf.resize( csize + sizeof( gg_msg_richtext_format ) ) == FALSE ) {
+ if ( !rtf.resize( csize + sizeof( gg_msg_richtext_format ) ) ) {
return false;
};
memcpy( rtf.data() + csize, &rtfs, sizeof( rtfs ) );
// append color description, if color has changed
if ( rtfs.font & GG_FONT_COLOR ) {
csize = rtf.size();
- if ( rtf.resize( csize + sizeof( gg_msg_richtext_color ) ) == FALSE ) {
+ if ( !rtf.resize( csize + sizeof( gg_msg_richtext_color ) ) ) {
return false;
};
memcpy( rtf.data() + csize, &rtcs, sizeof( rtcs ) );