Replace TRUE/FALSE with boolean values true/false

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/14/head
Michele Calgaro 5 months ago
parent 0ab7a6fc13
commit 66dc020d26
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -198,7 +198,7 @@ bool LCHMFile::searchQuery( const TQString& inquery, TQStringList * searchresult
TQRegExp rxphrase( "\"(.*)\"" ); TQRegExp rxphrase( "\"(.*)\"" );
TQRegExp rxword( "([^\\s]+)" ); TQRegExp rxword( "([^\\s]+)" );
rxphrase.setMinimal( TRUE ); rxphrase.setMinimal( true );
// First, get the phrase queries // First, get the phrase queries
while ( (pos = rxphrase.search (query, 0)) != -1 ) while ( (pos = rxphrase.search (query, 0)) != -1 )

@ -1032,18 +1032,18 @@ bool LCHMFileImpl::parseFileAndFillArray( const TQString & file, QT34VECTOR< LCH
TQString name_pattern = "name=", value_pattern = "value="; TQString name_pattern = "name=", value_pattern = "value=";
TQString pname, pvalue; TQString pname, pvalue;
if ( (offset = tag.find (name_pattern, 0, FALSE)) == -1 ) if ( (offset = tag.find (name_pattern, 0, false)) == -1 )
tqFatal ("LCHMFileImpl::ParseAndFillTopicsTree: bad <param> tag '%s': no name=\n", tag.ascii()); tqFatal ("LCHMFileImpl::ParseAndFillTopicsTree: bad <param> tag '%s': no name=\n", tag.ascii());
// offset+5 skips 'name=' // offset+5 skips 'name='
offset = findStringInQuotes (tag, offset + name_pattern.length(), pname, TRUE, FALSE); offset = findStringInQuotes (tag, offset + name_pattern.length(), pname, true, false);
pname = pname.lower(); pname = pname.lower();
if ( (offset = tag.find (value_pattern, offset, FALSE)) == -1 ) if ( (offset = tag.find (value_pattern, offset, false)) == -1 )
tqFatal ("LCHMFileImpl::ParseAndFillTopicsTree: bad <param> tag '%s': no value=\n", tag.ascii()); tqFatal ("LCHMFileImpl::ParseAndFillTopicsTree: bad <param> tag '%s': no value=\n", tag.ascii());
// offset+6 skips 'value=' // offset+6 skips 'value='
findStringInQuotes (tag, offset + value_pattern.length(), pvalue, FALSE, TRUE); findStringInQuotes (tag, offset + value_pattern.length(), pvalue, false, true);
//tqDebug ("<param>: name '%s', value '%s'", pname.ascii(), pvalue.ascii()); //tqDebug ("<param>: name '%s', value '%s'", pname.ascii(), pvalue.ascii());

@ -258,7 +258,7 @@ class LCHMFileImpl
//! Map to decode HTML entitles like &acute; based on current encoding //! Map to decode HTML entitles like &acute; based on current encoding
TQMap<TQString, TQString> m_entityDecodeMap; TQMap<TQString, TQString> m_entityDecodeMap;
//! TRUE if /#TOPICS, /#STRINGS, /#URLTBL and /#URLSTR are resolved, and the members below are valid //! true if /#TOPICS, /#STRINGS, /#URLTBL and /#URLSTR are resolved, and the members below are valid
bool m_lookupTablesValid; bool m_lookupTablesValid;
//! pointer to /#TOPICS //! pointer to /#TOPICS
@ -274,7 +274,7 @@ class LCHMFileImpl
chmUnitInfo m_chmURLSTR; chmUnitInfo m_chmURLSTR;
//! Indicates whether the built-in search is available. This is true only when m_lookupTablesValid //! Indicates whether the built-in search is available. This is true only when m_lookupTablesValid
//! is TRUE, and m_chmFIftiMain is resolved. //! is true, and m_chmFIftiMain is resolved.
bool m_searchAvailable; bool m_searchAvailable;
//! pointer to /$FIftiMain //! pointer to /$FIftiMain

@ -49,5 +49,5 @@ bool KCHMKeyEventFilter::eventFilter( TQObject *, TQEvent *e )
*ptr = e->type() == TQEvent::KeyPress ? true : false; *ptr = e->type() == TQEvent::KeyPress ? true : false;
} }
return FALSE; // Standard event processing return false; // Standard event processing
} }

@ -1056,7 +1056,7 @@ void KCHMMainWindow::slotExtractCHM( )
this, this,
0, 0,
i18n("Choose a directory to store CHM content"), i18n("Choose a directory to store CHM content"),
TRUE ); true );
#endif #endif
if ( outdir.isEmpty() ) if ( outdir.isEmpty() )

