diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-03-28 18:11:49 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-03 19:23:45 +0900 |
commit | 0bd9d5459891e6fb17ee6802878f85e217cb9f54 (patch) | |
tree | 962f6ea26d1fab041fe3476fbbd64132ab8ada1b /kpresenter/KPrView.cpp | |
parent | cb258b7e39ffa5662b57e7d9006e69172a378d7e (diff) | |
download | koffice-r14.1.4.tar.gz koffice-r14.1.4.zip |
Replace TRUE/FALSE with boolean values true/falser14.1.4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit cf85b9c285a2b9baa87c9d0cb9d683b48e82a475)
Diffstat (limited to 'kpresenter/KPrView.cpp')
-rw-r--r-- | kpresenter/KPrView.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/kpresenter/KPrView.cpp b/kpresenter/KPrView.cpp index bc89df188..9370233b0 100644 --- a/kpresenter/KPrView.cpp +++ b/kpresenter/KPrView.cpp @@ -441,7 +441,7 @@ KPrView::KPrView( KPrDocument* _doc, TQWidget *_parent, const char *_name ) } - setAcceptDrops( TRUE ); + setAcceptDrops( true ); } DCOPObject* KPrView::dcopObject() @@ -717,15 +717,15 @@ void KPrView::editDelPage() void KPrView::insertPage() { - InsertPageDia dia( this, 0, TRUE ); + InsertPageDia dia( this, 0, true ); #if COPYOASISFORMAT TQString templ = locateLocal( "data", "kpresenter/default.oop" ); #else TQString templ = locateLocal( "data", "kpresenter/default.kpr" ); #endif if ( !TQFile::exists( templ ) ) { - dia.radioDifferent->setChecked( TRUE ); - dia.radioDefault->setEnabled( FALSE ); + dia.radioDifferent->setChecked( true ); + dia.radioDefault->setEnabled( false ); } if ( dia.exec() != TQDialog::Accepted ) return; @@ -808,7 +808,7 @@ void KPrView::savePicture( const TQString& oldName, KoPicture& picture) TQStringList mimetypes; mimetypes << mimetype; - KFileDialog fd( oldFile, TQString(), this, 0, TRUE ); + KFileDialog fd( oldFile, TQString(), this, 0, true ); fd.setMimeFilter( mimetypes ); fd.setCaption(i18n("Save Picture")); fd.setOperationMode(KFileDialog::Saving); @@ -1572,7 +1572,7 @@ void KPrView::startScreenPres( int pgNum /*1-based*/ ) vert->setEnabled( false ); horz->setEnabled( false ); m_bShowGUI = false; - m_canvas->reparent( ( TQWidget* )0L, 0, TQPoint( 0, 0 ), FALSE ); + m_canvas->reparent( ( TQWidget* )0L, 0, TQPoint( 0, 0 ), false ); m_canvas->setPaletteBackgroundColor( TQt::white ); m_canvas->showFullScreen(); m_canvas->setFocusPolicy( TQWidget::StrongFocus ); @@ -2230,7 +2230,7 @@ void KPrView::createGUI() if ( sidebar ) { sidebar->outline()->setCurrentItem( sidebar->outline()->firstChild() ); - sidebar->outline()->setSelected( sidebar->outline()->firstChild(), TRUE ); + sidebar->outline()->setSelected( sidebar->outline()->firstChild(), true ); TDEConfig *config=TDEGlobal::config(); config->setGroup("Global"); if(!config->readBoolEntry("Sidebar", true)) { @@ -3756,12 +3756,12 @@ void KPrView::setupScrollbars() horz->setValue(horz->minValue()); pgNext = new TQToolButton( pageBase ); pgNext->setPixmap( TQPixmap( pagedown_xpm ) ); - pgNext->setAutoRepeat( TRUE ); + pgNext->setAutoRepeat( true ); TQToolTip::add( pgNext, i18n( "Next slide" ) ); connect( pgNext, TQ_SIGNAL( clicked() ), this, TQ_SLOT( nextPage() ) ); pgPrev = new TQToolButton( pageBase ); pgPrev->setPixmap( TQPixmap( pageup_xpm ) ); - pgPrev->setAutoRepeat( TRUE ); + pgPrev->setAutoRepeat( true ); TQToolTip::add( pgPrev, i18n( "Previous slide" ) ); connect( pgPrev, TQ_SIGNAL( clicked() ), this, TQ_SLOT( prevPage() ) ); } @@ -3847,7 +3847,7 @@ void KPrView::skipToPage( int num ) //(Laurent) deselect object when we change page. //otherwise you can change object properties on other page deSelectAllObjects(); - m_pKPresenterDoc->repaint( FALSE ); + m_pKPresenterDoc->repaint( false ); m_pKPresenterDoc->displayActivePage( page ); } @@ -4053,11 +4053,11 @@ void KPrView::updateSideBar() { if ( sidebar ) { - sidebar->blockSignals( TRUE ); + sidebar->blockSignals( true ); sidebar->thumbBar()->uptodate = false; sidebar->outline()->rebuildItems(); sidebar->thumbBar()->rebuildItems(); - sidebar->blockSignals( FALSE ); + sidebar->blockSignals( false ); } } @@ -4072,9 +4072,9 @@ void KPrView::addSideBarItem( int pos ) { if ( sidebar ) { - sidebar->blockSignals( TRUE ); + sidebar->blockSignals( true ); sidebar->addItem( pos ); - sidebar->blockSignals( FALSE ); + sidebar->blockSignals( false ); } } @@ -4082,9 +4082,9 @@ void KPrView::moveSideBarItem( int oldPos, int newPos ) { if ( sidebar ) { - sidebar->blockSignals( TRUE ); + sidebar->blockSignals( true ); sidebar->moveItem( oldPos, newPos ); - sidebar->blockSignals( FALSE ); + sidebar->blockSignals( false ); } } @@ -4092,9 +4092,9 @@ void KPrView::removeSideBarItem( int pos ) { if ( sidebar ) { - sidebar->blockSignals( TRUE ); + sidebar->blockSignals( true ); sidebar->removeItem( pos ); - sidebar->blockSignals( FALSE ); + sidebar->blockSignals( false ); } } @@ -4627,7 +4627,7 @@ void KPrView::spellCheckerRemoveHighlight() } KPrTextView *edit=m_canvas->currentTextObjectView(); if (edit) - edit->drawCursor( TRUE ); + edit->drawCursor( true ); } @@ -6149,7 +6149,7 @@ void KPrView::autoSpellCheck() void KPrView::insertFile( ) { - KFileDialog fd( TQString(), TQString(), this, 0, TRUE ); + KFileDialog fd( TQString(), TQString(), this, 0, true ); TQStringList filter; filter<<"application/x-kpresenter"; filter<<"application/vnd.oasis.opendocument.presentation"; |