summaryrefslogtreecommitdiffstats
path: root/kopete
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-05-03 15:55:36 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-05-08 17:13:22 +0900
commit2cab1f3059038ab001f5185c29f0791c77aeeba1 (patch)
treee294a699a78e0aef2969216fc8fc1378b83b0064 /kopete
parentb2cb25ce7dde70c48747856d22dfac03f27033e1 (diff)
downloadtdenetwork-2cab1f30.tar.gz
tdenetwork-2cab1f30.zip
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 89969dcb2142d91b295c8d18cde46e22ef118dce)
Diffstat (limited to 'kopete')
-rw-r--r--kopete/kopete/config/avdevice/avdeviceconfig.cpp2
-rw-r--r--kopete/kopete/kopeteballoon.cpp4
-rw-r--r--kopete/libkopete/compat/kpixmapregionselectorwidget.cpp12
-rw-r--r--kopete/plugins/cryptography/popuppublic.cpp2
-rw-r--r--kopete/plugins/smpppdcs/iconnector.h2
-rw-r--r--kopete/plugins/smpppdcs/libsmpppdclient/smpppdunsettled.cpp2
-rw-r--r--kopete/plugins/smpppdcs/onlineinquiry.cpp2
-rw-r--r--kopete/plugins/smpppdcs/smpppdcsplugin.h2
-rw-r--r--kopete/plugins/smpppdcs/smpppdcspreferences.cpp10
-rw-r--r--kopete/plugins/smpppdcs/smpppdcspreferences.h2
-rw-r--r--kopete/plugins/smpppdcs/smpppdcsprefsimpl.cpp14
-rw-r--r--kopete/plugins/smpppdcs/smpppdsearcher.cpp4
-rw-r--r--kopete/plugins/smpppdcs/smpppdsearcher.h4
-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
-rw-r--r--kopete/protocols/groupwise/libgroupwise/bytestream.cpp8
-rw-r--r--kopete/protocols/irc/libkirc/kirctransfer.cpp2
-rw-r--r--kopete/protocols/irc/ui/channellist.cpp6
-rw-r--r--kopete/protocols/jabber/libiris/cutestuff/network/ndns.cpp2
-rw-r--r--kopete/protocols/jabber/libiris/cutestuff/util/bytestream.cpp8
-rw-r--r--kopete/protocols/jabber/libiris/cutestuff/util/showtextdlg.cpp4
-rw-r--r--kopete/protocols/jabber/libiris/cutestuff/util/showtextdlg.h2
-rw-r--r--kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_tasks.cpp10
-rw-r--r--kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_vcard.cpp4
-rw-r--r--kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_xmlcommon.cpp20
-rw-r--r--kopete/protocols/oscar/icq/icqcontact.cpp2
-rw-r--r--kopete/protocols/oscar/liboscar/bytestream.cpp8
-rw-r--r--kopete/protocols/oscar/liboscar/tests/tdeunittest.cpp4
-rw-r--r--kopete/protocols/testbed/ui/testbedwebcamdialog.cpp2
-rw-r--r--kopete/protocols/yahoo/libkyahoo/bytestream.cpp8
34 files changed, 95 insertions, 95 deletions
diff --git a/kopete/kopete/config/avdevice/avdeviceconfig.cpp b/kopete/kopete/config/avdevice/avdeviceconfig.cpp
index 5add39fc..f9d8a2d0 100644
--- a/kopete/kopete/config/avdevice/avdeviceconfig.cpp
+++ b/kopete/kopete/config/avdevice/avdeviceconfig.cpp
@@ -82,7 +82,7 @@ AVDeviceConfig::AVDeviceConfig(TQWidget *parent, const char * name , const TQSt
if (qpixmap.convertFromImage(qimage,0) == true)
mPrfsVideoDevice->mVideoImageLabel->setPixmap(qpixmap);
connect(&qtimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotUpdateImage()) );
- qtimer.start(0,FALSE);
+ qtimer.start(0,false);
}
diff --git a/kopete/kopete/kopeteballoon.cpp b/kopete/kopete/kopeteballoon.cpp
index e921cfe4..5425ed29 100644
--- a/kopete/kopete/kopeteballoon.cpp
+++ b/kopete/kopete/kopeteballoon.cpp
@@ -83,7 +83,7 @@ KopeteBalloon::KopeteBalloon(const TQString &text, const TQString &pix)
if (!pix.isEmpty())
{
TQLabel *mImage = new TQLabel(this, "mImage");
- mImage->setScaledContents(FALSE);
+ mImage->setScaledContents(false);
mImage->setPixmap(locate("data", pix));
Layout1->addWidget(mImage);
@@ -107,7 +107,7 @@ KopeteBalloon::KopeteBalloon(const TQString &text, const TQString &pix)
// END Layout2
setPalette(TQToolTip::palette());
- setAutoMask(TRUE);
+ setAutoMask(true);
connect(mViewButton, TQ_SIGNAL(clicked()),
this, TQ_SIGNAL(signalButtonClicked()));
diff --git a/kopete/libkopete/compat/kpixmapregionselectorwidget.cpp b/kopete/libkopete/compat/kpixmapregionselectorwidget.cpp
index 6f6df426..9dc4fb7d 100644
--- a/kopete/libkopete/compat/kpixmapregionselectorwidget.cpp
+++ b/kopete/libkopete/compat/kpixmapregionselectorwidget.cpp
@@ -218,7 +218,7 @@ bool KPixmapRegionSelectorWidget::eventFilter(TQObject *obj, TQEvent *ev)
TDEPopupMenu *popup = createPopupMenu( );
popup->exec( mev->globalPos() );
delete popup;
- return TRUE;
+ return true;
};
TQCursor cursor;
@@ -239,7 +239,7 @@ bool KPixmapRegionSelectorWidget::eventFilter(TQObject *obj, TQEvent *ev)
m_tempFirstClick=mev->pos();
- return TRUE;
+ return true;
}
if ( ev->type() == TQEvent::MouseMove )
@@ -278,7 +278,7 @@ bool KPixmapRegionSelectorWidget::eventFilter(TQObject *obj, TQEvent *ev)
m_selectedRegion.moveBy(0,m_originalPixmap.height()-m_selectedRegion.height()-m_selectedRegion.y());
mouseOutside=true;
}
- if (mouseOutside) { updatePixmap(); return TRUE; };
+ if (mouseOutside) { updatePixmap(); return true; };
m_selectedRegion.moveBy( mev->x()-m_tempFirstClick.x(),
mev->y()-m_tempFirstClick.y() );
@@ -297,7 +297,7 @@ bool KPixmapRegionSelectorWidget::eventFilter(TQObject *obj, TQEvent *ev)
m_tempFirstClick=mev->pos();
updatePixmap();
}
- return TRUE;
+ return true;
}
if ( ev->type() == TQEvent::MouseButtonRelease )
@@ -310,11 +310,11 @@ bool KPixmapRegionSelectorWidget::eventFilter(TQObject *obj, TQEvent *ev)
m_state=None;
TQApplication::restoreOverrideCursor();
- return TRUE;
+ return true;
}
TQWidget::eventFilter(obj, ev);
- return FALSE;
+ return false;
}
TQRect KPixmapRegionSelectorWidget::calcSelectionRectangle( const TQPoint & startPoint, const TQPoint & _endPoint )
diff --git a/kopete/plugins/cryptography/popuppublic.cpp b/kopete/plugins/cryptography/popuppublic.cpp
index 882b2fe5..a6e627fe 100644
--- a/kopete/plugins/cryptography/popuppublic.cpp
+++ b/kopete/plugins/cryptography/popuppublic.cpp
@@ -454,7 +454,7 @@ void popupPublic::slotprocread(KProcIO *p)
UpdateViewItem2 *item=new UpdateViewItem2(keysList,keyname,keymail,id,isDefaultKey);
//TDEListViewItem *sub= new TDEListViewItem(item,i18n("ID: %1, trust: %2, validity: %3").arg(id).arg(tr).arg(val));
//sub->setSelectable(false);
- if (seclist.find(tst,0,FALSE)!=-1)
+ if (seclist.find(tst,0,false)!=-1)
item->setPixmap(0,keyPair);
else
item->setPixmap(0,keySingle);
diff --git a/kopete/plugins/smpppdcs/iconnector.h b/kopete/plugins/smpppdcs/iconnector.h
index c4846862..868adcf6 100644
--- a/kopete/plugins/smpppdcs/iconnector.h
+++ b/kopete/plugins/smpppdcs/iconnector.h
@@ -37,7 +37,7 @@ public:
* This method needs to get reimplemented at classes which implement
* this interface.
*
- * @param newStatus the status of the internet connection, <code>TRUE</code> if there is a connection, otherwise <code>FALSE</code>
+ * @param newStatus the status of the internet connection, <code>true</code> if there is a connection, otherwise <code>false</code>
*/
virtual void setConnectedStatus(bool newStatus) = 0;
};
diff --git a/kopete/plugins/smpppdcs/libsmpppdclient/smpppdunsettled.cpp b/kopete/plugins/smpppdcs/libsmpppdclient/smpppdunsettled.cpp
index 1868893f..a8782459 100644
--- a/kopete/plugins/smpppdcs/libsmpppdclient/smpppdunsettled.cpp
+++ b/kopete/plugins/smpppdcs/libsmpppdclient/smpppdunsettled.cpp
@@ -71,7 +71,7 @@ bool Unsettled::connect(Client * client, const TQString& server, uint port) {
}
setSocket(client, new KNetwork::KStreamSocket(resolvedServer, TQString::number(port)));
- socket(client)->setBlocking(TRUE);
+ socket(client)->setBlocking(true);
if(!socket(client)->connect()) {
kdDebug(14312) << k_funcinfo << "Socket Error: " << KNetwork::KStreamSocket::errorString(socket(client)->error()) << endl;
diff --git a/kopete/plugins/smpppdcs/onlineinquiry.cpp b/kopete/plugins/smpppdcs/onlineinquiry.cpp
index 4cab45d7..ac3fbdd7 100644
--- a/kopete/plugins/smpppdcs/onlineinquiry.cpp
+++ b/kopete/plugins/smpppdcs/onlineinquiry.cpp
@@ -19,7 +19,7 @@
#include "onlineinquiry.h"
OnlineInquiry::OnlineInquiry()
- : m_detector(NULL), m_online(FALSE) {}
+ : m_detector(NULL), m_online(false) {}
OnlineInquiry::~OnlineInquiry() {
delete m_detector;
diff --git a/kopete/plugins/smpppdcs/smpppdcsplugin.h b/kopete/plugins/smpppdcs/smpppdcsplugin.h
index 2742abfa..d2bfecdc 100644
--- a/kopete/plugins/smpppdcs/smpppdcsplugin.h
+++ b/kopete/plugins/smpppdcs/smpppdcsplugin.h
@@ -67,7 +67,7 @@ public:
/**
* @brief Checks if we are online.
* @note This method is reserved for future use. Do not use at the moment!
- * @return <code>TRUE</code> if online, otherwise <code>FALSE</code>
+ * @return <code>true</code> if online, otherwise <code>false</code>
*/
virtual bool isOnline() const;
diff --git a/kopete/plugins/smpppdcs/smpppdcspreferences.cpp b/kopete/plugins/smpppdcs/smpppdcspreferences.cpp
index 338c61e0..88a3cbd1 100644
--- a/kopete/plugins/smpppdcs/smpppdcspreferences.cpp
+++ b/kopete/plugins/smpppdcs/smpppdcspreferences.cpp
@@ -61,8 +61,8 @@ SMPPPDCSPreferences::SMPPPDCSPreferences(TQWidget * parent, const char * /* name
(*it)->accountId() + " (" + protoName + ")", TQCheckListItem::CheckBox);
cli->setPixmap(0, (*it)->accountIcon());
- m_accountMapOld[cli->text(0)] = AccountPrivMap(FALSE, (*it)->protocol()->pluginId() + "_" + (*it)->accountId());
- m_accountMapCur[cli->text(0)] = AccountPrivMap(FALSE, (*it)->protocol()->pluginId() + "_" + (*it)->accountId());;
+ m_accountMapOld[cli->text(0)] = AccountPrivMap(false, (*it)->protocol()->pluginId() + "_" + (*it)->accountId());
+ m_accountMapCur[cli->text(0)] = AccountPrivMap(false, (*it)->protocol()->pluginId() + "_" + (*it)->accountId());;
m_ui->accountList->insertItem(cli);
}
@@ -90,11 +90,11 @@ void SMPPPDCSPreferences::listClicked(TQListViewItem * item)
if(cli->isOn() != m_accountMapCur[cli->text(0)].m_on) {
AccountMap::iterator itOld = m_accountMapOld.begin();
AccountMap::iterator itCur;
- bool change = FALSE;
+ bool change = false;
for(itCur = m_accountMapCur.begin(); itCur != m_accountMapCur.end(); ++itCur, ++itOld) {
if((*itCur).m_on != (*itOld).m_on){
- change = TRUE;
+ change = true;
break;
}
}
@@ -108,7 +108,7 @@ void SMPPPDCSPreferences::defaults()
TQListViewItemIterator it(m_ui->accountList);
while(it.current()) {
TQCheckListItem * cli = dynamic_cast<TQCheckListItem *>(it.current());
- cli->setOn(FALSE);
+ cli->setOn(false);
++it;
}
diff --git a/kopete/plugins/smpppdcs/smpppdcspreferences.h b/kopete/plugins/smpppdcs/smpppdcspreferences.h
index 412837b7..fd81d0d3 100644
--- a/kopete/plugins/smpppdcs/smpppdcspreferences.h
+++ b/kopete/plugins/smpppdcs/smpppdcspreferences.h
@@ -25,7 +25,7 @@ class SMPPPDCSPrefs;
class AccountPrivMap {
public:
- AccountPrivMap(bool isOn = FALSE, const TQString& id = TQString())
+ AccountPrivMap(bool isOn = false, const TQString& id = TQString())
: m_on(isOn), m_id(id) {}
bool m_on;
TQString m_id;
diff --git a/kopete/plugins/smpppdcs/smpppdcsprefsimpl.cpp b/kopete/plugins/smpppdcs/smpppdcsprefsimpl.cpp
index ca4462e8..68a4ac16 100644
--- a/kopete/plugins/smpppdcs/smpppdcsprefsimpl.cpp
+++ b/kopete/plugins/smpppdcs/smpppdcsprefsimpl.cpp
@@ -57,10 +57,10 @@ SMPPPDCSPrefs::SMPPPDCSPrefs(TQWidget* parent, const char* name, WFlags fl)
// if netstat is NOT available, disable the option and set to SMPPPD
if(TDEStandardDirs::findExe("netstat") == TQString()) {
- autoCSTest->setEnabled(FALSE);
- useNetstat->setEnabled(FALSE);
- useNetstat->setChecked(FALSE);
- useSmpppd->setChecked(TRUE);
+ autoCSTest->setEnabled(false);
+ useNetstat->setEnabled(false);
+ useNetstat->setChecked(false);
+ useSmpppd->setChecked(true);
}
}
@@ -95,9 +95,9 @@ void SMPPPDCSPrefs::scanStarted(uint total) {
// setup the scanProgress Dialog
if(!m_scanProgressDlg) {
- m_scanProgressDlg = new KProgressDialog(this, 0, i18n("Searching"), i18n("Searching for a SMPPPD on the local network..."), TRUE);
- m_scanProgressDlg->setAutoClose(TRUE);
- m_scanProgressDlg->setAllowCancel(TRUE);
+ m_scanProgressDlg = new KProgressDialog(this, 0, i18n("Searching"), i18n("Searching for a SMPPPD on the local network..."), true);
+ m_scanProgressDlg->setAutoClose(true);
+ m_scanProgressDlg->setAllowCancel(true);
m_scanProgressDlg->setMinimumDuration(2000);
connect(m_scanProgressDlg, TQ_SIGNAL(cancelClicked()), this, TQ_SLOT(cancelScanning()));
diff --git a/kopete/plugins/smpppdcs/smpppdsearcher.cpp b/kopete/plugins/smpppdcs/smpppdsearcher.cpp
index d121292b..306c1d65 100644
--- a/kopete/plugins/smpppdcs/smpppdsearcher.cpp
+++ b/kopete/plugins/smpppdcs/smpppdsearcher.cpp
@@ -24,7 +24,7 @@
#include "smpppdsearcher.h"
SMPPPDSearcher::SMPPPDSearcher()
- : m_cancelSearchNow(FALSE),
+ : m_cancelSearchNow(false),
m_procIfconfig(NULL),
m_procNetstat(NULL) {}
@@ -149,7 +149,7 @@ bool SMPPPDSearcher::scan(const TQString& ip, const TQString& mask) {
}
uint range = max_range - min_range;
- m_cancelSearchNow = FALSE;
+ m_cancelSearchNow = false;
if(range > 1) {
emit scanStarted(max_range);
}
diff --git a/kopete/plugins/smpppdcs/smpppdsearcher.h b/kopete/plugins/smpppdcs/smpppdsearcher.h
index d5a41a64..0ecc8ec8 100644
--- a/kopete/plugins/smpppdcs/smpppdsearcher.h
+++ b/kopete/plugins/smpppdcs/smpppdsearcher.h
@@ -64,7 +64,7 @@ protected:
*
* @param ip the ntwork ip
* @param mask the network mask
- * @return <code>TRUE</code> if an smpppd was found
+ * @return <code>true</code> if an smpppd was found
*/
bool scan(const TQString& ip, const TQString& mask);
@@ -96,7 +96,7 @@ private:
};
inline void SMPPPDSearcher::cancelSearch() {
- m_cancelSearchNow = TRUE;
+ m_cancelSearchNow = true;
}
#endif
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 ) );
diff --git a/kopete/protocols/groupwise/libgroupwise/bytestream.cpp b/kopete/protocols/groupwise/libgroupwise/bytestream.cpp
index fcb82ef4..a8a4adb8 100644
--- a/kopete/protocols/groupwise/libgroupwise/bytestream.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/bytestream.cpp
@@ -78,7 +78,7 @@ ByteStream::~ByteStream()
}
//!
-//! Returns TRUE if the stream is open, meaning that you can write to it.
+//! Returns true if the stream is open, meaning that you can write to it.
bool ByteStream::isOpen() const
{
return false;
@@ -168,7 +168,7 @@ void ByteStream::appendWrite(const TQByteArray &block)
//!
//! Returns \a size bytes from the start of the read buffer.
//! If \a size is 0, then all available data will be returned.
-//! If \a del is TRUE, then the bytes are also removed.
+//! If \a del is true, then the bytes are also removed.
TQByteArray ByteStream::takeRead(int size, bool del)
{
return takeArray(&d->readBuf, size, del);
@@ -177,7 +177,7 @@ TQByteArray ByteStream::takeRead(int size, bool del)
//!
//! Returns \a size bytes from the start of the write buffer.
//! If \a size is 0, then all available data will be returned.
-//! If \a del is TRUE, then the bytes are also removed.
+//! If \a del is true, then the bytes are also removed.
TQByteArray ByteStream::takeWrite(int size, bool del)
{
return takeArray(&d->writeBuf, size, del);
@@ -217,7 +217,7 @@ void ByteStream::appendArray(TQByteArray *a, const TQByteArray &b)
//!
//! Returns \a size bytes from the start of the array pointed to by \a from.
//! If \a size is 0, then all available data will be returned.
-//! If \a del is TRUE, then the bytes are also removed.
+//! If \a del is true, then the bytes are also removed.
TQByteArray ByteStream::takeArray(TQByteArray *from, int size, bool del)
{
TQByteArray a;
diff --git a/kopete/protocols/irc/libkirc/kirctransfer.cpp b/kopete/protocols/irc/libkirc/kirctransfer.cpp
index 50e96ce8..9296d4df 100644
--- a/kopete/protocols/irc/libkirc/kirctransfer.cpp
+++ b/kopete/protocols/irc/libkirc/kirctransfer.cpp
@@ -192,7 +192,7 @@ bool Transfer::initiate()
timer = new TQTimer(this);
connect(timer, TQ_SIGNAL(timeout()),
this, TQ_SLOT(flush()));
- timer->start(1000, FALSE); // flush the streams at every seconds
+ timer->start(1000, false); // flush the streams at every seconds
return true;
}
diff --git a/kopete/protocols/irc/ui/channellist.cpp b/kopete/protocols/irc/ui/channellist.cpp
index fdff5512..de64319f 100644
--- a/kopete/protocols/irc/ui/channellist.cpp
+++ b/kopete/protocols/irc/ui/channellist.cpp
@@ -189,10 +189,10 @@ ChannelList::ChannelList( TQWidget* parent, KIRC::Engine *engine )
mChannelList = new TDEListView( this, "mChannelList" );
mChannelList->addColumn( i18n( "Channel" ) );
mChannelList->addColumn( i18n( "Users" ) );
- mChannelList->header()->setResizeEnabled( FALSE, mChannelList->header()->count() - 1 );
+ mChannelList->header()->setResizeEnabled( false, mChannelList->header()->count() - 1 );
mChannelList->addColumn( i18n( "Topic" ) );
- mChannelList->setAllColumnsShowFocus( TRUE );
- mChannelList->setShowSortIndicator( TRUE );
+ mChannelList->setAllColumnsShowFocus( true );
+ mChannelList->setShowSortIndicator( true );
ChannelListLayout->addWidget( mChannelList );
clearWState( WState_Polished );
diff --git a/kopete/protocols/jabber/libiris/cutestuff/network/ndns.cpp b/kopete/protocols/jabber/libiris/cutestuff/network/ndns.cpp
index e3527855..21af960f 100644
--- a/kopete/protocols/jabber/libiris/cutestuff/network/ndns.cpp
+++ b/kopete/protocols/jabber/libiris/cutestuff/network/ndns.cpp
@@ -305,7 +305,7 @@ TQString NDns::resultString() const
}
//!
-//! Returns TRUE if busy resolving a hostname.
+//! Returns true if busy resolving a hostname.
bool NDns::isBusy() const
{
if(!man)
diff --git a/kopete/protocols/jabber/libiris/cutestuff/util/bytestream.cpp b/kopete/protocols/jabber/libiris/cutestuff/util/bytestream.cpp
index 72cbb614..027cb061 100644
--- a/kopete/protocols/jabber/libiris/cutestuff/util/bytestream.cpp
+++ b/kopete/protocols/jabber/libiris/cutestuff/util/bytestream.cpp
@@ -78,7 +78,7 @@ ByteStream::~ByteStream()
}
//!
-//! Returns TRUE if the stream is open, meaning that you can write to it.
+//! Returns true if the stream is open, meaning that you can write to it.
bool ByteStream::isOpen() const
{
return false;
@@ -168,7 +168,7 @@ void ByteStream::appendWrite(const TQByteArray &block)
//!
//! Returns \a size bytes from the start of the read buffer.
//! If \a size is 0, then all available data will be returned.
-//! If \a del is TRUE, then the bytes are also removed.
+//! If \a del is true, then the bytes are also removed.
TQByteArray ByteStream::takeRead(int size, bool del)
{
return takeArray(&d->readBuf, size, del);
@@ -177,7 +177,7 @@ TQByteArray ByteStream::takeRead(int size, bool del)
//!
//! Returns \a size bytes from the start of the write buffer.
//! If \a size is 0, then all available data will be returned.
-//! If \a del is TRUE, then the bytes are also removed.
+//! If \a del is true, then the bytes are also removed.
TQByteArray ByteStream::takeWrite(int size, bool del)
{
return takeArray(&d->writeBuf, size, del);
@@ -217,7 +217,7 @@ void ByteStream::appendArray(TQByteArray *a, const TQByteArray &b)
//!
//! Returns \a size bytes from the start of the array pointed to by \a from.
//! If \a size is 0, then all available data will be returned.
-//! If \a del is TRUE, then the bytes are also removed.
+//! If \a del is true, then the bytes are also removed.
TQByteArray ByteStream::takeArray(TQByteArray *from, int size, bool del)
{
TQByteArray a;
diff --git a/kopete/protocols/jabber/libiris/cutestuff/util/showtextdlg.cpp b/kopete/protocols/jabber/libiris/cutestuff/util/showtextdlg.cpp
index 9c099ae0..047d2bc0 100644
--- a/kopete/protocols/jabber/libiris/cutestuff/util/showtextdlg.cpp
+++ b/kopete/protocols/jabber/libiris/cutestuff/util/showtextdlg.cpp
@@ -28,7 +28,7 @@
ShowTextDlg::ShowTextDlg(const TQString &fname, bool rich, TQWidget *parent, const char *name)
-:TQDialog(parent, name, FALSE, WDestructiveClose)
+:TQDialog(parent, name, false, WDestructiveClose)
{
TQString text;
@@ -42,7 +42,7 @@ ShowTextDlg::ShowTextDlg(const TQString &fname, bool rich, TQWidget *parent, con
TQVBoxLayout *vb1 = new TQVBoxLayout(this, 8);
TQTextEdit *te = new TQTextEdit(this);
- te->setReadOnly(TRUE);
+ te->setReadOnly(true);
te->setTextFormat(rich ? TQTextEdit::RichText : TQTextEdit::PlainText);
te->setText(text);
diff --git a/kopete/protocols/jabber/libiris/cutestuff/util/showtextdlg.h b/kopete/protocols/jabber/libiris/cutestuff/util/showtextdlg.h
index fb5c2963..fb9b8d32 100644
--- a/kopete/protocols/jabber/libiris/cutestuff/util/showtextdlg.h
+++ b/kopete/protocols/jabber/libiris/cutestuff/util/showtextdlg.h
@@ -28,7 +28,7 @@ class ShowTextDlg : public TQDialog
TQ_OBJECT
public:
- ShowTextDlg(const TQString &fname, bool rich=FALSE, TQWidget *parent=0, const char *name=0);
+ ShowTextDlg(const TQString &fname, bool rich=false, TQWidget *parent=0, const char *name=0);
};
#endif
diff --git a/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_tasks.cpp b/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_tasks.cpp
index e7e929ab..77f003fe 100644
--- a/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_tasks.cpp
+++ b/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_tasks.cpp
@@ -1276,7 +1276,7 @@ void JT_ClientTime::go()
bool JT_ClientTime::take(const TQDomElement &x)
{
if(x.attribute("id") != id())
- return FALSE;
+ return false;
if(x.attribute("type") == "result") {
bool found;
@@ -1292,14 +1292,14 @@ bool JT_ClientTime::take(const TQDomElement &x)
if(found)
display = tagContent(tag);
- setSuccess(TRUE);
+ setSuccess(true);
}
else {
setError(getErrorString(x));
- setSuccess(FALSE);
+ setSuccess(false);
}
- return TRUE;
+ return true;
}
*/
@@ -1345,7 +1345,7 @@ bool JT_ServInfo::take(const TQDomElement &e)
// query.appendChild(textTag("tz", str));
// query.appendChild(textTag("display", TQString("%1 %2").arg(local.toString()).arg(str)));
// send(iq);
- // return TRUE;
+ // return true;
//}
else if(ns == "http://jabber.org/protocol/disco#info") {
// Find out the node
diff --git a/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_vcard.cpp b/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_vcard.cpp
index ac7f5626..eee9206c 100644
--- a/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_vcard.cpp
+++ b/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_vcard.cpp
@@ -42,7 +42,7 @@ static TQDomElement textTag(TQDomDocument *doc, const TQString &name, const TQSt
static TQDomElement findSubTag(const TQDomElement &e, const TQString &name, bool *found)
{
if(found)
- *found = FALSE;
+ *found = false;
for(TQDomNode n = e.firstChild(); !n.isNull(); n = n.nextSibling()) {
TQDomElement i = n.toElement();
@@ -50,7 +50,7 @@ static TQDomElement findSubTag(const TQDomElement &e, const TQString &name, bool
continue;
if(i.tagName().upper() == name.upper()) { // mblsha: ignore case when searching
if(found)
- *found = TRUE;
+ *found = true;
return i;
}
}
diff --git a/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_xmlcommon.cpp b/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_xmlcommon.cpp
index b6297b61..0bbe7b4b 100644
--- a/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_xmlcommon.cpp
+++ b/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_xmlcommon.cpp
@@ -264,7 +264,7 @@ TQDomElement stringListToXml(TQDomDocument &doc, const TQString &name, const TQS
/*TQDomElement findSubTag(const TQDomElement &e, const TQString &name, bool *found)
{
if(found)
- *found = FALSE;
+ *found = false;
for(TQDomNode n = e.firstChild(); !n.isNull(); n = n.nextSibling()) {
TQDomElement i = n.toElement();
@@ -272,7 +272,7 @@ TQDomElement stringListToXml(TQDomDocument &doc, const TQString &name, const TQS
continue;
if(i.tagName() == name) {
if(found)
- *found = TRUE;
+ *found = true;
return i;
}
}
@@ -283,7 +283,7 @@ TQDomElement stringListToXml(TQDomDocument &doc, const TQString &name, const TQS
void readEntry(const TQDomElement &e, const TQString &name, TQString *v)
{
- bool found = FALSE;
+ bool found = false;
TQDomElement tag = findSubTag(e, name, &found);
if(!found)
return;
@@ -292,7 +292,7 @@ void readEntry(const TQDomElement &e, const TQString &name, TQString *v)
void readNumEntry(const TQDomElement &e, const TQString &name, int *v)
{
- bool found = FALSE;
+ bool found = false;
TQDomElement tag = findSubTag(e, name, &found);
if(!found)
return;
@@ -301,16 +301,16 @@ void readNumEntry(const TQDomElement &e, const TQString &name, int *v)
void readBoolEntry(const TQDomElement &e, const TQString &name, bool *v)
{
- bool found = FALSE;
+ bool found = false;
TQDomElement tag = findSubTag(e, name, &found);
if(!found)
return;
- *v = (tagContent(tag) == "true") ? TRUE: FALSE;
+ *v = (tagContent(tag) == "true");
}
void readSizeEntry(const TQDomElement &e, const TQString &name, TQSize *v)
{
- bool found = FALSE;
+ bool found = false;
TQDomElement tag = findSubTag(e, name, &found);
if(!found)
return;
@@ -325,7 +325,7 @@ void readSizeEntry(const TQDomElement &e, const TQString &name, TQSize *v)
void readRectEntry(const TQDomElement &e, const TQString &name, TQRect *v)
{
- bool found = FALSE;
+ bool found = false;
TQDomElement tag = findSubTag(e, name, &found);
if(!found)
return;
@@ -342,7 +342,7 @@ void readRectEntry(const TQDomElement &e, const TQString &name, TQRect *v)
void readColorEntry(const TQDomElement &e, const TQString &name, TQColor *v)
{
- bool found = FALSE;
+ bool found = false;
TQDomElement tag = findSubTag(e, name, &found);
if(!found)
return;
@@ -378,7 +378,7 @@ void readBoolAttribute(TQDomElement e, const TQString &name, bool *v)
{
if(e.hasAttribute(name)) {
TQString s = e.attribute(name);
- *v = (s == "true") ? TRUE: FALSE;
+ *v = (s == "true");
}
}
diff --git a/kopete/protocols/oscar/icq/icqcontact.cpp b/kopete/protocols/oscar/icq/icqcontact.cpp
index 2758d2c4..45bb6bb3 100644
--- a/kopete/protocols/oscar/icq/icqcontact.cpp
+++ b/kopete/protocols/oscar/icq/icqcontact.cpp
@@ -301,7 +301,7 @@ void ICQContact::slotGotAuthRequest( const TQString& contact, const TQString& re
connect( replyDialog, TQ_SIGNAL( okClicked() ), this, TQ_SLOT( slotAuthReplyDialogOkClicked() ) );
replyDialog->setUser( property( Kopete::Global::Properties::self()->nickName() ).value().toString() );
replyDialog->setRequestReason( reason );
- replyDialog->setModal( TRUE );
+ replyDialog->setModal( true );
replyDialog->show();
}
diff --git a/kopete/protocols/oscar/liboscar/bytestream.cpp b/kopete/protocols/oscar/liboscar/bytestream.cpp
index 4674c13d..87ac0168 100644
--- a/kopete/protocols/oscar/liboscar/bytestream.cpp
+++ b/kopete/protocols/oscar/liboscar/bytestream.cpp
@@ -78,7 +78,7 @@ ByteStream::~ByteStream()
}
//!
-//! Returns TRUE if the stream is open, meaning that you can write to it.
+//! Returns true if the stream is open, meaning that you can write to it.
bool ByteStream::isOpen() const
{
return false;
@@ -168,7 +168,7 @@ void ByteStream::appendWrite(const TQByteArray &block)
//!
//! Returns \a size bytes from the start of the read buffer.
//! If \a size is 0, then all available data will be returned.
-//! If \a del is TRUE, then the bytes are also removed.
+//! If \a del is true, then the bytes are also removed.
TQByteArray ByteStream::takeRead(int size, bool del)
{
return takeArray(&d->readBuf, size, del);
@@ -177,7 +177,7 @@ TQByteArray ByteStream::takeRead(int size, bool del)
//!
//! Returns \a size bytes from the start of the write buffer.
//! If \a size is 0, then all available data will be returned.
-//! If \a del is TRUE, then the bytes are also removed.
+//! If \a del is true, then the bytes are also removed.
TQByteArray ByteStream::takeWrite(int size, bool del)
{
return takeArray(&d->writeBuf, size, del);
@@ -217,7 +217,7 @@ void ByteStream::appendArray(TQByteArray *a, const TQByteArray &b)
//!
//! Returns \a size bytes from the start of the array pointed to by \a from.
//! If \a size is 0, then all available data will be returned.
-//! If \a del is TRUE, then the bytes are also removed.
+//! If \a del is true, then the bytes are also removed.
TQByteArray ByteStream::takeArray(TQByteArray *from, int size, bool del)
{
TQByteArray a;
diff --git a/kopete/protocols/oscar/liboscar/tests/tdeunittest.cpp b/kopete/protocols/oscar/liboscar/tests/tdeunittest.cpp
index 0c917fd2..cfc230e0 100644
--- a/kopete/protocols/oscar/liboscar/tests/tdeunittest.cpp
+++ b/kopete/protocols/oscar/liboscar/tests/tdeunittest.cpp
@@ -53,8 +53,8 @@ KUnitTest::KUnitTest()
{
TQTimer::singleShot( 0, this, TQ_SLOT(checkRun()) );
- m_tests.setAutoDelete( TRUE );
-// m_qtests.setAutoDelete( TRUE );
+ m_tests.setAutoDelete( true );
+// m_qtests.setAutoDelete( true );
registerTests();
}
diff --git a/kopete/protocols/testbed/ui/testbedwebcamdialog.cpp b/kopete/protocols/testbed/ui/testbedwebcamdialog.cpp
index df8a8a1a..c78a494a 100644
--- a/kopete/protocols/testbed/ui/testbedwebcamdialog.cpp
+++ b/kopete/protocols/testbed/ui/testbedwebcamdialog.cpp
@@ -60,7 +60,7 @@ kdDebug() << "Just captured 1st frame" << endl;
if (mPixmap.convertFromImage(mImage,0) == true)
mImageContainer->updatePixmap(mPixmap);
connect(&qtimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotUpdateImage()) );
- qtimer.start(0,FALSE);
+ qtimer.start(0,false);
}
TestbedWebcamDialog::~ TestbedWebcamDialog( )
diff --git a/kopete/protocols/yahoo/libkyahoo/bytestream.cpp b/kopete/protocols/yahoo/libkyahoo/bytestream.cpp
index a0c16f6b..0cdf093a 100644
--- a/kopete/protocols/yahoo/libkyahoo/bytestream.cpp
+++ b/kopete/protocols/yahoo/libkyahoo/bytestream.cpp
@@ -80,7 +80,7 @@ ByteStream::~ByteStream()
}
//!
-//! Returns TRUE if the stream is open, meaning that you can write to it.
+//! Returns true if the stream is open, meaning that you can write to it.
bool ByteStream::isOpen() const
{
return false;
@@ -181,7 +181,7 @@ void ByteStream::appendWrite(const TQByteArray &block)
//!
//! Returns \a size bytes from the start of the read buffer.
//! If \a size is 0, then all available data will be returned.
-//! If \a del is TRUE, then the bytes are also removed.
+//! If \a del is true, then the bytes are also removed.
TQByteArray ByteStream::takeRead(int size, bool del)
{
// kdDebug(14181) << k_funcinfo << "[data size: " << size << "][ delete :" << del << " ]" << endl;
@@ -191,7 +191,7 @@ TQByteArray ByteStream::takeRead(int size, bool del)
//!
//! Returns \a size bytes from the start of the write buffer.
//! If \a size is 0, then all available data will be returned.
-//! If \a del is TRUE, then the bytes are also removed.
+//! If \a del is true, then the bytes are also removed.
TQByteArray ByteStream::takeWrite(int size, bool del)
{
// kdDebug(14181) << k_funcinfo << "[data size: " << size << "][ delete :" << del << " ]" << endl;
@@ -235,7 +235,7 @@ void ByteStream::appendArray(TQByteArray *a, const TQByteArray &b)
//!
//! Returns \a size bytes from the start of the array pointed to by \a from.
//! If \a size is 0, then all available data will be returned.
-//! If \a del is TRUE, then the bytes are also removed.
+//! If \a del is true, then the bytes are also removed.
TQByteArray ByteStream::takeArray(TQByteArray *from, int size, bool del)
{
// kdDebug(14181) << k_funcinfo << "[int size] : " << size << " [bool del] " << del << endl;