@ -61,7 +61,7 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * parent )
TQPixmap iconLocateInContent (*gIconStorage.getToolbarPixmap(KCHMIconStorage::locate_in_content)); TQPixmap iconLocateInContent (*gIconStorage.getToolbarPixmap(KCHMIconStorage::locate_in_content));
// Create the combobox to enter the find text // Create the combobox to enter the find text
m_findBox = new TQComboBox (TRUE, this); m_findBox = new TQComboBox (true, this);
m_findBox->setMinimumWidth (200); m_findBox->setMinimumWidth (200);
connect( m_findBox->lineEdit(), TQ_SIGNAL( returnPressed() ), this, TQ_SLOT( onReturnPressed() ) ); connect( m_findBox->lineEdit(), TQ_SIGNAL( returnPressed() ), this, TQ_SLOT( onReturnPressed() ) );
TQWhatsThis::add( m_findBox, i18n( "Enter here the text to search in the current page.") ); TQWhatsThis::add( m_findBox, i18n( "Enter here the text to search in the current page.") );

@ -50,7 +50,7 @@ KCHMSearchWindow::KCHMSearchWindow( TQWidget * parent, const char * name, WFlags
labellayout->addWidget ( helplink ); labellayout->addWidget ( helplink );
layout->addLayout( labellayout ); layout->addLayout( labellayout );
m_searchQuery = new TQComboBox (TRUE, this); m_searchQuery = new TQComboBox (true, this);
m_searchQuery->setFocus(); m_searchQuery->setFocus();
m_searchQuery->setMaxCount (10); m_searchQuery->setMaxCount (10);
m_searchQuery->setSizePolicy ( TQSizePolicy ( TQSizePolicy::Expanding, TQSizePolicy::Fixed ) ); m_searchQuery->setSizePolicy ( TQSizePolicy ( TQSizePolicy::Expanding, TQSizePolicy::Fixed ) );

@ -25,7 +25,7 @@ class KCHMSetupDialog_impl : public KCHMSetupDialog
TQ_OBJECT TQ_OBJECT
public: public:
KCHMSetupDialog_impl( TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); KCHMSetupDialog_impl( TQWidget* parent = 0, const char* name = 0, bool modal = false, WFlags fl = 0 );
public slots: public slots:
void slotShowHelp(); void slotShowHelp();

@ -133,7 +133,7 @@ bool KCHMViewWindow_QTextBrowser::printCurrentPage( )
{ {
#if !defined (TQT_NO_PRINTER) #if !defined (TQT_NO_PRINTER)
TQPrinter printer( TQPrinter::HighResolution ); TQPrinter printer( TQPrinter::HighResolution );
printer.setFullPage(TRUE); printer.setFullPage(true);
if ( printer.setup( this ) ) if ( printer.setup( this ) )
{ {
@ -174,7 +174,7 @@ bool KCHMViewWindow_QTextBrowser::printCurrentPage( )
printer.newPage(); printer.newPage();
page++; page++;
} }
while (TRUE); while (true);
::mainWindow->showInStatusBar( i18n( "Printing completed") ); ::mainWindow->showInStatusBar( i18n( "Printing completed") );
return true; return true;
@ -213,7 +213,7 @@ void KCHMViewWindow_QTextBrowser::searchWord( const TQString & word, bool forwar
void KCHMViewWindow_QTextBrowser::clipSelectAll( ) void KCHMViewWindow_QTextBrowser::clipSelectAll( )
{ {
selectAll (TRUE); selectAll (true);
} }
void KCHMViewWindow_QTextBrowser::clipCopy( ) void KCHMViewWindow_QTextBrowser::clipCopy( )

@ -64,7 +64,7 @@ bool KCHMViewWindow_TDEHTMLPart::openPage (const TQString& url)
if ( m_currentEncoding != ::mainWindow->chmFile()->currentEncoding() ) if ( m_currentEncoding != ::mainWindow->chmFile()->currentEncoding() )
{ {
m_currentEncoding = ::mainWindow->chmFile()->currentEncoding(); m_currentEncoding = ::mainWindow->chmFile()->currentEncoding();
setEncoding ( m_currentEncoding->qtcodec, TRUE ); setEncoding ( m_currentEncoding->qtcodec, true );
} }
TQString fullurl = "ms-its:" + ::mainWindow->getOpenedFileName() + "::" + url; TQString fullurl = "ms-its:" + ::mainWindow->getOpenedFileName() + "::" + url;

Loading…
Cancel
Save