summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/pixmapcollection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdevdesigner/designer/pixmapcollection.cpp')
-rw-r--r--kdevdesigner/designer/pixmapcollection.cpp22
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()