summaryrefslogtreecommitdiffstats
path: root/tdeiconedit
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-04-07 16:34:47 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-04-07 18:26:20 +0900
commit0599e57edd9b4998aa99b0a14f4d83c2b9390b29 (patch)
tree0f9cf5d922e8c354348e50872fe00aa6ee9136cf /tdeiconedit
parent063aaff4032126e6e0685865142dea3102a6eff7 (diff)
downloadtdegraphics-0599e57e.tar.gz
tdegraphics-0599e57e.zip
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit c7c1795c817c1f7b89046c6d9f24379143f0bf6b)
Diffstat (limited to 'tdeiconedit')
-rw-r--r--tdeiconedit/kcolorgrid.cpp2
-rw-r--r--tdeiconedit/tdeiconcolors.cpp4
-rw-r--r--tdeiconedit/tdeicongrid.cpp14
3 files changed, 10 insertions, 10 deletions
diff --git a/tdeiconedit/kcolorgrid.cpp b/tdeiconedit/kcolorgrid.cpp
index 131d5a9f..5c534c18 100644
--- a/tdeiconedit/kcolorgrid.cpp
+++ b/tdeiconedit/kcolorgrid.cpp
@@ -134,7 +134,7 @@ void KColorGrid::paintEvent(TQPaintEvent *e)
p.setWorldMatrix( matrix );
//p.setClipRect(j*cellsize, i*cellsize, cellsize, cellsize);
paintCell(&p, i, j);
- //p.setClipping(FALSE);
+ //p.setClipping(false);
matrix.reset();
p.setWorldMatrix( matrix );
}
diff --git a/tdeiconedit/tdeiconcolors.cpp b/tdeiconedit/tdeiconcolors.cpp
index 6b695fc5..16b6d687 100644
--- a/tdeiconedit/tdeiconcolors.cpp
+++ b/tdeiconedit/tdeiconcolors.cpp
@@ -58,8 +58,8 @@ void KDrawColors::mouseReleaseEvent( TQMouseEvent *e )
{
int prevSel = selected;
selected = cell;
- updateCell( prevSel/numCols(), prevSel%numCols(), FALSE );
- updateCell( row, col, FALSE );
+ updateCell( prevSel/numCols(), prevSel%numCols(), false );
+ updateCell( row, col, false );
}
emit newColor(colorAt(cell)|OPAQUE_MASK);
diff --git a/tdeiconedit/tdeicongrid.cpp b/tdeiconedit/tdeicongrid.cpp
index c4caedc3..be64cea8 100644
--- a/tdeiconedit/tdeicongrid.cpp
+++ b/tdeiconedit/tdeicongrid.cpp
@@ -916,8 +916,8 @@ void TDEIconEditGrid::mouseReleaseEvent( TQMouseEvent *e )
selected = cell;
update((prevSel%numCols())*cellsize,(prevSel/numCols())*cellsize, cellsize, cellsize);
update(col*cellsize,row*cellsize, cellsize, cellsize);
- //updateCell( prevSel/numCols(), prevSel%numCols(), FALSE );
- //updateCell( row, col, FALSE );
+ //updateCell( prevSel/numCols(), prevSel%numCols(), false );
+ //updateCell( row, col, false );
*((uint*)img->scanLine(row) + col) = colorAt(cell);
p = *img;
//}
@@ -973,8 +973,8 @@ void TDEIconEditGrid::mouseReleaseEvent( TQMouseEvent *e )
update((prevSel%numCols())*cellsize,(prevSel/numCols())*cellsize, cellsize, cellsize);
update(col*cellsize,row*cellsize, cellsize, cellsize);
emit colorSelected(currentcolor);
- //updateCell( prevSel/numCols(), prevSel%numCols(), FALSE );
- //updateCell( row, col, FALSE );
+ //updateCell( prevSel/numCols(), prevSel%numCols(), false );
+ //updateCell( row, col, false );
}
break;
@@ -1922,7 +1922,7 @@ void TDEIconEditGrid::drawPointArray(TQPointArray a, DrawAction action)
//int cell = y * numCols() + x;
//setColor( cell, currentcolor, false );
doupdate = true;
- //updateCell( y, x, FALSE );
+ //updateCell( y, x, false );
macro->addCommand( dc );
break;
}
@@ -1993,7 +1993,7 @@ static bool kdither_32_to_8( const TQImage *src, TQImage *dst )
if ( !dst->create(src->width(), src->height(), 8, 256) ) {
kdWarning() << "OImage: destination image not valid" << endl;
- return FALSE;
+ return false;
}
int ncols = 256;
@@ -2153,7 +2153,7 @@ static bool kdither_32_to_8( const TQImage *src, TQImage *dst )
#undef MAX_B
#undef INDEXOF
- return TRUE;
+ return true;
}
// this doesn't work the way it should but the way KPixmap does.