summaryrefslogtreecommitdiffstats
path: root/tools/assistant/mainwindow.ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/assistant/mainwindow.ui.h')
-rw-r--r--tools/assistant/mainwindow.ui.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/tools/assistant/mainwindow.ui.h b/tools/assistant/mainwindow.ui.h
index 046ab043a..a976c506d 100644
--- a/tools/assistant/mainwindow.ui.h
+++ b/tools/assistant/mainwindow.ui.h
@@ -57,11 +57,11 @@ void MainWindow::init()
// certain user configs. See task: 34372
qt_ntfs_permission_lookup = 0;
#endif
- setupCompleted = FALSE;
+ setupCompleted = false;
goActions = new TQPtrList<TQAction>;
goActionDocFiles = new TQMap<TQAction*,TQString>;
- goActions->setAutoDelete( TRUE );
+ goActions->setAutoDelete( true );
if ( !windows )
windows = new TQPtrList<MainWindow>;
@@ -76,7 +76,7 @@ void MainWindow::init()
dw = new TQDockWindow( TQDockWindow::InDock, this );
helpDock = new HelpDialog( dw, this );
- dw->setResizeEnabled( TRUE );
+ dw->setResizeEnabled( true );
dw->setCloseMode( TQDockWindow::Always );
addDockWindow( dw, DockLeft );
dw->setWidget( helpDock );
@@ -120,7 +120,7 @@ void MainWindow::setup()
tqApp->setOverrideCursor( TQCursor( TQt::WaitCursor ) );
statusBar()->message( tr( "Initializing TQt Assistant..." ) );
- setupCompleted = TRUE;
+ setupCompleted = true;
helpDock->initialize();
connect( actionGoPrevious, TQ_SIGNAL( activated() ), tabs, TQ_SLOT( backward() ) );
connect( actionGoNext, TQ_SIGNAL( activated() ), tabs, TQ_SLOT( forward() ) );
@@ -168,8 +168,8 @@ void MainWindow::setup()
helpDock->tabWidget->setCurrentPage( config->sideBarPage() );
tqApp->restoreOverrideCursor();
- actionGoPrevious->setEnabled( FALSE );
- actionGoNext->setEnabled( FALSE );
+ actionGoPrevious->setEnabled( false );
+ actionGoNext->setEnabled( false );
}
void MainWindow::setupGoActions()
@@ -178,7 +178,7 @@ void MainWindow::setupGoActions()
TQStringList titles = config->docTitles();
TQAction *action = 0;
- static bool separatorInserted = FALSE;
+ static bool separatorInserted = false;
TQAction *cur = goActions->first();
while( cur ) {
@@ -198,7 +198,7 @@ void MainWindow::setupGoActions()
if( !pix.isNull() ) {
if( !separatorInserted ) {
goMenu->insertSeparator();
- separatorInserted = TRUE;
+ separatorInserted = true;
}
action = new TQAction( title, TQIconSet( pix ), title, 0, 0 );
action->addTo( goMenu );
@@ -229,7 +229,7 @@ bool MainWindow::insertActionSeparator()
{
goMenu->insertSeparator();
Toolbar->addSeparator();
- return TRUE;
+ return true;
}
bool MainWindow::close( bool alsoDelete )
@@ -309,7 +309,7 @@ void MainWindow::findAgain()
find();
return;
}
- findDialog->doFind(TRUE);
+ findDialog->doFind(true);
}
void MainWindow::findAgainPrev()
@@ -318,7 +318,7 @@ void MainWindow::findAgainPrev()
find();
return;
}
- findDialog->doFind(FALSE);
+ findDialog->doFind(false);
}
void MainWindow::goHome()
@@ -329,7 +329,7 @@ void MainWindow::goHome()
void MainWindow::print()
{
TQPrinter printer( TQPrinter::HighResolution );
- printer.setFullPage( TRUE );
+ printer.setFullPage( true );
if ( printer.setup( this ) ) {
TQPainter p;
if ( !p.begin( &printer ) )
@@ -348,7 +348,7 @@ void MainWindow::print()
metrics.height() - 2 * margin );
TQSimpleRichText richText( browser->text(), browser->TQWidget::font(), browser->context(),
browser->styleSheet(), browser->mimeSourceFactory(),
- view.height(), TQt::black, FALSE );
+ view.height(), TQt::black, false );
richText.setWidth( &p, view.width() );
int page = 1;
do {
@@ -363,7 +363,7 @@ void MainWindow::print()
break;
printer.newPage();
page++;
- } while (TRUE);
+ } while (true);
tqApp->eventLoop()->processEvents( TQEventLoop::ExcludeUserInput );
tqApp->restoreOverrideCursor();
@@ -611,7 +611,7 @@ TabbedBrowser* MainWindow::browsers()
void MainWindow::showSearchLink( const TQString &link, const TQStringList &terms )
{
HelpWindow * hw = tabs->currentBrowser();
- hw->blockScrolling( TRUE );
+ hw->blockScrolling( true );
hw->setCursor( waitCursor );
if ( hw->source() == link )
hw->reload();
@@ -620,25 +620,25 @@ void MainWindow::showSearchLink( const TQString &link, const TQStringList &terms
hw->sync();
hw->setCursor( arrowCursor );
- hw->viewport()->setUpdatesEnabled( FALSE );
+ hw->viewport()->setUpdatesEnabled( false );
int minPar = INT_MAX;
int minIndex = INT_MAX;
TQStringList::ConstIterator it = terms.begin();
for ( ; it != terms.end(); ++it ) {
int para = 0;
int index = 0;
- bool found = hw->find( *it, FALSE, TRUE, TRUE, &para, &index );
+ bool found = hw->find( *it, false, true, true, &para, &index );
while ( found ) {
if ( para < minPar ) {
minPar = para;
minIndex = index;
}
hw->setColor( red );
- found = hw->find( *it, FALSE, TRUE, TRUE );
+ found = hw->find( *it, false, true, true );
}
}
- hw->blockScrolling( FALSE );
- hw->viewport()->setUpdatesEnabled( TRUE );
+ hw->blockScrolling( false );
+ hw->viewport()->setUpdatesEnabled( true );
hw->setCursorPosition( minPar, minIndex );
hw->updateContents();
}