Replace TRUE/FALSE with boolean values true/false

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/356/head
Michele Calgaro 2 months ago
parent bedc43ef09
commit ad58630b34
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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.
*/

@ -202,7 +202,7 @@ bool PublicService::fillEntryGroup()
avahi_string_list_free(s);
return res;
#else
return FALSE;
return false;
#endif
}

@ -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()
*/

@ -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)
*/

@ -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))

@ -1140,7 +1140,7 @@ KateHlContext::KateHlContext (const TQString &_hlId, int attribute, int lineEndC
dynamic = _dynamic;
dynamicChild = false;
noIndentationBasedFolding=_noIndentationBasedFolding;
if (_noIndentationBasedFolding) kdDebug(13010)<<TQString("**********************_noIndentationBasedFolding is TRUE*****************")<<endl;
if (_noIndentationBasedFolding) kdDebug(13010)<<TQString("**********************_noIndentationBasedFolding is true*****************")<<endl;
}

@ -30,13 +30,6 @@
#include "midispec.h"
#include "midfile.h"
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
#define T2MS(ticks) (((double)ticks)*(double)60000L)/((double)tempoToMetronomeTempo(tempo)*(double)tPCN)
#define MS2T(ms) (((ms)*(double)tempoToMetronomeTempo(tempo)*(double)tPCN)/((double)60000L))
@ -235,9 +228,9 @@ void MidiTrack::readEvent(MidiEvent *ev)
ev->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;

@ -34,7 +34,7 @@
#include "tdescreensaver.h"
#include "tdescreensaver_vroot.h"
bool argb_visual = FALSE;
bool argb_visual = false;
extern "C"
{

@ -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;

@ -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;

@ -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

@ -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);

@ -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);

@ -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();

@ -626,7 +626,7 @@ int TDEAccelString::maxWeight(int &index, const TQString &used)
index = -1;
for (uint pos=0; pos<m_pureText.length(); ++pos)
if (used.find(m_pureText[pos], 0, FALSE) == -1 && m_pureText[pos].latin1() != 0)
if (used.find(m_pureText[pos], 0, false) == -1 && m_pureText[pos].latin1() != 0)
if (m_weight[pos] > max)
{
max = m_weight[pos];

@ -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;
}

@ -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);

@ -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 )

@ -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");
}

@ -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");
}

@ -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);
}

@ -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,

@ -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;
}

@ -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:
* - <tt>()</tt>
*
* The tilde operator stands for a substring match. For example,
* <tt>KParts ~ 'KParts/ReadOnlyPart'</tt> is TRUE. The membership
* <tt>KParts ~ 'KParts/ReadOnlyPart'</tt> is true. The membership
* operator <tt>in</tt> 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

@ -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))

@ -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.

@ -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);

@ -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();

@ -539,7 +539,7 @@ TQPoint KRandrSimpleAPI::applyDisplayConfiguration(TQString profilename, TQStrin
TQPtrList<SingleScreenData> 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<SingleScreenData> scre
SingleScreenData *screendata;
TQPtrList<SingleScreenData> 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<SingleScreenData> 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<SingleScreenData> 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);

@ -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<SingleScreenData> screenInfoArray, bool test=TRUE, TQString kde_confdir="");
bool applyDisplayConfiguration(TQPtrList<SingleScreenData> screenInfoArray, bool test=true, TQString kde_confdir="");
/**
* Applies the gamma contained within the systemwide display configuration screenInfoArray to the hardware

@ -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"));

@ -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 );

@ -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();

@ -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;
/**

@ -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() ) );

@ -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 )

@ -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 ()

@ -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() ) {

@ -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
*/

Loading…
Cancel
Save