From ad58630b34fc61754c763cf951004ef27e38d33d Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 13 May 2025 09:38:34 +0900 Subject: [PATCH] Replace TRUE/FALSE with boolean values true/false Signed-off-by: Michele Calgaro --- dnssd/domainbrowser.h | 2 +- dnssd/publicservice.cpp | 2 +- dnssd/query.h | 4 ++-- dnssd/remoteservice.h | 4 ++-- kab/qconfigDB.cpp | 2 +- kate/part/katehighlight.cpp | 2 +- libtdemid/track.cpp | 21 +++++++------------ libtdescreensaver/main.cpp | 2 +- tdeabc/tests/testldapclient.cpp | 2 +- tdecore/kdebug.cpp | 4 ++-- tdecore/kiconeffect.cpp | 4 ++-- tdecore/kinstance.h | 4 ++-- tdecore/ksock.h | 2 +- tdecore/tde-config.cpp.in | 2 +- tdecore/tdeaccelmanager.cpp | 2 +- tdecore/tdeapplication.cpp | 2 +- tdecore/tdeapplication.h | 2 +- tdecore/tests/kmdcodectest.cpp | 2 +- tdecore/tests/ksocktest.cpp | 6 +++--- tdecore/tests/kurltest.cpp | 30 +++++++++++++-------------- tdeinit/autostart.cpp | 4 ++-- tdeio/misc/uiserver.cpp | 6 +++--- tdeio/tdefile/images.h | 22 ++++++++++---------- tdeio/tdeio/ktrader.h | 4 ++-- tdeioslave/file/file.cpp | 2 +- tdeparts/COMMENTS | 2 +- tdeprint/cups/make_driver_db_cups.cpp | 10 ++++----- tdeprint/management/smbview.cpp | 2 +- tderandr/libtderandr.cpp | 12 +++++------ tderandr/libtderandr.h | 2 +- tdersync/rsyncconfigdialog.cpp | 12 +++++------ tdestyles/asteroid/asteroid.cpp | 9 ++++---- tdeui/kdialog.cpp | 2 +- tdeui/klanguagebutton.h | 2 +- tdeui/kpassivepopup.cpp | 2 +- tdeui/kpixmapregionselectorwidget.cpp | 12 +++++------ tdeui/kwhatsthismanager.cpp | 2 +- tdeui/tdelistview.cpp | 24 ++++++++------------- tdeui/tdelistview.h | 6 +++--- 39 files changed, 112 insertions(+), 126 deletions(-) diff --git a/dnssd/domainbrowser.h b/dnssd/domainbrowser.h index abe93507f..e0702d72e 100644 --- a/dnssd/domainbrowser.h +++ b/dnssd/domainbrowser.h @@ -53,7 +53,7 @@ public: Constructor that creates browser for domain list. This does not use global configuration at all. @param domains List of domains - @param recursive TRUE - additionally local network will be browsed for more domains + @param recursive true - additionally local network will be browsed for more domains @param parent Parent object. This process is recursive. */ diff --git a/dnssd/publicservice.cpp b/dnssd/publicservice.cpp index dcfc68e30..0e0b3de3b 100644 --- a/dnssd/publicservice.cpp +++ b/dnssd/publicservice.cpp @@ -202,7 +202,7 @@ bool PublicService::fillEntryGroup() avahi_string_list_free(s); return res; #else - return FALSE; + return false; #endif } diff --git a/dnssd/query.h b/dnssd/query.h index 21ab9b166..358c61d3c 100644 --- a/dnssd/query.h +++ b/dnssd/query.h @@ -57,12 +57,12 @@ public: virtual void startQuery(); /** - Returns TRUE if query is already running + Returns true if query is already running */ bool isRunning() const; /** - Returns TRUE if all currently announced services has + Returns true if all currently announced services has been reported. It does not mean that no more services can be found later and it is not related to isRunning() */ diff --git a/dnssd/remoteservice.h b/dnssd/remoteservice.h index 8324f1bdc..0fb77217c 100644 --- a/dnssd/remoteservice.h +++ b/dnssd/remoteservice.h @@ -75,7 +75,7 @@ public: /** Synchronous version of resolveAsync(). Note that resolved(bool) is emitted before this function returns, - @return TRUE is successful + @return true is successful */ bool resolve(); @@ -86,7 +86,7 @@ public: signals: /** - Emitted when resolving is complete. Parameter is set to TRUE if it was successful. + Emitted when resolving is complete. Parameter is set to true if it was successful. If operating in asynchronous mode this signal can be emitted several times (when service change) */ diff --git a/kab/qconfigDB.cpp b/kab/qconfigDB.cpp index 1112f7c7d..ed4c2b15a 100644 --- a/kab/qconfigDB.cpp +++ b/kab/qconfigDB.cpp @@ -712,7 +712,7 @@ KeyValueMap::get(const TQCString& key, bool& value) const bool GUARD; GUARD=false; // ########################################################################### kdDebug(GUARD, KAB_KDEBUG_AREA) << "KeyValueMap::get[bool]: trying to get " - "BOOL value for key " << key << endl; + "bool value for key " << key << endl; TQCString v; // ----- get string representation: if(!get(key, v)) diff --git a/kate/part/katehighlight.cpp b/kate/part/katehighlight.cpp index 28cee1a3c..c7e5393d2 100644 --- a/kate/part/katehighlight.cpp +++ b/kate/part/katehighlight.cpp @@ -1140,7 +1140,7 @@ KateHlContext::KateHlContext (const TQString &_hlId, int attribute, int lineEndC dynamic = _dynamic; dynamicChild = false; noIndentationBasedFolding=_noIndentationBasedFolding; - if (_noIndentationBasedFolding) kdDebug(13010)<note = *ptrdata;ptrdata++;currentpos++; ev->vel = *ptrdata;ptrdata++;currentpos++; if (ev->vel==0) - note[ev->chn][ev->note]=FALSE; + note[ev->chn][ev->note]=false; else - note[ev->chn][ev->note]=TRUE; + note[ev->chn][ev->note]=true; #ifdef TRACKDEBUG2 if (ev->chn==6) { @@ -252,7 +245,7 @@ void MidiTrack::readEvent(MidiEvent *ev) #endif ev->note = *ptrdata;ptrdata++;currentpos++; ev->vel = *ptrdata;ptrdata++;currentpos++; - note[ev->chn][ev->note]=FALSE; + note[ev->chn][ev->note]=false; break; case (MIDI_KEY_PRESSURE) : @@ -334,7 +327,7 @@ void MidiTrack::readEvent(MidiEvent *ev) case (ME_END_OF_TRACK) : i=0; j=0; - while ((i<16)&&(note[i][j]==FALSE)) + while ((i<16)&&(note[i][j]==false)) { j++; if (j==128) { j=0; i++; }; @@ -346,7 +339,7 @@ void MidiTrack::readEvent(MidiEvent *ev) ev->command=MIDI_NOTEOFF; ev->note = j; ev->vel = 0; - note[ev->chn][ev->note]=FALSE; + note[ev->chn][ev->note]=false; fprintf(stderr,"Note Off(simulated)\n"); return; } @@ -504,7 +497,7 @@ void MidiTrack::clear(void) for (int i=0;i<16;i++) for (int j=0;j<128;j++) - note[i][j]=FALSE; + note[i][j]=false; delta_ticks = wait_ticks = ~0; time_at_previous_tempochange=0; @@ -526,7 +519,7 @@ void MidiTrack::init(void) for (int i=0;i<16;i++) for (int j=0;j<128;j++) - note[i][j]=FALSE; + note[i][j]=false; delta_ticks=readVariableLengthValue(); if (endoftrack) return; diff --git a/libtdescreensaver/main.cpp b/libtdescreensaver/main.cpp index 17c1250cb..c0d0f3579 100644 --- a/libtdescreensaver/main.cpp +++ b/libtdescreensaver/main.cpp @@ -34,7 +34,7 @@ #include "tdescreensaver.h" #include "tdescreensaver_vroot.h" -bool argb_visual = FALSE; +bool argb_visual = false; extern "C" { diff --git a/tdeabc/tests/testldapclient.cpp b/tdeabc/tests/testldapclient.cpp index 779f7bae4..d8879273b 100644 --- a/tdeabc/tests/testldapclient.cpp +++ b/tdeabc/tests/testldapclient.cpp @@ -130,7 +130,7 @@ static TQString join( const TDEABC::LdapAttrValue& lst, const TQString& sep ) for ( TDEABC::LdapAttrValue::ConstIterator it = lst.begin(); it != lst.end(); ++it ) { if ( already ) res += sep; - already = TRUE; + already = true; res += asUtf8( *it ); } return res; diff --git a/tdecore/kdebug.cpp b/tdecore/kdebug.cpp index 46dac11d8..43b50880d 100644 --- a/tdecore/kdebug.cpp +++ b/tdecore/kdebug.cpp @@ -626,7 +626,7 @@ asymbol** bfdLoadSymtab (bfd *abfd) { long symCount; // count of entries in symbol table long symtab_sz; // size of the table asymbol** rv; - bfd_boolean dynamic = FALSE; + bool dynamic = false; // make shure the file has symbol table if ((bfd_get_file_flags (abfd) & HAS_SYMS) == 0){ @@ -637,7 +637,7 @@ asymbol** bfdLoadSymtab (bfd *abfd) { symtab_sz = bfd_get_symtab_upper_bound (abfd); if (symtab_sz == 0) { symtab_sz = bfd_get_dynamic_symtab_upper_bound (abfd); - dynamic = TRUE; + dynamic = true; } if (symtab_sz < 0) { return 0; diff --git a/tdecore/kiconeffect.cpp b/tdecore/kiconeffect.cpp index a5cb4bcae..cd6b9bad7 100644 --- a/tdecore/kiconeffect.cpp +++ b/tdecore/kiconeffect.cpp @@ -846,13 +846,13 @@ TDEIconEffect::visualActivate(TQWidget * widget, TQRect rect, TQPixmap *pixmap) if ((widget->rect().width() <= maxRect.width()) || (widget->rect().height() <= maxRect.height())) { -// p = new TQPainter(TQApplication::desktop()->screen( -1 ), TRUE); // WARNING: This was done in Qt3. It only worked in this placement due to a glitch in Qt3; it has therefore been moved below grabWidget, where it should have been in the first place. +// p = new TQPainter(TQApplication::desktop()->screen( -1 ), true); // WARNING: This was done in Qt3. It only worked in this placement due to a glitch in Qt3; it has therefore been moved below grabWidget, where it should have been in the first place. pix = TQPixmap::grabWindow((TQApplication::desktop()->screen( -1 ))->winId(), maxRect.x(), maxRect.y(), maxRect.width(), maxRect.height()); - p = new TQPainter(TQApplication::desktop()->screen( -1 ), TRUE); + p = new TQPainter(TQApplication::desktop()->screen( -1 ), true); } else { // not as ugly as drawing directly to the screen diff --git a/tdecore/kinstance.h b/tdecore/kinstance.h index e0fdf73de..b46947218 100644 --- a/tdecore/kinstance.h +++ b/tdecore/kinstance.h @@ -101,8 +101,8 @@ class TDECORE_EXPORT TDEInstance /** * Set a read-only flag on the configuration files * This must be called before config() or dirs() to have any effect - * Defaults to FALSE - * @param ro read only if TRUE + * Defaults to false + * @param ro read only if true */ void setConfigReadOnly(bool ro); diff --git a/tdecore/ksock.h b/tdecore/ksock.h index f562ece8f..98b157dc4 100644 --- a/tdecore/ksock.h +++ b/tdecore/ksock.h @@ -280,7 +280,7 @@ public: * On error the socket will be closed. * @param suppressFailureMessages suppress warning messages generated if the socket cannot be opened. * @return true on success. false on error. - * @warning If suppressFailureMessages is TRUE future debugging may be made more difficult. Only set it + * @warning If suppressFailureMessages is true future debugging may be made more difficult. Only set it * if your application expects to bind to unavailable ports, e.g. while scanning for open ports in a range. */ bool bindAndListen(bool suppressFailureMessages = false); diff --git a/tdecore/tde-config.cpp.in b/tdecore/tde-config.cpp.in index 2373a7a13..9ef991b41 100644 --- a/tdecore/tde-config.cpp.in +++ b/tdecore/tde-config.cpp.in @@ -118,7 +118,7 @@ int main(int argc, char **argv) TDECmdLineArgs::addCmdLineOptions( options ); // Add my own options. TDEInstance a("tde-config"); - a.setConfigReadOnly(TRUE); + a.setConfigReadOnly(true); (void)TDEGlobal::dirs(); // trigger the creation (void)TDEGlobal::config(); diff --git a/tdecore/tdeaccelmanager.cpp b/tdecore/tdeaccelmanager.cpp index ea0b034fd..3cc7eb22e 100644 --- a/tdecore/tdeaccelmanager.cpp +++ b/tdecore/tdeaccelmanager.cpp @@ -626,7 +626,7 @@ int TDEAccelString::maxWeight(int &index, const TQString &used) index = -1; for (uint pos=0; pos max) { max = m_weight[pos]; diff --git a/tdecore/tdeapplication.cpp b/tdecore/tdeapplication.cpp index fb11f90d4..bd410e4d5 100644 --- a/tdecore/tdeapplication.cpp +++ b/tdecore/tdeapplication.cpp @@ -2524,7 +2524,7 @@ void TDEApplication::tdedisplaySetPalette() { TDEConfig *config = TDEGlobal::config(); TDEConfigGroupSaver saver( config, "General" ); - bool do_not_set_palette = FALSE; + bool do_not_set_palette = false; if(config->readBoolEntry("nopaletteChange", &do_not_set_palette)) return; } diff --git a/tdecore/tdeapplication.h b/tdecore/tdeapplication.h index 0383e757e..14f63e048 100644 --- a/tdecore/tdeapplication.h +++ b/tdecore/tdeapplication.h @@ -962,7 +962,7 @@ public: * Note that calling this method will probably cause the screen to flicker. * @see isCompositionManagerAvailable() * @param force_available If set, force TDE to assume a composition manager is available - * @param available Whether or not the composition manager is available (only used if force_available is TRUE) + * @param available Whether or not the composition manager is available (only used if force_available is true) * @return whether the composition manager is enabled */ bool detectCompositionManagerAvailable(bool force_available=false, bool available=true); diff --git a/tdecore/tests/kmdcodectest.cpp b/tdecore/tests/kmdcodectest.cpp index 571d3f10b..4cc06813d 100644 --- a/tdecore/tests/kmdcodectest.cpp +++ b/tdecore/tests/kmdcodectest.cpp @@ -268,7 +268,7 @@ void MD5_verify( const char *input, const char *digest, bool isFile ) cout << "Calculated Digest = " << context.hexDigest() << endl; cout << "Supplied Digest = " << digest << endl; - cout << "Matches: " << (result ? "TRUE":"FALSE") << endl; + cout << "Matches: " << (result ? "true":"false") << endl; } void MD5_file (const char *filename, bool rawOutput ) diff --git a/tdecore/tests/ksocktest.cpp b/tdecore/tests/ksocktest.cpp index ac0bf5510..ec9c1ec95 100644 --- a/tdecore/tests/ksocktest.cpp +++ b/tdecore/tests/ksocktest.cpp @@ -103,7 +103,7 @@ main(int argc, char *argv[]) TDESocketAddress* addr = KExtendedSocket::peerAddress( sock2->fd() ); check( "peerAddress:", addr->nodeName().latin1(), "213.203.58.36" ); - check( "isEqual:", addr->isEqual(KInetSocketAddress("213.203.58.36", 80)) ? "TRUE" : "FALSE", "TRUE"); - check( "isEqual:", addr->isEqual(KInetSocketAddress("213.203.58.36", 8080)) ? "TRUE" : "FALSE", "FALSE"); - check( "isEqual:", addr->isCoreEqual(KInetSocketAddress("213.203.58.36", 8080)) ? "TRUE" : "FALSE", "TRUE"); + check( "isEqual:", addr->isEqual(KInetSocketAddress("213.203.58.36", 80)) ? "true" : "false", "true"); + check( "isEqual:", addr->isEqual(KInetSocketAddress("213.203.58.36", 8080)) ? "true" : "false", "false"); + check( "isEqual:", addr->isCoreEqual(KInetSocketAddress("213.203.58.36", 8080)) ? "true" : "false", "true"); } diff --git a/tdecore/tests/kurltest.cpp b/tdecore/tests/kurltest.cpp index 081fdad55..b80515e81 100644 --- a/tdecore/tests/kurltest.cpp +++ b/tdecore/tests/kurltest.cpp @@ -88,25 +88,25 @@ int main(int argc, char *argv[]) KURL::List lst; KURL emptyURL; - check( "KURL::isMalformed()", emptyURL.isMalformed() ? "TRUE":"FALSE", "TRUE"); - check( "KURL::isValid()", emptyURL.isValid() ? "TRUE":"FALSE", "FALSE"); - check( "KURL::isEmpty()", emptyURL.isEmpty() ? "TRUE":"FALSE", "TRUE"); + check( "KURL::isMalformed()", emptyURL.isMalformed() ? "true":"false", "true"); + check( "KURL::isValid()", emptyURL.isValid() ? "true":"false", "false"); + check( "KURL::isEmpty()", emptyURL.isEmpty() ? "true":"false", "true"); check( "prettyURL()", emptyURL.prettyURL(), ""); - check( "isLocalFile()", emptyURL.isLocalFile()?"TRUE":"FALSE", "FALSE" ); + check( "isLocalFile()", emptyURL.isLocalFile()?"true":"false", "false" ); emptyURL = ""; - check( "KURL::isMalformed()", emptyURL.isMalformed() ? "TRUE":"FALSE", "TRUE"); - check( "KURL::isValid()", emptyURL.isValid() ? "TRUE":"FALSE", "FALSE"); - check( "KURL::isEmpty()", emptyURL.isEmpty() ? "TRUE":"FALSE", "TRUE"); + check( "KURL::isMalformed()", emptyURL.isMalformed() ? "true":"false", "true"); + check( "KURL::isValid()", emptyURL.isValid() ? "true":"false", "false"); + check( "KURL::isEmpty()", emptyURL.isEmpty() ? "true":"false", "true"); KURL fileURL = "file:/"; - check( "KURL::isEmpty()", fileURL.isEmpty() ? "TRUE":"FALSE", "FALSE"); + check( "KURL::isEmpty()", fileURL.isEmpty() ? "true":"false", "false"); fileURL = "file:///"; - check( "KURL::isEmpty()", fileURL.isEmpty() ? "TRUE":"FALSE", "FALSE"); + check( "KURL::isEmpty()", fileURL.isEmpty() ? "true":"false", "false"); KURL baseURL ("hTTp://www.foo.bar:80" ); - check( "KURL::isValid()", baseURL.isValid() ? "TRUE":"FALSE", "TRUE"); + check( "KURL::isValid()", baseURL.isValid() ? "true":"false", "true"); check( "KURL::protocol()", baseURL.protocol(), "http"); // lowercase KURL url1 ( baseURL, "//www1.foo.bar" ); check( "KURL::host()", url1.host(), "www1.foo.bar"); @@ -184,13 +184,13 @@ int main(int argc, char *argv[]) check("KURL::upURL()", url1.upURL().url(), "file:///home/dfaure/"); url1 = "gg:www.kde.org"; - check("KURL::isValid()", url1.isValid()?"TRUE":"FALSE", "TRUE" ); + check("KURL::isValid()", url1.isValid()?"true":"false", "true" ); url1= "KDE"; - check("KURL::isValid()", url1.isValid()?"TRUE":"FALSE", "FALSE" ); + check("KURL::isValid()", url1.isValid()?"true":"false", "false" ); url1= "$HOME/.trinity/share/config"; - check("KURL::isValid()", url1.isValid()?"TRUE":"FALSE", "FALSE" ); + check("KURL::isValid()", url1.isValid()?"true":"false", "false" ); u1 = "file:/opt/kde2/qt2/doc/html/showimg-main-cpp.html#TQObject::connect"; url1 = u1; @@ -1115,9 +1115,9 @@ int main(int argc, char *argv[]) KURL emptyUserTest1("http://www.foobar.com/"); KURL emptyUserTest2("http://www.foobar.com/"); emptyUserTest2.setUser(""); - check("Empty vs. null fields: user", emptyUserTest1==emptyUserTest2?"TRUE":"FALSE","TRUE"); + check("Empty vs. null fields: user", emptyUserTest1==emptyUserTest2?"true":"false","true"); emptyUserTest2.setPass(""); - check("Empty vs. null fields: password", emptyUserTest1==emptyUserTest2?"TRUE":"FALSE","TRUE"); + check("Empty vs. null fields: password", emptyUserTest1==emptyUserTest2?"true":"false","true"); printf("\nTest OK !\n"); } diff --git a/tdeinit/autostart.cpp b/tdeinit/autostart.cpp index 860eff2ee..1435aacb5 100644 --- a/tdeinit/autostart.cpp +++ b/tdeinit/autostart.cpp @@ -150,14 +150,14 @@ AutoStart::loadAutoStartList() // Same local file name? TQString localOuter; TQString localInner; - int slashPos = (*it).findRev( '/', -1, TRUE ); + int slashPos = (*it).findRev( '/', -1, true ); if (slashPos == -1) { localOuter = (*it); } else { localOuter = (*it).mid(slashPos+1); } - slashPos = (*localit).findRev( '/', -1, TRUE ); + slashPos = (*localit).findRev( '/', -1, true ); if (slashPos == -1) { localInner = (*localit); } diff --git a/tdeio/misc/uiserver.cpp b/tdeio/misc/uiserver.cpp index 7a6241299..59d436c35 100644 --- a/tdeio/misc/uiserver.cpp +++ b/tdeio/misc/uiserver.cpp @@ -596,7 +596,7 @@ UIServer::UIServer() // setup toolbar toolBar()->insertButton("edit-delete", TOOL_CANCEL, TQ_SIGNAL(clicked()), this, - TQ_SLOT(slotCancelCurrent()), FALSE, i18n("Cancel")); + TQ_SLOT(slotCancelCurrent()), false, i18n("Cancel")); toolBar()->insertButton("configure", TOOL_CONFIGURE, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotConfigure()), true, i18n("Settings...")); @@ -1135,11 +1135,11 @@ void UIServer::slotSelection() { for ( ; it.current(); ++it ) { if ( it.current()->isSelected() ) { - toolBar()->setItemEnabled( TOOL_CANCEL, TRUE); + toolBar()->setItemEnabled( TOOL_CANCEL, true); return; } } - toolBar()->setItemEnabled( TOOL_CANCEL, FALSE); + toolBar()->setItemEnabled( TOOL_CANCEL, false); } // This code is deprecated, slaves go to Observer::openPassDlg now, diff --git a/tdeio/tdefile/images.h b/tdeio/tdefile/images.h index 0e9298383..9d60f02bb 100644 --- a/tdeio/tdefile/images.h +++ b/tdeio/tdefile/images.h @@ -232,16 +232,16 @@ static struct EmbedImage { bool alpha; const char *name; } embed_image_vec[] = { - { 16, 16, 32, (const unsigned char*)group_grey_data, 0, 0, TRUE, "group-grey" }, - { 16, 16, 32, (const unsigned char*)group_data, 0, 0, TRUE, "group" }, - { 16, 16, 32, (const unsigned char*)mask_data, 0, 0, TRUE, "mask" }, - { 16, 16, 32, (const unsigned char*)others_grey_data, 0, 0, TRUE, "others-grey" }, - { 16, 16, 32, (const unsigned char*)others_data, 0, 0, TRUE, "others" }, - { 16, 16, 32, (const unsigned char*)user_green_data, 0, 0, TRUE, "user-green" }, - { 16, 16, 32, (const unsigned char*)user_grey_data, 0, 0, TRUE, "user-grey" }, - { 16, 16, 32, (const unsigned char*)user_data, 0, 0, TRUE, "user" }, - { 16, 16, 32, (const unsigned char*)yes_data, 0, 0, TRUE, "yes" }, - { 16, 16, 32, (const unsigned char*)yespartial_data, 0, 0, TRUE, "yespartial" }, + { 16, 16, 32, (const unsigned char*)group_grey_data, 0, 0, true, "group-grey" }, + { 16, 16, 32, (const unsigned char*)group_data, 0, 0, true, "group" }, + { 16, 16, 32, (const unsigned char*)mask_data, 0, 0, true, "mask" }, + { 16, 16, 32, (const unsigned char*)others_grey_data, 0, 0, true, "others-grey" }, + { 16, 16, 32, (const unsigned char*)others_data, 0, 0, true, "others" }, + { 16, 16, 32, (const unsigned char*)user_green_data, 0, 0, true, "user-green" }, + { 16, 16, 32, (const unsigned char*)user_grey_data, 0, 0, true, "user-grey" }, + { 16, 16, 32, (const unsigned char*)user_data, 0, 0, true, "user" }, + { 16, 16, 32, (const unsigned char*)yes_data, 0, 0, true, "yes" }, + { 16, 16, 32, (const unsigned char*)yespartial_data, 0, 0, true, "yespartial" }, { 0, 0, 0, 0, 0, 0, 0, 0 } }; @@ -260,7 +260,7 @@ static const TQImage& qembed_findImage( const TQString& name ) embed_image_vec[i].numColors, TQImage::BigEndian ); if ( embed_image_vec[i].alpha ) - img->setAlphaBuffer( TRUE ); + img->setAlphaBuffer( true ); dict.insert( name, img ); break; } diff --git a/tdeio/tdeio/ktrader.h b/tdeio/tdeio/ktrader.h index bcbb2aaa9..8b42a55e8 100644 --- a/tdeio/tdeio/ktrader.h +++ b/tdeio/tdeio/ktrader.h @@ -187,7 +187,7 @@ protected: * * As elementary atoms of the constraint language, TDETrader supports * booleans, integers, floats and strings. Boolean literals are - * @a TRUE and @a FALSE . Integers can be positive or negative, + * @a true and @a false . Integers can be positive or negative, * i.e. @a 42 and @a -10 are legal values. Floating point * numbers are @a 3.141592535 or @a -999.999 . Scientific notation * like @a 1.5e-2 is not supported. Character literals are delimited @@ -254,7 +254,7 @@ protected: * - () * * The tilde operator stands for a substring match. For example, - * KParts ~ 'KParts/ReadOnlyPart' is TRUE. The membership + * KParts ~ 'KParts/ReadOnlyPart' is true. The membership * operator in tests whether a value is in a list. A list is a * string with semi-colon- or comma-separated entries, depending on the * type. An example for the membership operator is diff --git a/tdeioslave/file/file.cpp b/tdeioslave/file/file.cpp index d404b8ab4..162f8a848 100644 --- a/tdeioslave/file/file.cpp +++ b/tdeioslave/file/file.cpp @@ -638,7 +638,7 @@ void FileProtocol::copy( const KURL &src, const KURL &dest, return; } - // If the destination is a symlink and overwrite is TRUE, + // If the destination is a symlink and overwrite is true, // remove the symlink first to prevent the scenario where // the symlink actually points to current source! if (_overwrite && S_ISLNK(buff_dest.st_mode)) diff --git a/tdeparts/COMMENTS b/tdeparts/COMMENTS index d36d98eef..15472ac52 100644 --- a/tdeparts/COMMENTS +++ b/tdeparts/COMMENTS @@ -588,7 +588,7 @@ issue compared to what's above though. (Torben) About the fact that konqy can embed a KReadWritePart (short KRWP): This is IMHO not a konqy problem but a KRWP design bug. KRWP overloads KROP and changes the semantics (editing is possible). By default KRWP should - go into ReadOnly mode. Only if one calls rwpart->setEditable( TRUE ) it should + go into ReadOnly mode. Only if one calls rwpart->setEditable( true ) it should offer editing of the data. It may still happen that some KRWPs dont obeye the "editable" flag, but that is a bug inside of the KRWP. diff --git a/tdeprint/cups/make_driver_db_cups.cpp b/tdeprint/cups/make_driver_db_cups.cpp index a5eb1b8e5..5c5000535 100644 --- a/tdeprint/cups/make_driver_db_cups.cpp +++ b/tdeprint/cups/make_driver_db_cups.cpp @@ -249,10 +249,10 @@ int parseCompressedPpdFile(const char *ppdfilename, const char *origin, const ch if (strlen(metadata) > 0) { TQString metadataProcessed(metadata); metadataProcessed = metadataProcessed.stripWhiteSpace(); - TQStringList metadataList = TQStringList::split(" ", metadataProcessed, TRUE); + TQStringList metadataList = TQStringList::split(" ", metadataProcessed, true); TQLocale ppdLanguage(metadataList[0]); TQString languageVersion = TQLocale::languageToString(ppdLanguage.language()); - metadataList = TQStringList::split("\" \"", metadataProcessed, TRUE); + metadataList = TQStringList::split("\" \"", metadataProcessed, true); TQString description = metadataList[1]; int pos = metadataProcessed.find("MFG:"); @@ -266,9 +266,9 @@ int parseCompressedPpdFile(const char *ppdfilename, const char *origin, const ch TQString pnpManufacturer; TQString pnpModel; TQString driver; - TQStringList metadataList = TQStringList::split(";", metadataProcessed.mid(pos), TRUE); + TQStringList metadataList = TQStringList::split(";", metadataProcessed.mid(pos), true); for (TQStringList::Iterator it = metadataList.begin(); it != metadataList.end(); ++it) { - TQStringList kvPair = TQStringList::split(":", *it, TRUE); + TQStringList kvPair = TQStringList::split(":", *it, true); if ((kvPair[0].upper() == "MFG") || (kvPair[0].upper() == "MANUFACTURER")) { manufacturer = kvPair[1]; } @@ -290,7 +290,7 @@ int parseCompressedPpdFile(const char *ppdfilename, const char *origin, const ch modelName = modelName.stripWhiteSpace(); driver = driver.stripWhiteSpace(); - TQStringList driverList = TQStringList::split(",", driver, TRUE); + TQStringList driverList = TQStringList::split(",", driver, true); driver = driverList[0]; if (driver.startsWith("D")) { driver = driver.mid(1); diff --git a/tdeprint/management/smbview.cpp b/tdeprint/management/smbview.cpp index 99cc3bc94..6f4db992a 100644 --- a/tdeprint/management/smbview.cpp +++ b/tdeprint/management/smbview.cpp @@ -140,7 +140,7 @@ void SmbView::init() while (!smb_stream.atEnd ()) { TQString smb_line = smb_stream.readLine (); - if (smb_line.contains (wins_keyword, FALSE) > 0) + if (smb_line.contains (wins_keyword, false) > 0) { TQString key = smb_line.section ('=', 0, 0); key = key.stripWhiteSpace(); diff --git a/tderandr/libtderandr.cpp b/tderandr/libtderandr.cpp index f510ca8ab..1900f8503 100644 --- a/tderandr/libtderandr.cpp +++ b/tderandr/libtderandr.cpp @@ -539,7 +539,7 @@ TQPoint KRandrSimpleAPI::applyDisplayConfiguration(TQString profilename, TQStrin TQPtrList screenInfoArray; screenInfoArray = loadDisplayConfiguration(profilename, kde_confdir); if (screenInfoArray.count() > 0) { - applyDisplayConfiguration(screenInfoArray, FALSE, kde_confdir); + applyDisplayConfiguration(screenInfoArray, false, kde_confdir); } destroyScreenInformationObject(screenInfoArray); screenInfoArray = readCurrentDisplayConfiguration(); @@ -646,11 +646,11 @@ bool KRandrSimpleAPI::applyDisplayConfiguration(TQPtrList scre SingleScreenData *screendata; TQPtrList oldconfig; - if (test == TRUE) { + if (test) { oldconfig = readCurrentDisplayConfiguration(); } - if (isValid() == true) { + if (isValid()) { #ifdef USE_XRANDR_PROGRAM // Assemble the command string for xrandr TQString command; @@ -703,7 +703,7 @@ bool KRandrSimpleAPI::applyDisplayConfiguration(TQPtrList scre if(xrandr_command_output.startsWith("xrandr: Failed to get size of gamma for output")) { KMessageBox::sorry(0, xrandr_command_output, i18n("Setting gamma failed.")); } else if (xrandr_command_output != "") { - applyDisplayConfiguration(oldconfig, FALSE, kde_confdir); + applyDisplayConfiguration(oldconfig, false, kde_confdir); accepted = false; destroyScreenInformationObject(oldconfig); KMessageBox::sorry(0, xrandr_command_output, i18n("XRandR encountered a problem")); @@ -804,10 +804,10 @@ bool KRandrSimpleAPI::applyDisplayConfiguration(TQPtrList scre applySystemWideIccConfiguration(kde_confdir); applyIccConfiguration(current_icc_profile, kde_confdir); - if (test == TRUE) { + if (test) { int ret = showTestConfigurationDialog(); if (!ret) { - applyDisplayConfiguration(oldconfig, FALSE, kde_confdir); + applyDisplayConfiguration(oldconfig, false, kde_confdir); accepted = false; } destroyScreenInformationObject(oldconfig); diff --git a/tderandr/libtderandr.h b/tderandr/libtderandr.h index cccce2594..ad9ccf4b9 100644 --- a/tderandr/libtderandr.h +++ b/tderandr/libtderandr.h @@ -253,7 +253,7 @@ class TDERANDR_EXPORT KRandrSimpleAPI : public RandRDisplay * If test is true, the new configuration will be loaded for a short period of time, then reverted automatically * Returns true if configuration was accepted; false if not */ - bool applyDisplayConfiguration(TQPtrList screenInfoArray, bool test=TRUE, TQString kde_confdir=""); + bool applyDisplayConfiguration(TQPtrList screenInfoArray, bool test=true, TQString kde_confdir=""); /** * Applies the gamma contained within the systemwide display configuration screenInfoArray to the hardware diff --git a/tdersync/rsyncconfigdialog.cpp b/tdersync/rsyncconfigdialog.cpp index a99a245c7..a97c7b2f1 100644 --- a/tdersync/rsyncconfigdialog.cpp +++ b/tdersync/rsyncconfigdialog.cpp @@ -128,7 +128,7 @@ RsyncConfigDialog::RsyncConfigDialog(TQWidget* parent, const char* name, // Create an exclusive button group TQButtonGroup *layoutg = new TQButtonGroup( 1, TQt::Horizontal, i18n("Synchronization Method")+TQString(":"), mainWidget); layout->addWidget( layoutg ); - layoutg->setExclusive( TRUE ); + layoutg->setExclusive( true ); // Insert radiobuttons rsync_rb1 = new TQRadioButton(i18n("&Utilize rsync + ssh for upload to remote server\nExample: servername:/path/to/remote/folder"), layoutg); @@ -136,11 +136,11 @@ RsyncConfigDialog::RsyncConfigDialog(TQWidget* parent, const char* name, rsync_rb3 = new TQRadioButton(i18n("&Utilize unison + ssh for bidirectional synchronization with remote server\nExample: ssh://servername//path/to/remote/folder"), layoutg); if (syncmode == 1) - rsync_rb1->setChecked( TRUE ); + rsync_rb1->setChecked( true ); else if (syncmode == 2) - rsync_rb2->setChecked( TRUE ); + rsync_rb2->setChecked( true ); else if (syncmode == 3) - rsync_rb3->setChecked( TRUE ); + rsync_rb3->setChecked( true ); //(void)new TQRadioButton( "R&adiobutton 2", layoutg ); //(void)new TQRadioButton( "Ra&diobutton 3", layoutg ); @@ -148,7 +148,7 @@ RsyncConfigDialog::RsyncConfigDialog(TQWidget* parent, const char* name, // Create an exclusive button group TQButtonGroup *layoutm = new TQButtonGroup( 1, TQt::Horizontal, i18n("Remote Folder")+TQString(":"), mainWidget); layout->addWidget( layoutm ); - layoutg->setExclusive( TRUE ); + layoutg->setExclusive( true ); m_rsync_txt = new TQLineEdit(layoutm); if (remotefolder.isEmpty() == false) { @@ -158,7 +158,7 @@ RsyncConfigDialog::RsyncConfigDialog(TQWidget* parent, const char* name, // Create an exclusive button group TQButtonGroup *layouta = new TQButtonGroup( 1, TQt::Horizontal, i18n("Automatic Synchronization")+TQString(":"), mainWidget); layout->addWidget( layouta ); - layouta->setExclusive( FALSE ); + layouta->setExclusive( false ); m_sync_auto_logout_cb = new TQCheckBox(layouta); m_sync_auto_logout_cb->setText(i18n("Synchronize on logout")); diff --git a/tdestyles/asteroid/asteroid.cpp b/tdestyles/asteroid/asteroid.cpp index 768bceb05..8a66cbe80 100644 --- a/tdestyles/asteroid/asteroid.cpp +++ b/tdestyles/asteroid/asteroid.cpp @@ -148,7 +148,7 @@ AsteroidStyle::applicationPolish(const TQStyleControlElementData&, ControlElemen TQPalette wp = TQApplication::palette(); wp.setColor(TQColorGroup::Dark, TQColor(128, 128, 128)); wp.setColor(TQColorGroup::Mid, wp.active().color(TQColorGroup::Button).dark(150)); // Which GUI element(s) does this correspond to? - TQApplication::setPalette( wp, TRUE ); + TQApplication::setPalette( wp, true ); } /*! \reimp @@ -1015,8 +1015,7 @@ void AsteroidStyle::drawControl(ControlElement ce, const TQTab * t = o.tab(); bool selected = sf & Style_Selected; - bool lastTab = (ceData.tabBarData.identIndexMap[t->identifier()] == ceData.tabBarData.tabCount-1) ? - TRUE : FALSE; + bool lastTab = (ceData.tabBarData.identIndexMap[t->identifier()] == ceData.tabBarData.tabCount-1); TQRect r2( r ); if ( ceData.tabBarData.shape == TQTabBar::RoundedAbove ) { p->setPen( cg.light() ); @@ -1875,8 +1874,8 @@ void AsteroidStyle::drawComplexControl(ComplexControl cc, if ( !verticalLine ) { // make 128*1 and 1*128 bitmaps that can be used for // drawing the right sort of lines. - verticalLine = new TQBitmap( 1, 129, TRUE ); - horizontalLine = new TQBitmap( 128, 1, TRUE ); + verticalLine = new TQBitmap( 1, 129, true ); + horizontalLine = new TQBitmap( 128, 1, true ); TQPointArray a( 64 ); TQPainter p; p.begin( verticalLine ); diff --git a/tdeui/kdialog.cpp b/tdeui/kdialog.cpp index 7846b9639..826012ab1 100644 --- a/tdeui/kdialog.cpp +++ b/tdeui/kdialog.cpp @@ -462,7 +462,7 @@ void KSMModalDialog::keepMeOnTop() if (!m_keepOnTopTimer) { m_keepOnTopTimer = new TQTimer(); connect(m_keepOnTopTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(keepMeOnTop())); - m_keepOnTopTimer->start(100, FALSE); + m_keepOnTopTimer->start(100, false); } setActiveWindow(); raise(); diff --git a/tdeui/klanguagebutton.h b/tdeui/klanguagebutton.h index c6bb122c5..c5d5cbac8 100644 --- a/tdeui/klanguagebutton.h +++ b/tdeui/klanguagebutton.h @@ -144,7 +144,7 @@ public: */ TQString current() const; /** - * Returns TRUE if the combobox contains id. + * Returns true if the combobox contains id. */ bool contains( const TQString & id ) const; /** diff --git a/tdeui/kpassivepopup.cpp b/tdeui/kpassivepopup.cpp index eb626a767..91a95388f 100644 --- a/tdeui/kpassivepopup.cpp +++ b/tdeui/kpassivepopup.cpp @@ -94,7 +94,7 @@ void KPassivePopup::init( int popupStyle ) else if( popupStyle == Balloon ) { setPalette(TQToolTip::palette()); - setAutoMask(TRUE); + setAutoMask(true); } connect( hideTimer, TQ_SIGNAL( timeout() ), TQ_SLOT( hide() ) ); connect( this, TQ_SIGNAL( clicked() ), TQ_SLOT( hide() ) ); diff --git a/tdeui/kpixmapregionselectorwidget.cpp b/tdeui/kpixmapregionselectorwidget.cpp index 43cfa311d..a38334cbb 100644 --- a/tdeui/kpixmapregionselectorwidget.cpp +++ b/tdeui/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/tdeui/kwhatsthismanager.cpp b/tdeui/kwhatsthismanager.cpp index e3a2fdf2e..3e0c7e62b 100644 --- a/tdeui/kwhatsthismanager.cpp +++ b/tdeui/kwhatsthismanager.cpp @@ -86,7 +86,7 @@ bool KWhatsThisUndefined::clicked (const TQString& href) "\n--%-----------------------------------------------------------------------"); tdeApp -> invokeMailer ("quality-whatsthis@kde.org", "", "", subj, body); } - return TRUE; + return true; } void KWhatsThisManager::init () diff --git a/tdeui/tdelistview.cpp b/tdeui/tdelistview.cpp index cf986b538..0d46f49be 100644 --- a/tdeui/tdelistview.cpp +++ b/tdeui/tdelistview.cpp @@ -2569,7 +2569,7 @@ void TDEListViewItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column } /*! - If \a select is TRUE, all the items get selected; otherwise all + If \a select is true, all the items get selected; otherwise all the items get unselected. This only works in the selection modes \c Multi and \c Extended. In \c Single and \c NoSelection mode the selection of the current item is just set to \a select. @@ -2579,25 +2579,19 @@ void TDEListView::selectAll( bool select ) { if ( ((SelectionModeExt)selectionMode() == Multi) || ((SelectionModeExt)selectionMode() == Extended) ) { bool b = signalsBlocked(); - blockSignals( TRUE ); - bool anything = FALSE; + blockSignals( true ); + bool anything = false; TQListViewItemIterator it( this ); while ( it.current() ) { TQListViewItem *i = it.current(); - if ( select == TRUE ) { - if ( (bool)i->isVisible() == TRUE ) { - i->setSelected( TRUE ); - anything = TRUE; - } - if ( (bool)i->isVisible() == FALSE ) { - i->setSelected( FALSE ); - anything = TRUE; - } + if ( select ) { + i->setSelected( i->isVisible() ); + anything = true; } else { - if ( (bool)i->isSelected() != select ) { + if ( i->isSelected() != select ) { i->setSelected( select ); - anything = TRUE; + anything = true; } } ++it; @@ -2605,7 +2599,7 @@ void TDEListView::selectAll( bool select ) blockSignals( b ); if ( anything ) { emit selectionChanged(); -// d->useDoubleBuffer = TRUE; +// d->useDoubleBuffer = true; triggerUpdate(); } } else if ( currentItem() ) { diff --git a/tdeui/tdelistview.h b/tdeui/tdelistview.h index 075b80091..fa51c9b3b 100644 --- a/tdeui/tdelistview.h +++ b/tdeui/tdelistview.h @@ -435,15 +435,15 @@ public: bool shadeSortColumn(void) const; /** - * @param enable TRUE if small execute area should be used (e.g. KonqListViewItem), FALSE if not. - * The default is FALSE to match TQt behaviour. + * @param enable true if small execute area should be used (e.g. KonqListViewItem), false if not. + * The default is false to match TQt behaviour. * * @since 14.0 */ void setUseSmallExecuteArea(bool enable); /** - * @return TRUE if small execute area is in use, FALSE if not. + * @return true if small execute area is in use, false if not. * * @since 14.0 */