diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-08 12:59:07 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-10 17:35:38 +0900 |
commit | d2d30bfbef26707f9158cbc31d5763a9a1d4ab2d (patch) | |
tree | 6d2d4502d6fbe4d6810bfb7bcf297cbf995d3db8 /kdevdesigner/designer/pixmapcollection.cpp | |
parent | b9618de13e8f38c3558e9ed393a75c1f13af665c (diff) | |
download | tdevelop-r14.1.4.tar.gz tdevelop-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 5198c9d3ac02aa9c7949f49e3cf374f683facb18)
Diffstat (limited to 'kdevdesigner/designer/pixmapcollection.cpp')
-rw-r--r-- | kdevdesigner/designer/pixmapcollection.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kdevdesigner/designer/pixmapcollection.cpp b/kdevdesigner/designer/pixmapcollection.cpp index 880423a3..4b14bf8d 100644 --- a/kdevdesigner/designer/pixmapcollection.cpp +++ b/kdevdesigner/designer/pixmapcollection.cpp @@ -54,14 +54,14 @@ bool PixmapCollection::addPixmap( const Pixmap &pix, bool force ) if ( !force ) { for ( TQValueList<Pixmap>::Iterator it = pixList.begin(); it != pixList.end(); ++it ) { if ( (*it).name == pixmap.name ) - return FALSE; + return false; } } pixList.append( pixmap ); mimeSourceFactory->setPixmap( pixmap.name, pixmap.pix ); - project->setModified( TRUE ); - return TRUE; + project->setModified( true ); + return true; } void PixmapCollection::removePixmap( const TQString &name ) @@ -72,7 +72,7 @@ void PixmapCollection::removePixmap( const TQString &name ) break; } } - project->setModified( TRUE ); + project->setModified( true ); } TQValueList<PixmapCollection::Pixmap> PixmapCollection::pixmaps() const @@ -83,18 +83,18 @@ TQValueList<PixmapCollection::Pixmap> PixmapCollection::pixmaps() const TQString PixmapCollection::unifyName( const TQString &n ) { TQString name = n; - bool restart = FALSE; + bool restart = false; int added = 1; for ( TQValueList<Pixmap>::Iterator it = pixList.begin(); it != pixList.end(); ++it ) { if ( restart ) it = pixList.begin(); - restart = FALSE; + restart = false; if ( name == (*it).name ) { name = n; name += "_" + TQString::number( added ); ++added; - restart = TRUE; + restart = true; } } @@ -138,13 +138,13 @@ void PixmapCollection::savePixmap( Pixmap &pix ) TQString PixmapCollection::imageDir() const { - return TQFileInfo( project->fileName() ).dirPath( TRUE ) + "/images"; + return TQFileInfo( project->fileName() ).dirPath( true ) + "/images"; } void PixmapCollection::mkdir() { TQString f = project->fileName(); - TQDir d( TQFileInfo( f ).dirPath( TRUE ) ); + TQDir d( TQFileInfo( f ).dirPath( true ) ); d.mkdir( "images" ); } @@ -156,7 +156,7 @@ void PixmapCollection::load( const TQString& filename ) if ( filename[0] == '/' ) absfile = filename; else - absfile = TQFileInfo( project->fileName() ).dirPath( TRUE ) + "/" + filename; + absfile = TQFileInfo( project->fileName() ).dirPath( true ) + "/" + filename; TQPixmap pm( absfile ); if ( pm.isNull() ) @@ -166,7 +166,7 @@ void PixmapCollection::load( const TQString& filename ) pix.name = TQFileInfo( absfile ).fileName(); pix.absname = absfile; pix.pix = pm; - addPixmap( pix, TRUE ); + addPixmap( pix, true ); } DesignerPixmapCollection *PixmapCollection::iFace() |